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

All Samples(76)  |  Call(64)  |  Derive(3)  |  Import(9)

src/p/y/pyqt5-HEAD/examples/multimediawidgets/player.py   pyqt5(Download)
        QMediaMetaData, QMediaPlayer, QMediaPlaylist, QVideoFrame, QVideoProbe)
from PyQt5.QtMultimediaWidgets import QVideoWidget
from PyQt5.QtWidgets import (QApplication, QComboBox, QDialog, QFileDialog,
        QFormLayout, QHBoxLayout, QLabel, QListView, QMessageBox, QPushButton,
        QSizePolicy, QSlider, QStyle, QToolButton, QVBoxLayout, QWidget)
        self.playerMuted = False
 
        self.playButton = QToolButton(clicked=self.playClicked)
        self.playButton.setIcon(self.style().standardIcon(QStyle.SP_MediaPlay))
 
        self.stopButton = QToolButton(clicked=self.stop)
        self.stopButton.setIcon(self.style().standardIcon(QStyle.SP_MediaStop))
        self.stopButton.setEnabled(False)
 
        self.nextButton = QToolButton(clicked=self.next)
                self.style().standardIcon(QStyle.SP_MediaSkipForward))
 
        self.previousButton = QToolButton(clicked=self.previous)
        self.previousButton.setIcon(
                self.style().standardIcon(QStyle.SP_MediaSkipBackward))

src/p/y/pyqt5-HEAD/examples/graphicsview/diagramscene/diagramscene.py   pyqt5(Download)
from PyQt5.QtGui import (QBrush, QColor, QFont, QIcon, QIntValidator, QPainter,
        QPainterPath, QPen, QPixmap, QPolygonF)
