source: framspy/gui.py @ 1323

Last change on this file since 1323 was 1199, checked in by Maciej Komosinski, 23 months ago

Cosmetic

File size: 741 bytes
Line 
1from gui.widgets.mainPage import MainPage
2import sys, argparse
3
4def 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
18if __name__ == '__main__':
19    main()
Note: See TracBrowser for help on using the repository browser.