Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)

src/p/y/pyqt5-HEAD/examples/dialogs/standarddialogs.py   pyqt5(Download)
    def criticalMessage(self):    
        reply = QMessageBox.critical(self, "QMessageBox.critical()",
                Dialog.MESSAGE,
                QMessageBox.Abort | QMessageBox.Retry | QMessageBox.Ignore)
        if reply == QMessageBox.Abort:

src/p/y/pyqt5-HEAD/examples/network/loopback.py   pyqt5(Download)
 
        while not self.tcpServer.isListening() and not self.tcpServer.listen():
            ret = QMessageBox.critical(self, "Loopback",
                    "Unable to start the test: %s." % self.tcpServer.errorString(),
                    QMessageBox.Retry | QMessageBox.Cancel)

src/p/y/pyqt5-HEAD/examples/qtdemo/menumanager.py   pyqt5(Download)
            self.assistantProcess.start(app, args)
            if not self.assistantProcess.waitForStarted():
                QMessageBox.critical(None, "PyQt Demo",
                        "Could not start %s." % app)
                return
    def launchError(self, error):
        if error != QProcess.Crashed:
            QMessageBox.critical(None, "Failed to launch the example",
                    "Could not launch the example. Ensure that it has been "
                    "built.",

src/p/y/pyqt5-HEAD/examples/sql/connection.py   pyqt5(Download)
def createConnection():
    db = QSqlDatabase.addDatabase('QSQLITE')
    db.setDatabaseName(':memory:')
    if not db.open():
        QMessageBox.critical(None, "Cannot open database",

src/p/y/pyqt5-HEAD/examples/desktop/systray/systray.py   pyqt5(Download)
 
    if not QSystemTrayIcon.isSystemTrayAvailable():
        QMessageBox.critical(None, "Systray",
                "I couldn't detect any system tray on this system.")
        sys.exit(1)

src/p/y/pyqt5-HEAD/examples/opengl/samplebuffers.py   pyqt5(Download)
except ImportError:
    app = QApplication(sys.argv)
    QMessageBox.critical(None, "OpenGL samplebuffers",
            "PyOpenGL must be installed to run this example.")
    sys.exit(1)

src/p/y/pyqt5-HEAD/examples/opengl/grabber.py   pyqt5(Download)
except ImportError:
    app = QApplication(sys.argv)
    QMessageBox.critical(None, "OpenGL grabber",
            "PyOpenGL must be installed to run this example.")
    sys.exit(1)

src/p/y/pyqt5-HEAD/examples/painting/svgviewer/svgviewer.py   pyqt5(Download)
            svg_file = QFile(path)
            if not svg_file.exists():
                QMessageBox.critical(self, "Open SVG File",
                        "Could not open file '%s'." % path)
 

src/p/y/pyqt5-HEAD/examples/opengl/textures/textures.py   pyqt5(Download)
except ImportError:
    app = QApplication(sys.argv)
    QMessageBox.critical(None, "OpenGL textures",
            "PyOpenGL must be installed to run this example.")
    sys.exit(1)

src/p/y/pyqt5-HEAD/examples/opengl/overpainting.py   pyqt5(Download)
except ImportError:
    app = QApplication(sys.argv)
    QMessageBox.critical(None, "OpenGL overpainting",
            "PyOpenGL must be installed to run this example.")
    sys.exit(1)

  1 | 2  Next