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

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

src/p/y/pyqt5-HEAD/examples/richtext/syntaxhighlighter.py   pyqt5(Download)
    def setupFileMenu(self):
        fileMenu = QMenu("&File", self)
        self.menuBar().addMenu(fileMenu)
 
        fileMenu.addAction("&New...", self.newFile, "Ctrl+N")
        fileMenu.addAction("&Open...", self.openFile, "Ctrl+O")
        fileMenu.addAction("E&xit", QApplication.instance().quit, "Ctrl+Q")
    def setupHelpMenu(self):
        helpMenu = QMenu("&Help", self)
        self.menuBar().addMenu(helpMenu)
 
        helpMenu.addAction("&About", self.about)
        helpMenu.addAction("About &Qt", QApplication.instance().aboutQt)

src/p/y/pyqt5-HEAD/examples/richtext/textedit/textedit.py   pyqt5(Download)
        helpMenu = QMenu("Help", self)
        self.menuBar().addMenu(helpMenu)
        helpMenu.addAction("About", self.about)
        helpMenu.addAction("About &Qt", QApplication.instance().aboutQt)
 
                shortcut=QKeySequence.New, triggered=self.fileNew)
        tb.addAction(self.actionNew)
        menu.addAction(self.actionNew)
 
        self.actionOpen = QAction(
                triggered=self.fileOpen)
        tb.addAction(self.actionOpen)
        menu.addAction(self.actionOpen)
        menu.addSeparator()
 
                triggered=self.fileSave, enabled=False)
        tb.addAction(self.actionSave)
        menu.addAction(self.actionSave)
 
        self.actionSaveAs = QAction("Save &As...", self,

src/p/y/pyqt5-HEAD/examples/itemviews/editabletreemodel/ui_mainwindow.py   pyqt5(Download)
        self.insertChildAction = QtWidgets.QAction(MainWindow)
        self.insertChildAction.setObjectName("insertChildAction")
        self.fileMenu.addAction(self.exitAction)
        self.actionsMenu.addAction(self.insertRowAction)
        self.actionsMenu.addAction(self.insertColumnAction)
        self.actionsMenu.addSeparator()
        self.actionsMenu.addAction(self.removeRowAction)
        self.actionsMenu.addAction(self.removeColumnAction)

src/p/y/pyqt5-HEAD/examples/widgets/scribble.py   pyqt5(Download)
    def createMenus(self):
        self.saveAsMenu = QMenu("&Save As", self)
        for action in self.saveAsActs:
            self.saveAsMenu.addAction(action)
 
        fileMenu = QMenu("&File", self)
        fileMenu.addAction(self.openAct)
        fileMenu.addMenu(self.saveAsMenu)
        fileMenu.addAction(self.printAct)
        fileMenu.addAction(self.printAct)
        fileMenu.addSeparator()
        fileMenu.addAction(self.exitAct)
 
        optionMenu = QMenu("&Options", self)
        optionMenu.addAction(self.penColorAct)

src/p/y/pyqt5-HEAD/examples/multimediawidgets/camera/ui_camera.py   pyqt5(Download)
        self.actionSettings = QtWidgets.QAction(Camera)
        self.actionSettings.setObjectName("actionSettings")
        self.menuFile.addAction(self.actionStartCamera)
        self.menuFile.addAction(self.actionStopCamera)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionSettings)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionExit)

src/p/y/pyqt5-HEAD/examples/widgets/stylesheet/ui_mainwindow.py   pyqt5(Download)
        self.aboutAction = QtWidgets.QAction(MainWindow)
        self.aboutAction.setObjectName("aboutAction")
        self.menu_File.addAction(self.editStyleAction)
        self.menu_File.addSeparator()
        self.menu_File.addAction(self.exitAction)
        self.menu_Help.addAction(self.aboutAction)
        self.menu_Help.addAction(self.aboutQtAction)

src/p/y/pyqt5-HEAD/examples/activeqt/webbrowser/ui_mainwindow.py   pyqt5(Download)
        self.tbNavigate.addAction(self.actionSearch)
        self.tbAddress.addAction(self.actionGo)
        self.FileNewGroup_2.addAction(self.actionNewWindow)
        self.PopupMenu.addAction(self.FileNewGroup_2.menuAction())
        self.PopupMenu.addSeparator()
        self.PopupMenu.addAction(self.actionFileClose)
        self.unnamed.addAction(self.actionAbout)
        self.unnamed.addAction(self.actionAboutQt)

src/p/y/pyqt5-HEAD/examples/dbus/chat/ui_chatmainwindow.py   pyqt5(Download)
        self.actionChangeNickname = QtWidgets.QAction(ChatMainWindow)
        self.actionChangeNickname.setObjectName("actionChangeNickname")
        self.menuQuit.addAction(self.actionAboutQt)
        self.menuFile.addAction(self.actionChangeNickname)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionQuit)

src/p/y/pyqt5-HEAD/examples/widgets/imageviewer.py   pyqt5(Download)
    def createMenus(self):
        self.fileMenu = QMenu("&File", self)
        self.fileMenu.addAction(self.openAct)
        self.fileMenu.addAction(self.printAct)
        self.fileMenu.addSeparator()
        self.fileMenu.addAction(self.exitAct)
 
        self.viewMenu = QMenu("&View", self)
        self.viewMenu.addAction(self.zoomInAct)
        self.viewMenu.addAction(self.zoomOutAct)

src/p/y/pyqt5-HEAD/examples/tools/codecs/codecs.py   pyqt5(Download)
    def createMenus(self):
        self.saveAsMenu = QMenu("&Save As", self)
        for action in self.saveAsActs:
            self.saveAsMenu.addAction(action)
 
        self.saveAsMenu.aboutToShow.connect(self.aboutToShowSaveAsMenu)
 
        self.fileMenu = QMenu("&File", self)
        self.fileMenu.addAction(self.openAct)
        self.fileMenu.addMenu(self.saveAsMenu)
        self.fileMenu.addSeparator()
        self.fileMenu.addAction(self.exitAct)
 
        self.helpMenu = QMenu("&Help", self)
        self.helpMenu.addAction(self.aboutAct)
        self.helpMenu.addAction(self.aboutQtAct)

  1 | 2 | 3  Next