from PyQt5.QtWidgets import (QAction, QApplication, QButtonGroup, QComboBox,
        QFontComboBox, QGraphicsItem, QGraphicsLineItem, QGraphicsPolygonItem,
        QGraphicsScene, QGraphicsTextItem, QGraphicsView, QGridLayout,
                1, 0)
 
        textButton = QToolButton()
        textButton.setCheckable(True)
        self.buttonGroup.addButton(textButton, self.InsertTextButton)
        self.fontSizeCombo.currentIndexChanged.connect(self.fontSizeChanged)
 
        self.fontColorToolButton = QToolButton()
        self.fontColorToolButton.setPopupMode(QToolButton.MenuButtonPopup)
        self.fontColorToolButton.setMenu(
        self.fontColorToolButton.clicked.connect(self.textButtonTriggered)
 
        self.fillColorToolButton = QToolButton()
        self.fillColorToolButton.setPopupMode(QToolButton.MenuButtonPopup)
        self.fillColorToolButton.setMenu(
        self.fillColorToolButton.clicked.connect(self.fillButtonTriggered)
 
        self.lineColorToolButton = QToolButton()
        self.lineColorToolButton.setPopupMode(QToolButton.MenuButtonPopup)
        self.lineColorToolButton.setMenu(

src/p/y/pyqt5-HEAD/examples/widgets/movie/movie.py   pyqt5(Download)
from PyQt5.QtCore import QFileInfo, QSize, Qt
from PyQt5.QtGui import QMovie, QPalette
from PyQt5.QtWidgets import (QApplication, QCheckBox, QFileDialog, QGridLayout,
        QHBoxLayout, QLabel, QSizePolicy, QSlider, QSpinBox, QStyle,
        QToolButton, QVBoxLayout, QWidget)
    def createButtons(self):
        iconSize = QSize(36, 36)
 
        openButton = QToolButton()
        openButton.setIcon(self.style().standardIcon(QStyle.SP_DialogOpenButton))
        openButton.setIconSize(iconSize)
        openButton.setToolTip("Open File")
        openButton.clicked.connect(self.open)
 
        self.playButton = QToolButton()
        self.playButton.clicked.connect(self.movie.start)
 
        self.pauseButton = QToolButton()
        self.pauseButton.setCheckable(True)
        self.pauseButton.setIcon(self.style().standardIcon(QStyle.SP_MediaPause))
        self.pauseButton.setIconSize(iconSize)
        self.pauseButton.setToolTip("Pause")
        self.pauseButton.clicked.connect(self.movie.setPaused)
 
        self.stopButton = QToolButton()

src/p/y/pyqt5-HEAD/examples/widgets/tooltips/tooltips.py   pyqt5(Download)
from PyQt5.QtCore import QEvent, QPoint, QPointF, QSize, Qt
from PyQt5.QtGui import QColor, QIcon, QPainter, QPainterPath, QPalette
from PyQt5.QtWidgets import (QApplication, QStyle, QToolButton, QToolTip,
        QWidget)
 
    def createToolButton(self, toolTip, icon, member):
        button = QToolButton(self)
        button.setToolTip(toolTip)
        button.setIcon(icon)
        button.setIconSize(QSize(32, 32))

src/p/y/pyqt5-HEAD/examples/widgets/calculator.py   pyqt5(Download)
 
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import (QApplication, QGridLayout, QLayout, QLineEdit,
        QSizePolicy, QToolButton, QWidget)
 
 
class Button(QToolButton):

src/p/y/pyqtdeploy-0.3/pyqtdeploy/gui/filename_editor.py   pyqtdeploy(Download)
 
from PyQt5.QtCore import QDir
from PyQt5.QtWidgets import (QFileDialog, QHBoxLayout, QLineEdit, QStyle,
        QToolButton, QWidget)
 
                QStyle.SP_DirIcon if self._directory else QStyle.SP_FileIcon)
 
        layout.addWidget(QToolButton(icon=icon, clicked=self._browse))
 
        self.setLayout(layout)

src/e/t/etm_qt-2.3.27/etmQt/ui5/ui_etmView.py   etm_qt(Download)
        self.uiView.setObjectName("uiView")
        self.toolBar.addWidget(self.uiView)
        self.newItemButton = QtWidgets.QToolButton(self.uiCentralWidget)
        self.newItemButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.newItemButton.setStyleSheet("border: 0px solid black")
        self.newItemButton.setObjectName("newItemButton")
        self.toolBar.addWidget(self.newItemButton)
        self.newActionButton = QtWidgets.QToolButton(self.uiCentralWidget)
        self.newActionButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.newActionButton.setStyleSheet("border: 0px solid black")
        self.newActionButton.setObjectName("newActionButton")
        self.toolBar.addWidget(self.newActionButton)
        self.reportButton = QtWidgets.QToolButton(self.uiCentralWidget)
        self.reportButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.reportButton.setStyleSheet("border: 0px")
        spacerItem = QtWidgets.QSpacerItem(0, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.toolBar.addItem(spacerItem)
        self.mainHelpButton = QtWidgets.QToolButton(self.uiCentralWidget)
        self.mainHelpButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.mainHelpButton.setStyleSheet("border: 0px solid black")
        self.statusBar = QtWidgets.QGridLayout()
        self.statusBar.setObjectName("statusBar")
        self.alertsButton = QtWidgets.QToolButton(self.uiCentralWidget)
        self.alertsButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.alertsButton.setStyleSheet("border: 0px solid black")

src/e/t/etm_qt-2.3.27/etmQt/ui5/ui_etmEditor.py   etm_qt(Download)
        self.editBar.setContentsMargins(2, 1, 2, 1)
        self.editBar.setObjectName("editBar")
        self.quitButton = QtWidgets.QToolButton(self.uiCentralWidget)
        self.quitButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.quitButton.setStyleSheet("border: 0px black")
        self.quitButton.setObjectName("quitButton")
        self.editBar.addWidget(self.quitButton)
        self.saveButton = QtWidgets.QToolButton(self.uiCentralWidget)
        self.saveButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.saveButton.setStyleSheet("border: 0px black")
        self.line.setObjectName("line")
        self.editBar.addWidget(self.line)
        self.cutButton = QtWidgets.QToolButton(self.uiCentralWidget)
        self.cutButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.cutButton.setStyleSheet("border: 0px black")
        self.cutButton.setObjectName("cutButton")
        self.editBar.addWidget(self.cutButton)
        self.copyButton = QtWidgets.QToolButton(self.uiCentralWidget)
        self.copyButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.copyButton.setStyleSheet("border: 0px black")
        self.copyButton.setObjectName("copyButton")
        self.editBar.addWidget(self.copyButton)
        self.pasteButton = QtWidgets.QToolButton(self.uiCentralWidget)
        self.pasteButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.pasteButton.setStyleSheet("border: 0px black")

src/e/t/etm_qt-2.3.27/etmQt/ui5/ui_etmReport.py   etm_qt(Download)
        self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.closeButton = QtWidgets.QToolButton(reportDialog)
        self.closeButton.setStyleSheet("border: 0px")
        icon1 = QtGui.QIcon()
        self.line.setObjectName("line")
        self.horizontalLayout_2.addWidget(self.line)
        self.printButton = QtWidgets.QToolButton(reportDialog)
        self.printButton.setStyleSheet("border: 0px")
        icon2 = QtGui.QIcon()
        self.printButton.setObjectName("printButton")
        self.horizontalLayout_2.addWidget(self.printButton)
        self.exportButton = QtWidgets.QToolButton(reportDialog)
        self.exportButton.setStyleSheet("border: 0px")
        icon3 = QtGui.QIcon()
        self.exportButton.setObjectName("exportButton")
        self.horizontalLayout_2.addWidget(self.exportButton)
        self.mailButton = QtWidgets.QToolButton(reportDialog)
        self.mailButton.setStyleSheet("border: 0pt")
        icon4 = QtGui.QIcon()
        self.mailButton.setObjectName("mailButton")
        self.horizontalLayout_2.addWidget(self.mailButton)
        self.previous = QtWidgets.QToolButton(reportDialog)
        self.previous.setStyleSheet("border: 0px")
        icon5 = QtGui.QIcon()

src/e/t/etm_qt-2.3.27/etmQt/ui5/ui_etmDetails.py   etm_qt(Download)
        self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.closeButton = QtWidgets.QToolButton(detailDialog)
        self.closeButton.setStyleSheet("border: 0px black")
        icon1 = QtGui.QIcon()
        self.line.setObjectName("line")
        self.horizontalLayout.addWidget(self.line)
        self.fileButton = QtWidgets.QToolButton(detailDialog)
        self.fileButton.setStyleSheet("border: 0px black")
        icon2 = QtGui.QIcon()
        self.fileButton.setObjectName("fileButton")
        self.horizontalLayout.addWidget(self.fileButton)
        self.itemButton = QtWidgets.QToolButton(detailDialog)
        self.itemButton.setStyleSheet("border: 0px black")
        icon3 = QtGui.QIcon()
        self.itemButton.setObjectName("itemButton")
        self.horizontalLayout.addWidget(self.itemButton)
        self.cloneItemButton = QtWidgets.QToolButton(detailDialog)
        self.cloneItemButton.setStyleSheet("border: 0px")
        icon4 = QtGui.QIcon()
        self.cloneItemButton.setObjectName("cloneItemButton")
        self.horizontalLayout.addWidget(self.cloneItemButton)
        self.cloneActionButton = QtWidgets.QToolButton(detailDialog)
        self.cloneActionButton.setStyleSheet("border: 0px")
        icon5 = QtGui.QIcon()

  1 | 2  Next