Conditions | 2 |
Total Lines | 20 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | #!/usr/bin/env python3 |
||
36 | def main(): |
||
37 | """Run the app.""" |
||
38 | # kill possible zombie processes; can't use psutil in py2app context |
||
39 | system('lsof -nti:' + str(things3_api.PORT) + |
||
40 | ' | xargs kill -9') |
||
41 | |||
42 | webview.create_window( |
||
43 | title='KanbanView for Things 3', |
||
44 | url=f'http://localhost:{things3_api.PORT}/{FILE}', |
||
45 | width=1024, |
||
46 | min_size=(1024, 600), |
||
47 | frameless=True) |
||
48 | |||
49 | try: |
||
50 | THREAD.start() |
||
51 | webview.start() |
||
52 | except KeyboardInterrupt: |
||
53 | print("Shutting down...") |
||
54 | THREAD.join() |
||
55 | sys.exit(0) |
||
56 | |||
60 |