annotate __main__.py @ 3:77fa82dcc956
add a settings object that is read when the main window is opened and persisted when the
main window closes
author |
Dirk Olmes <dirk@xanthippe.ping.de> |
date |
Sat, 20 Sep 2014 03:12:26 +0200 |
parents |
f889ad584f0a |
children |
5b6e65b90784 |
rev |
line source |
0
|
1 #!/usr/bin/env python3
|
|
2
|
|
3 # see http://stackoverflow.com/questions/6238193/pyqt-new-api-with-python-2
|
|
4 import sip
|
|
5 sip.setapi('QString', 2)
|
|
6 sip.setapi('QVariant', 2)
|
|
7
|
|
8 import sys
|
|
9 from PyQt4.QtGui import QApplication
|
|
10 from RemoteViewer.RemoteViewer import RemoteViewer
|
|
11
|
|
12 if __name__ == '__main__':
|
|
13 app = QApplication(sys.argv)
|
|
14 window = RemoteViewer()
|
|
15 window.show()
|
|
16 sys.exit(app.exec_())
|