Mercurial > hg > RemoteViewer
diff __main__.py @ 0:f889ad584f0a
initial import
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 19 Sep 2014 04:02:38 +0200 |
parents | |
children | 5b6e65b90784 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/__main__.py Fri Sep 19 04:02:38 2014 +0200 @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 + +# see http://stackoverflow.com/questions/6238193/pyqt-new-api-with-python-2 +import sip +sip.setapi('QString', 2) +sip.setapi('QVariant', 2) + +import sys +from PyQt4.QtGui import QApplication +from RemoteViewer.RemoteViewer import RemoteViewer + +if __name__ == '__main__': + app = QApplication(sys.argv) + window = RemoteViewer() + window.show() + sys.exit(app.exec_())