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

All Samples(72)  |  Call(53)  |  Derive(1)  |  Import(18)

src/p/y/pyqt5-HEAD/examples/richtext/orderform.py   pyqt5(Download)
from PyQt5.QtGui import (QFont, QTextCharFormat, QTextCursor, QTextFrameFormat,
        QTextLength, QTextTableFormat)
from PyQt5.QtWidgets import (QApplication, QCheckBox, QDialog,
        QDialogButtonBox, QGridLayout, QLabel, QLineEdit, QMainWindow,
        QMessageBox, QMenu, QTableWidget, QTableWidgetItem, QTabWidget,
    def __init__(self):
        super(MainWindow, self).__init__()
 
        fileMenu = QMenu("&File", self)
        newAction = fileMenu.addAction("&New...")

src/p/y/pyqt5-HEAD/examples/painting/svgviewer/svgviewer.py   pyqt5(Download)
from PyQt5.QtCore import QFile, QSize, Qt
from PyQt5.QtGui import QBrush, QColor, QImage, QPainter, QPixmap, QPen
from PyQt5.QtWidgets import (QActionGroup, QApplication, QFileDialog,
        QGraphicsItem, QGraphicsRectItem, QGraphicsScene, QGraphicsView,
        QMainWindow, QMenu, QMessageBox, QWidget)
        self.view = SvgView()
 
        fileMenu = QMenu("&File", self)
        openAction = fileMenu.addAction("&Open...")
        openAction.setShortcut("Ctrl+O")
        self.menuBar().addMenu(fileMenu)
 
        viewMenu = QMenu("&View", self)
        self.backgroundAction = viewMenu.addAction("&Background")
        self.backgroundAction.setEnabled(False)
        self.menuBar().addMenu(viewMenu)
 
        rendererMenu = QMenu("&Renderer", self)
        self.nativeAction = rendererMenu.addAction("&Native")
        self.nativeAction.setCheckable(True)

src/p/y/pyqt5-HEAD/examples/tools/codecs/codecs.py   pyqt5(Download)
 
from PyQt5.QtCore import QFile, QRegExp, QTextCodec, QTextStream
from PyQt5.QtWidgets import (QAction, QApplication, QComboBox, QDialog,
        QDialogButtonBox, QFileDialog, QGridLayout, QLabel, QMainWindow, QMenu,
        QMessageBox, QTextEdit)
    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.exitAct)
 
        self.helpMenu = QMenu("&Help", self)
        self.helpMenu.addAction(self.aboutAct)
        self.helpMenu.addAction(self.aboutQtAct)

src/p/y/pyqt5-HEAD/examples/layouts/basiclayouts.py   pyqt5(Download)
 
 
from PyQt5.QtWidgets import (QApplication, QComboBox, QDialog,
        QDialogButtonBox, QFormLayout, QGridLayout, QGroupBox, QHBoxLayout,
        QLabel, QLineEdit, QMenu, QMenuBar, QPushButton, QSpinBox, QTextEdit,
    def createMenu(self):
        self.menuBar = QMenuBar()
 
        self.fileMenu = QMenu("&File", self)
        self.exitAction = self.fileMenu.addAction("E&xit")

src/p/y/pyqt5-HEAD/examples/itemviews/pixelator/pixelator.py   pyqt5(Download)
from PyQt5.QtGui import QBrush, qGray, QImage, QPainter
from PyQt5.QtPrintSupport import QPrinter
from PyQt5.QtWidgets import (QAbstractItemDelegate, QApplication, QDialog,
        QFileDialog, QHBoxLayout, QLabel, QMainWindow, QMessageBox, QMenu,
        QProgressDialog, QSpinBox, QStyle, QStyleOptionViewItem, QTableView,
        pixelSizeSpinBox.setValue(12)
 
        fileMenu = QMenu("&File", self)
        openAction = fileMenu.addAction("&Open...")
        openAction.setShortcut("Ctrl+O")
        quitAction.setShortcut("Ctrl+Q")
 
        helpMenu = QMenu("&Help", self)
        aboutAction = helpMenu.addAction("&About")
 

src/p/y/pyqt5-HEAD/examples/widgets/groupbox.py   pyqt5(Download)
 
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import (QApplication, QCheckBox, QGridLayout, QGroupBox,
        QMenu, QPushButton, QRadioButton, QVBoxLayout, QWidget)
 
 
        popupButton = QPushButton("Pop&up Button")
        menu = QMenu(self)
        menu.addAction("&First Item")
        menu.addAction("&Second Item")
 
        newAction = menu.addAction("Submenu")
        subMenu = QMenu("Popup Submenu", self)
        subMenu.addAction("Item 1")
        subMenu.addAction("Item 2")

src/p/y/pyqt5-HEAD/examples/richtext/textedit/textedit.py   pyqt5(Download)
        QPixmap, QTextBlockFormat, QTextCharFormat, QTextCursor,
        QTextDocumentWriter, QTextListFormat)
from PyQt5.QtWidgets import (QAction, QActionGroup, QApplication, QColorDialog,
        QComboBox, QFileDialog, QFontComboBox, QMainWindow, QMenu, QMessageBox,
        QTextEdit, QToolBar)
        self.setupTextActions()
 
        helpMenu = QMenu("Help", self)
        self.menuBar().addMenu(helpMenu)
        helpMenu.addAction("About", self.about)
        self.addToolBar(tb)
 
        menu = QMenu("&File", self)
        self.menuBar().addMenu(menu)
 
        self.addToolBar(tb)
 
        menu = QMenu("&Edit", self)
        self.menuBar().addMenu(menu)
 
        self.addToolBar(tb)
 
        menu = QMenu("F&ormat", self)
        self.menuBar().addMenu(menu)
 

src/p/y/pyqt5-HEAD/examples/widgets/scribble.py   pyqt5(Download)
from PyQt5.QtCore import QDir, QPoint, QRect, QSize, Qt
from PyQt5.QtGui import QImage, QImageWriter, QPainter, QPen, qRgb
from PyQt5.QtWidgets import (QAction, QApplication, QColorDialog, QFileDialog,
        QInputDialog, QMainWindow, QMenu, QMessageBox, QWidget)
from PyQt5.QtPrintSupport import QPrintDialog, QPrinter
    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.exitAct)
 
        optionMenu = QMenu("&Options", self)
        optionMenu.addAction(self.penColorAct)
        optionMenu.addAction(self.penWidthAct)
        optionMenu.addSeparator()
        optionMenu.addAction(self.clearScreenAct)
 
        helpMenu = QMenu("&Help", self)

src/p/y/pyqt5-HEAD/examples/widgets/imageviewer.py   pyqt5(Download)
from PyQt5.QtCore import QDir, Qt
from PyQt5.QtGui import QImage, QPainter, QPalette, QPixmap
from PyQt5.QtWidgets import (QAction, QApplication, QFileDialog, QLabel,
        QMainWindow, QMenu, QMessageBox, QScrollArea, QSizePolicy)
from PyQt5.QtPrintSupport import QPrintDialog, QPrinter
    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.fitToWindowAct)
 
        self.helpMenu = QMenu("&Help", self)
        self.helpMenu.addAction(self.aboutAct)
        self.helpMenu.addAction(self.aboutQtAct)

src/p/y/pyqt5-HEAD/examples/widgets/stylesheet/ui_mainwindow.py   pyqt5(Download)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 400, 29))
        self.menubar.setObjectName("menubar")
        self.menu_File = QtWidgets.QMenu(self.menubar)
        self.menu_File.setObjectName("menu_File")
        self.menu_Help = QtWidgets.QMenu(self.menubar)

  1 | 2 | 3  Next