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

All Samples(7)  |  Call(0)  |  Derive(4)  |  Import(3)

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)
 
class StarDelegate(QStyledItemDelegate):
    def paint(self, painter, option, index):
        starRating = index.data()
        if isinstance(starRating, StarRating):
            if option.state & QStyle.State_Selected:

src/d/u/dupeguru-HEAD/qt/base/directories_model.py   dupeguru(Download)
 
from PyQt5.QtCore import pyqtSignal, Qt, QRect, QUrl, QModelIndex, QItemSelection
from PyQt5.QtWidgets import (QComboBox, QStyledItemDelegate, QStyle, QStyleOptionComboBox,
    QStyleOptionViewItem, QApplication)
from PyQt5.QtGui import QBrush
class DirectoriesDelegate(QStyledItemDelegate):
    def createEditor(self, parent, option, index):
        editor = QComboBox(parent);
        editor.addItems(STATES)
        return editor

src/d/e/deepin-talk-HEAD/src/dtalk/views/widgets/chatview.py   deepin-talk(Download)
class MessageDelegate(QtWidgets.QStyledItemDelegate):        
 
    def __init__(self, parent=None):    
        super(MessageDelegate, self).__init__(parent)
 

src/p/y/pyqtdeploy-0.3/pyqtdeploy/gui/filename_editor_delegate.py   pyqtdeploy(Download)
 
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QStyledItemDelegate
 
from .filename_editor import FilenameEditor
 
 
class FilenameEditorDelegate(QStyledItemDelegate):