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

All Samples(19)  |  Call(10)  |  Derive(0)  |  Import(9)

src/p/y/pyqt5-HEAD/examples/itemviews/spreadsheet/spreadsheet.py   pyqt5(Download)
from PyQt5.QtCore import QDate, QPoint, Qt
from PyQt5.QtGui import QColor, QIcon, QKeySequence, QPainter, QPixmap
from PyQt5.QtWidgets import (QAction, QActionGroup, QApplication, QColorDialog,
        QComboBox, QDialog, QFontDialog, QGroupBox, QHBoxLayout, QLabel,
        QLineEdit, QMainWindow, QMessageBox, QPushButton, QTableWidget,
        self.toolBar.addWidget(self.cellLabel)
        self.toolBar.addWidget(self.formulaInput)
        self.table = QTableWidget(rows, cols, self)
        for c in range(cols):
            character = chr(ord('A') + c)

src/p/y/pyqt5-HEAD/examples/widgets/styles.py   pyqt5(Download)
 
from PyQt5.QtCore import QDateTime, Qt, QTimer
from PyQt5.QtWidgets import (QApplication, QCheckBox, QComboBox, QDateTimeEdit,
        QDial, QDialog, QGridLayout, QGroupBox, QHBoxLayout, QLabel, QLineEdit,
        QProgressBar, QPushButton, QRadioButton, QScrollBar, QSizePolicy,
 
        tab1 = QWidget()
        tableWidget = QTableWidget(10, 10)
 
        tab1hbox = QHBoxLayout()

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 setupItemsTable(self):
        self.itemsTable = QTableWidget(len(self.items), 2)
 
        for row, item in enumerate(self.items):
            name = QTableWidgetItem(item)

src/p/y/pyqt5-HEAD/examples/itemviews/coloreditorfactory.py   pyqt5(Download)
from PyQt5.QtCore import pyqtProperty, Qt, QVariant
from PyQt5.QtGui import QColor
from PyQt5.QtWidgets import (QApplication, QComboBox, QGridLayout,
        QItemEditorCreatorBase, QItemEditorFactory, QTableWidget,
        QTableWidgetItem, QWidget)
        ]
 
        table = QTableWidget(3, 2)
        table.setHorizontalHeaderLabels(["Name", "Hair Color"])
        table.verticalHeader().setVisible(False)

src/p/y/pyqt5-HEAD/examples/dialogs/findfiles.py   pyqt5(Download)
        QUrl)
from PyQt5.QtGui import QDesktopServices
from PyQt5.QtWidgets import (QAbstractItemView, QApplication, QComboBox,
        QDialog, QFileDialog, QGridLayout, QHBoxLayout, QHeaderView, QLabel,
        QProgressDialog, QPushButton, QSizePolicy, QTableWidget,
    def createFilesTable(self):
        self.filesTable = QTableWidget(0, 2)
        self.filesTable.setSelectionBehavior(QAbstractItemView.SelectRows)
 
        self.filesTable.setHorizontalHeaderLabels(("File Name", "Size"))

src/p/y/pyqt5-HEAD/examples/itemviews/stardelegate.py   pyqt5(Download)
from PyQt5.QtCore import pyqtSignal, QPointF, QSize, Qt
from PyQt5.QtGui import QPainter, QPolygonF
from PyQt5.QtWidgets import (QAbstractItemView, QApplication, QStyle,
        QStyledItemDelegate, QTableWidget, QTableWidgetItem, QWidget)
 
    app = QApplication(sys.argv)
 
    tableWidget = QTableWidget(4, 4)
    tableWidget.setItemDelegate(StarDelegate())
    tableWidget.setEditTriggers(

src/p/y/pyqt5-HEAD/examples/multimedia/audiodevices/ui_audiodevicesbase.py   pyqt5(Download)
        self.populateTableButton.setObjectName("populateTableButton")
        self.verticalLayout_2.addWidget(self.populateTableButton)
        self.allFormatsTable = QtWidgets.QTableWidget(self.tab)
        self.allFormatsTable.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.allFormatsTable.setDragDropOverwriteMode(False)

src/p/y/pyqt5-HEAD/examples/widgets/icons/icons.py   pyqt5(Download)
from PyQt5.QtCore import QFileInfo, QRegExp, QSize, Qt
from PyQt5.QtGui import QIcon, QImage, QPalette, QPixmap
from PyQt5.QtWidgets import (QAbstractItemView, QAction, QActionGroup,
        QApplication, QComboBox, QFileDialog, QFrame, QGridLayout, QGroupBox,
        QHBoxLayout, QHeaderView, QItemDelegate, QLabel, QMainWindow,
    def createImagesGroupBox(self):
        self.imagesGroupBox = QGroupBox("Images")
 
        self.imagesTable = QTableWidget()
        self.imagesTable.setSelectionMode(QAbstractItemView.NoSelection)

src/p/y/pyqt5-HEAD/examples/tools/settingseditor/settingseditor.py   pyqt5(Download)
        QRegExp, QSettings, QSize, Qt, QTime, QTimer)
from PyQt5.QtGui import QColor, QIcon, QRegExpValidator, QValidator
from PyQt5.QtWidgets import (QAbstractItemView, QAction, QApplication,
        QComboBox, QDialog, QDialogButtonBox, QFileDialog, QGridLayout,
        QGroupBox, QHeaderView, QInputDialog, QItemDelegate, QLabel, QLineEdit,
        self.locationsGroupBox = QGroupBox("Setting Locations")
 
        self.locationsTable = QTableWidget()
        self.locationsTable.setSelectionMode(QAbstractItemView.SingleSelection)
        self.locationsTable.setSelectionBehavior(QAbstractItemView.SelectRows)

src/p/y/pyqt5-HEAD/examples/draganddrop/dropsite.py   pyqt5(Download)
from PyQt5.QtCore import pyqtSignal, QMimeData, Qt
from PyQt5.QtGui import QPalette, QPixmap
from PyQt5.QtWidgets import (QAbstractItemView, QApplication, QDialogButtonBox,
        QFrame, QLabel, QPushButton, QTableWidget, QTableWidgetItem,
        QVBoxLayout, QWidget)
        self.dropArea.changed.connect(self.updateFormatsTable)
 
        self.formatsTable = QTableWidget()
        self.formatsTable.setColumnCount(2)
        self.formatsTable.setEditTriggers(QAbstractItemView.NoEditTriggers)