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

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

src/p/y/pyqt5-HEAD/examples/mainwindows/application/application.py   pyqt5(Download)
    def open(self):
        if self.maybeSave():
            fileName, _ = QFileDialog.getOpenFileName(self)
            if fileName:
                self.loadFile(fileName)

src/p/y/pyqt5-HEAD/examples/mainwindows/recentfiles.py   pyqt5(Download)
    def open(self):
        fileName, _ = QFileDialog.getOpenFileName(self)
        if fileName:
            self.loadFile(fileName)
 

src/p/y/pyqt5-HEAD/examples/webkit/previewer/previewer.py   pyqt5(Download)
    def open(self):
        fileName, _ = QFileDialog.getOpenFileName(self)
        if fileName:
            fd = QFile(fileName)
            if not fd.open(QIODevice.ReadOnly):

src/p/y/pyqt5-HEAD/examples/mainwindows/sdi/sdi.py   pyqt5(Download)
    def open(self):
        fileName, _ = QFileDialog.getOpenFileName(self)
        if fileName:
            existing = self.findMainWindow(fileName)
            if existing:

src/p/y/pyqt5-HEAD/examples/mainwindows/mdi/mdi.py   pyqt5(Download)
    def open(self):
        fileName, _ = QFileDialog.getOpenFileName(self)
        if fileName:
            existing = self.findMdiChild(fileName)
            if existing:

src/a/c/academictorrents_uploader-HEAD/gui.py   academictorrents_uploader(Download)
    def select_file(self):
        filename = QtWidgets.QFileDialog.getOpenFileName(self, 
                                                     'Select a File',
                                                     '.')
        self.ui.file_label.setText(filename[0])
    def select_torrent(self):
        torrent = QtWidgets.QFileDialog.getOpenFileName(self,
                                                    'Select Torrent',
                                                    '.', 'Torrent files (*.torrent)')
        self.ui.torrent_label.setText(torrent)

src/d/u/dupeguru-HEAD/qt/base/directories_dialog.py   dupeguru(Download)
    def loadResultsTriggered(self):
        title = tr("Select a results file to load")
        files = ';;'.join([tr("dupeGuru Results (*.dupeguru)"), tr("All Files (*.*)")])
        destination = QFileDialog.getOpenFileName(self, title, '', files)
        if destination:

src/p/y/pyqtdeploy-0.3/pyqtdeploy/gui/filename_editor.py   pyqtdeploy(Download)
                    self._caption, default)
        else:
            name, _ = QFileDialog.getOpenFileName(self._line_edit,
                    self._caption, default)
 

src/b/u/ButtleOFX-HEAD/buttleofx/data/finder.py   ButtleOFX(Download)
        # if the current node is a reader
        if self._type == "OpenFile":
            self._file = dialog.getOpenFileName(None, self._message, self._directory)
        # else it's a writer
        elif self._type == "SaveFile":

src/d/e/deepin-talk-HEAD/src/dtalk/gui/imageviewer.py   deepin-talk(Download)
    def open(self):    
        filename, _ = QtWidgets.QFileDialog.getOpenFileName(self, "打开文件", QtWidgets.QDir.currentPath())
        if filename:
            image = QtGui.QImage(filename)
            if image.isNull():

Previous  1 | 2 | 3