コード例 #1
0
ファイル: qtdemo.py プロジェクト: Axel-Erfurt/pyqt5
from menumanager import MenuManager


def artisticSleep(sleepTime):
    time = QTime()
    time.restart()
    while time.elapsed() < sleepTime:
        QApplication.processEvents(QEventLoop.AllEvents, 50)


if __name__ == '__main__':

    import sys

    app = QApplication(sys.argv)
    Colors.parseArgs(sys.argv)

    if sys.platform == 'win32':
        QMessageBox.information(None, "Documentation Warning",
                "If you are using the GPL version of PyQt from the binary "
                "installer then you will probably see warning messages about "
                "missing documentation.  This is because the installer does "
                "not include a copy of the Qt documentation as it is so "
                "large.")

    mainWindow = MainWindow()
    MenuManager.instance().init(mainWindow)
    mainWindow.setFocus()

    if Colors.fullscreen:
        mainWindow.showFullScreen()
コード例 #2
0
from menumanager import MenuManager


def artisticSleep(sleepTime):
    time = QtCore.QTime()
    time.restart()
    while time.elapsed() < sleepTime:
        QtCore.QCoreApplication.processEvents(QtCore.QEventLoop.AllEvents, 50)


if __name__ == '__main__':

    import sys

    app = QtGui.QApplication(sys.argv)
    Colors.parseArgs(sys.argv)

    if sys.platform == 'win32':
        QtGui.QMessageBox.information(
            None, "Documentation Warning",
            "If you are using the GPL version of PyQt from the binary "
            "installer then you will probably see warning messages about "
            "missing documentation.  This is because the installer does "
            "not include a copy of the Qt documentation as it is so "
            "large.")

    mainWindow = MainWindow()
    MenuManager.instance().init(mainWindow)
    mainWindow.setFocus()

    if Colors.fullscreen: