Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(288) | Call(92) | Derive(94) | Import(102)
src/p/y/pyqt5-HEAD/examples/opengl/hellogl.py pyqt5(Download)
from PyQt5.QtCore import pyqtSignal, QPoint, QSize, Qt from PyQt5.QtGui import QColor from PyQt5.QtWidgets import (QApplication, QHBoxLayout, QMessageBox, QSlider, QWidget) from PyQt5.QtOpenGL import QGLWidget
class Window(QWidget): def __init__(self): super(Window, self).__init__() self.glWidget = GLWidget()
src/p/y/pyqt5-HEAD/examples/widgets/wiggly.py pyqt5(Download)
from PyQt5.QtCore import QBasicTimer from PyQt5.QtGui import QColor, QFontMetrics, QPainter, QPalette from PyQt5.QtWidgets import (QApplication, QDialog, QLineEdit, QVBoxLayout, QWidget) class WigglyWidget(QWidget):
src/p/y/pyqt5-HEAD/examples/draganddrop/draggableicons/draggableicons.py pyqt5(Download)
QPoint, Qt) from PyQt5.QtGui import QColor, QDrag, QPainter, QPixmap from PyQt5.QtWidgets import QApplication, QFrame, QHBoxLayout, QLabel, QWidget import draggableicons_rc
app = QApplication(sys.argv) mainWidget = QWidget() horizontalLayout = QHBoxLayout() horizontalLayout.addWidget(DragWidget())
src/p/y/pyqt5-HEAD/examples/animation/easing/easing.py pyqt5(Download)
from PyQt5.QtGui import (QBrush, QColor, QIcon, QLinearGradient, QPainter, QPainterPath, QPixmap) from PyQt5.QtWidgets import (QApplication, QGraphicsPixmapItem, QGraphicsScene, QListWidgetItem, QWidget)
class Window(QWidget): def __init__(self, parent=None): super(QWidget, self).__init__(parent) self.m_iconSize = QSize(64, 64)
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)
class SortingBox(QWidget): circle_count = square_count = triangle_count = 1 def __init__(self): super(SortingBox, self).__init__()
src/p/y/pyqt5-HEAD/examples/painting/transformations.py pyqt5(Download)
from PyQt5.QtCore import QPointF, QSize, Qt from PyQt5.QtGui import QBrush, QFont, QFontMetrics, QPainter, QPainterPath from PyQt5.QtWidgets import QApplication, QComboBox, QGridLayout, QWidget NoTransformation, Translate, Rotate, Scale = range(4) class RenderArea(QWidget):
class Window(QWidget): operationTable = (NoTransformation, Rotate, Scale, Translate) NumTransformedAreas = 3
src/p/y/pyqt5-HEAD/examples/opengl/textures/textures.py pyqt5(Download)
from PyQt5.QtGui import (QColor, QMatrix4x4, QOpenGLShader, QOpenGLShaderProgram, QPixmap) from PyQt5.QtWidgets import QApplication, QGridLayout, QMessageBox, QWidget from PyQt5.QtOpenGL import QGLWidget
class Window(QWidget): NumRows = 2 NumColumns = 3 def __init__(self):
src/p/y/pyqt5-HEAD/examples/draganddrop/draggabletext/draggabletext.py pyqt5(Download)
from PyQt5.QtCore import QFile, QIODevice, QMimeData, QPoint, Qt, QTextStream from PyQt5.QtGui import QDrag, QPalette, QPixmap from PyQt5.QtWidgets import QApplication, QFrame, QLabel, QWidget import draggabletext_rc
class DragWidget(QWidget): def __init__(self, parent=None): super(DragWidget, self).__init__(parent) dictionaryFile = QFile(':/dictionary/words.txt')
src/p/y/pyqt5-HEAD/examples/opengl/2dpainting.py pyqt5(Download)
from PyQt5.QtCore import QPointF, QRect, QRectF, Qt, QTimer from PyQt5.QtGui import QBrush, QColor, QFont, QLinearGradient, QPainter, QPen from PyQt5.QtWidgets import QApplication, QGridLayout, QLabel, QWidget from PyQt5.QtOpenGL import QGL, QGLFormat, QGLWidget
class Widget(QWidget): def __init__(self, helper, parent): super(Widget, self).__init__(parent) self.helper = helper
class Window(QWidget): def __init__(self): super(Window, self).__init__() self.setWindowTitle("2D Painting on Native and OpenGL Widgets")
src/p/y/pyqt5-HEAD/examples/network/lightmaps.py pyqt5(Download)
from PyQt5.QtGui import (QColor, QDesktopServices, QImage, QPainter, QPainterPath, QPixmap, QRadialGradient) from PyQt5.QtWidgets import QAction, QApplication, QMainWindow, QWidget from PyQt5.QtNetwork import (QNetworkAccessManager, QNetworkDiskCache, QNetworkRequest)
class LightMaps(QWidget): def __init__(self, parent = None): super(LightMaps, self).__init__(parent) self.pressed = False
Previous 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 Next