Line | |
---|
1 | from gui.widgets.mainPage import MainPage
|
---|
2 | import sys, argparse
|
---|
3 |
|
---|
4 | def main():
|
---|
5 | parser = argparse.ArgumentParser(description="Framsticks GUI for library/server")
|
---|
6 | parser.add_argument("-l", "--library", help="<path>: load Framsticks library (dll/so/dylib) from the provided path")
|
---|
7 | parser.add_argument("-s", "--server", help="<address:port>: connect to the running Framsticks server at the provided address, e.g. localhost:9009")
|
---|
8 |
|
---|
9 | args = parser.parse_args()
|
---|
10 |
|
---|
11 | if args.library and args.server:
|
---|
12 | print("Do not provide both the library path and the network server address.")
|
---|
13 | sys.exit(2)
|
---|
14 |
|
---|
15 | app = MainPage(None, args.server, args.library)
|
---|
16 | app.mainloop()
|
---|
17 |
|
---|
18 | if __name__ == '__main__':
|
---|
19 | main()
|
---|
Note: See
TracBrowser
for help on using the repository browser.