view __main__.py @ 37:09af29ca763f default tip

more fixes to run with PyQt5
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 23 Dec 2017 02:56:24 +0100
parents 5b6e65b90784
children
line wrap: on
line source

#!/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 PyQt5.QtWidgets import QApplication
from RemoteViewer.RemoteViewer import RemoteViewer

if __name__ == '__main__':
    app = QApplication(sys.argv)
    window = RemoteViewer()
    window.show()
    sys.exit(app.exec_())