graphics package

Submodules

graphics.graphics_line_2d module

class graphics.graphics_line_2d.QGraphicsLine(parent: QGraphicsItem = None) QGraphicsPathItem(QPainterPath, parent: QGraphicsItem = None)[source]

Bases: QGraphicsPathItem

Attributes
pen

pen(self) -> QPen

Methods

CacheMode

GraphicsItemChange

GraphicsItemFlag

GraphicsItemFlags(...)

PanelModality

acceptDrops(self)

acceptHoverEvents(self)

acceptTouchEvents(self)

acceptedMouseButtons(self)

advance(self, int)

boundingRect(self)

boundingRegion(self, QTransform)

boundingRegionGranularity(self)

brush(self)

cacheMode(self)

calcPath()

Will handle drawing QPainterPath from point A to B

childItems(self)

childrenBoundingRect(self)

clearFocus(self)

clipPath(self)

collidesWithItem(self, QGraphicsItem[, mode])

collidesWithPath(self, QPainterPath[, mode])

collidingItems(self[, mode])

commonAncestorItem(self, QGraphicsItem)

contains(self, Union[QPointF, QPoint])

contextMenuEvent(self, ...)

cursor(self)

data(self, int)

deviceTransform(self, QTransform)

dragEnterEvent(self, QGraphicsSceneDragDropEvent)

dragLeaveEvent(self, QGraphicsSceneDragDropEvent)

dragMoveEvent(self, QGraphicsSceneDragDropEvent)

dropEvent(self, QGraphicsSceneDragDropEvent)

effectiveOpacity(self)

ensureVisible(, xMargin, yMargin)

filtersChildEvents(self)

flags(self)

focusInEvent(self, QFocusEvent)

focusItem(self)

focusOutEvent(self, QFocusEvent)

focusProxy(self)

grabKeyboard(self)

grabMouse(self)

graphicsEffect(self)

group(self)

hasCursor(self)

hasFocus(self)

hide(self)

hoverEnterEvent(self, QGraphicsSceneHoverEvent)

hoverLeaveEvent(self, QGraphicsSceneHoverEvent)

hoverMoveEvent(self, QGraphicsSceneHoverEvent)

inputMethodEvent(self, QInputMethodEvent)

inputMethodHints(self)

inputMethodQuery(self, Qt.InputMethodQuery)

installSceneEventFilter(self, QGraphicsItem)

isActive(self)

isAncestorOf(self, QGraphicsItem)

isBlockedByModalPanel(self)

isClipped(self)

isEnabled(self)

isObscured() -> bool)

isObscuredBy(self, QGraphicsItem)

isPanel(self)

isSelected(self)

isUnderMouse(self)

isVisible(self)

isVisibleTo(self, QGraphicsItem)

isWidget(self)

isWindow(self)

itemChange(self, ...)

itemTransform(self, QGraphicsItem)

keyPressEvent(self, QKeyEvent)

keyReleaseEvent(self, QKeyEvent)

mapFromItem(...)

mapFromParent(...)

mapFromScene(...)

mapRectFromItem(-> QRectF)

mapRectFromParent(-> QRectF)

mapRectFromScene(-> QRectF)

mapRectToItem(-> QRectF)

mapRectToParent(-> QRectF)

mapRectToScene(-> QRectF)

mapToItem(...)

mapToParent(...)

mapToScene(...)

mouseDoubleClickEvent(self, ...)

mouseMoveEvent(self, QGraphicsSceneMouseEvent)

mousePressEvent(self, QGraphicsSceneMouseEvent)

mouseReleaseEvent(self, QGraphicsSceneMouseEvent)

moveBy(self, float, float)

opacity(self)

opaqueArea(self)

paint(self, QPainter, QStyleOptionGraphicsItem)

panel(self)

panelModality(self)

parentItem(self)

parentObject(self)

parentWidget(self)

path(self)

pos(self)

prepareGeometryChange(self)

removeSceneEventFilter(self, QGraphicsItem)

resetTransform(self)

rotation(self)

scale(self)

scene(self)

sceneBoundingRect(self)

sceneEvent(self, QEvent)

sceneEventFilter(self, QGraphicsItem, QEvent)

scenePos(self)

sceneTransform(self)

scroll(self, float, float, rect)

setAcceptDrops(self, bool)

setAcceptHoverEvents(self, bool)

setAcceptTouchEvents(self, bool)

setAcceptedMouseButtons(self, ...)

setActive(self, bool)

setBoundingRegionGranularity(self, float)

setBrush(self, Union[QBrush, QColor, ...)

setCacheMode(self, QGraphicsItem.CacheMode, ...)

setCursor(self, Union[QCursor, Qt.CursorShape])

setData(self, int, Any)

setEnabled(self, bool)

setFiltersChildEvents(self, bool)

setFlag(self, ...)

setFlags(self, ...)

setFocus(self[, focusReason])

setFocusProxy(self, QGraphicsItem)

setGraphicsEffect(self, QGraphicsEffect)

setGroup(self, QGraphicsItemGroup)

setInputMethodHints(self, ...)

setOpacity(self, float)

setPanelModality(self, ...)

setParentItem(self, QGraphicsItem)

setPath(self, QPainterPath)

setPen(self, Union[QPen, QColor, ...)

setPos(setPos)

setRotation(self, float)

setScale(self, float)

setSelected(self, bool)

setToolTip(self, str)

setTransform(self, QTransform[, combine])

setTransformOriginPoint(setTransformOriginPoint)

setTransformations(self, ...)

setVisible(self, bool)

setX(self, float)

setY(self, float)

setZValue(self, float)

shape(self)

show(self)

stackBefore(self, QGraphicsItem)

toGraphicsObject(self)

toolTip(self)

topLevelItem(self)

topLevelWidget(self)

transform(self)

transformOriginPoint(self)

transformations(self)

type(self)

ungrabKeyboard(self)

ungrabMouse(self)

unsetCursor(self)

update() update)

updateMicroFocus(self)

wheelEvent(self, QGraphicsSceneWheelEvent)

window(self)

x(self)

y(self)

zValue(self)

initUI

setDestination

setSource

boundingRect(self) QRectF[source]
calcPath()[source]

Will handle drawing QPainterPath from point A to B

initUI()[source]
paint(self, QPainter, QStyleOptionGraphicsItem, widget: QWidget = None)[source]
property pen
setDestination(x, y)[source]
setSource(x, y)[source]
shape(self) QPainterPath[source]
class graphics.graphics_line_2d.QGraphicsLineDirect(parent: QGraphicsItem = None) QGraphicsPathItem(QPainterPath, parent: QGraphicsItem = None)[source]

Bases: QGraphicsLine

Attributes
pen

pen(self) -> QPen

Methods

CacheMode

GraphicsItemChange

GraphicsItemFlag

GraphicsItemFlags(...)

PanelModality

acceptDrops(self)

acceptHoverEvents(self)

acceptTouchEvents(self)

acceptedMouseButtons(self)

advance(self, int)

boundingRect(self)

boundingRegion(self, QTransform)

boundingRegionGranularity(self)

brush(self)

cacheMode(self)

calcPath()

Will handle drawing QPainterPath from point A to B

childItems(self)

childrenBoundingRect(self)

clearFocus(self)

clipPath(self)

collidesWithItem(self, QGraphicsItem[, mode])

collidesWithPath(self, QPainterPath[, mode])

collidingItems(self[, mode])

commonAncestorItem(self, QGraphicsItem)

contains(self, Union[QPointF, QPoint])

contextMenuEvent(self, ...)

cursor(self)

data(self, int)

deviceTransform(self, QTransform)

dragEnterEvent(self, QGraphicsSceneDragDropEvent)

dragLeaveEvent(self, QGraphicsSceneDragDropEvent)

dragMoveEvent(self, QGraphicsSceneDragDropEvent)

dropEvent(self, QGraphicsSceneDragDropEvent)

effectiveOpacity(self)

ensureVisible(, xMargin, yMargin)

filtersChildEvents(self)

flags(self)

focusInEvent(self, QFocusEvent)

focusItem(self)

focusOutEvent(self, QFocusEvent)

focusProxy(self)

grabKeyboard(self)

grabMouse(self)

graphicsEffect(self)

group(self)

hasCursor(self)

hasFocus(self)

hide(self)

hoverEnterEvent(self, QGraphicsSceneHoverEvent)

hoverLeaveEvent(self, QGraphicsSceneHoverEvent)

hoverMoveEvent(self, QGraphicsSceneHoverEvent)

inputMethodEvent(self, QInputMethodEvent)

inputMethodHints(self)

inputMethodQuery(self, Qt.InputMethodQuery)

installSceneEventFilter(self, QGraphicsItem)

isActive(self)

isAncestorOf(self, QGraphicsItem)

isBlockedByModalPanel(self)

isClipped(self)

isEnabled(self)

isObscured() -> bool)

isObscuredBy(self, QGraphicsItem)

isPanel(self)

isSelected(self)

isUnderMouse(self)

isVisible(self)

isVisibleTo(self, QGraphicsItem)

isWidget(self)

isWindow(self)

itemChange(self, ...)

itemTransform(self, QGraphicsItem)

keyPressEvent(self, QKeyEvent)

keyReleaseEvent(self, QKeyEvent)

mapFromItem(...)

mapFromParent(...)

mapFromScene(...)

mapRectFromItem(-> QRectF)

mapRectFromParent(-> QRectF)

mapRectFromScene(-> QRectF)

mapRectToItem(-> QRectF)

mapRectToParent(-> QRectF)

mapRectToScene(-> QRectF)

mapToItem(...)

mapToParent(...)

mapToScene(...)

mouseDoubleClickEvent(self, ...)

mouseMoveEvent(self, QGraphicsSceneMouseEvent)

mousePressEvent(self, QGraphicsSceneMouseEvent)

mouseReleaseEvent(self, QGraphicsSceneMouseEvent)

moveBy(self, float, float)

opacity(self)

opaqueArea(self)

paint(self, QPainter, QStyleOptionGraphicsItem)

panel(self)

panelModality(self)

parentItem(self)

parentObject(self)

parentWidget(self)

path(self)

pos(self)

prepareGeometryChange(self)

removeSceneEventFilter(self, QGraphicsItem)

resetTransform(self)

rotation(self)

scale(self)

scene(self)

sceneBoundingRect(self)

sceneEvent(self, QEvent)

sceneEventFilter(self, QGraphicsItem, QEvent)

scenePos(self)

sceneTransform(self)

scroll(self, float, float, rect)

setAcceptDrops(self, bool)

setAcceptHoverEvents(self, bool)

setAcceptTouchEvents(self, bool)

setAcceptedMouseButtons(self, ...)

setActive(self, bool)

setBoundingRegionGranularity(self, float)

setBrush(self, Union[QBrush, QColor, ...)

setCacheMode(self, QGraphicsItem.CacheMode, ...)

setCursor(self, Union[QCursor, Qt.CursorShape])

setData(self, int, Any)

setEnabled(self, bool)

setFiltersChildEvents(self, bool)

setFlag(self, ...)

setFlags(self, ...)

setFocus(self[, focusReason])

setFocusProxy(self, QGraphicsItem)

setGraphicsEffect(self, QGraphicsEffect)

setGroup(self, QGraphicsItemGroup)

setInputMethodHints(self, ...)

setOpacity(self, float)

setPanelModality(self, ...)

setParentItem(self, QGraphicsItem)

setPath(self, QPainterPath)

setPen(self, Union[QPen, QColor, ...)

setPos(setPos)

setRotation(self, float)

setScale(self, float)

setSelected(self, bool)

setToolTip(self, str)

setTransform(self, QTransform[, combine])

setTransformOriginPoint(setTransformOriginPoint)

setTransformations(self, ...)

setVisible(self, bool)

setX(self, float)

setY(self, float)

setZValue(self, float)

shape(self)

show(self)

stackBefore(self, QGraphicsItem)

toGraphicsObject(self)

toolTip(self)

topLevelItem(self)

topLevelWidget(self)

transform(self)

transformOriginPoint(self)

transformations(self)

type(self)

ungrabKeyboard(self)

ungrabMouse(self)

unsetCursor(self)

update() update)

updateMicroFocus(self)

wheelEvent(self, QGraphicsSceneWheelEvent)

window(self)

x(self)

y(self)

zValue(self)

initUI

setDestination

setSource

calcPath()[source]

Will handle drawing QPainterPath from point A to B

graphics.graphics_scene module

class graphics.graphics_scene.GraphicsScene(parent: QObject = None) QGraphicsScene(QRectF, parent: QObject = None) QGraphicsScene(float, float, float, float, parent: QObject = None)[source]

Bases: QGraphicsScene

Methods

ItemIndexMethod

SceneLayer

SceneLayers(...)

activePanel(self)

activeWindow(self)

addEllipse(, brush, QColor, Qt.GlobalColor, ...)

addItem(self, QGraphicsItem)

addLine() -> QGraphicsLineItem ))

addPath(self, QPainterPath[, pen, brush])

addPixmap(self, QPixmap)

addPolygon(self, QPolygonF[, pen, brush])

addRect(, brush, QColor, Qt.GlobalColor, ...)

addSimpleText(self, str[, font])

addText(self, str[, font])

addWidget(self, QWidget[, flags])

advance(self)

backgroundBrush(self)

blockSignals(self, bool)

bspTreeDepth(self)

changed

changed(self, Iterable[QRectF]) [signal]

childEvent(self, QChildEvent)

children(self)

clear(self)

clearFocus(self)

clearSelection(self)

collidingItems(self, QGraphicsItem[, mode])

connectNotify(self, QMetaMethod)

contextMenuEvent(self, ...)

createItemGroup(self, Iterable[QGraphicsItem])

customEvent(self, QEvent)

deleteLater(self)

destroyItemGroup(self, QGraphicsItemGroup)

destroyed

QObject = None) [signal]

disconnect(-> bool disconnect)

disconnectNotify(self, QMetaMethod)

dragEnterEvent(self, QGraphicsSceneDragDropEvent)

dragLeaveEvent(self, QGraphicsSceneDragDropEvent)

dragMoveEvent(self, QGraphicsSceneDragDropEvent)

drawBackground(self, QPainter, QRectF)

drawForeground(self, QPainter, QRectF)

dropEvent(self, QGraphicsSceneDragDropEvent)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

event(self, QEvent)

eventFilter(self, QObject, QEvent)

findChild(-> QObject)

findChildren(...)

focusInEvent(self, QFocusEvent)

focusItem(self)

focusItemChanged

focusItemChanged(self, QGraphicsItem, QGraphicsItem, Qt.FocusReason) [signal]

focusNextPrevChild(self, bool)

focusOnTouch(self)

focusOutEvent(self, QFocusEvent)

font(self)

foregroundBrush(self)

hasFocus(self)

height(self)

helpEvent(self, QGraphicsSceneHelpEvent)

inherits(self, str)

inputMethodEvent(self, QInputMethodEvent)

inputMethodQuery(self, Qt.InputMethodQuery)

installEventFilter(self, QObject)

invalidate(, layers, ...)

isActive(self)

isSignalConnected(self, QMetaMethod)

isWidgetType(self)

isWindowType(self)

itemAt(-> QGraphicsItem)

itemIndexMethod(self)

items(...)

itemsBoundingRect(self)

keyPressEvent(self, QKeyEvent)

keyReleaseEvent(self, QKeyEvent)

killTimer(self, int)

metaObject(self)

minimumRenderSize(self)

mouseDoubleClickEvent(self, ...)

mouseGrabberItem(self)

mouseMoveEvent(self, QGraphicsSceneMouseEvent)

mousePressEvent(self, QGraphicsSceneMouseEvent)

mouseReleaseEvent(self, QGraphicsSceneMouseEvent)

moveToThread(self, QThread)

objectName(self)

objectNameChanged

objectNameChanged(self, str) [signal]

palette(self)

parent(self)

property(self, str)

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

receivers(self, PYQT_SIGNAL)

removeEventFilter(self, QObject)

removeItem(self, QGraphicsItem)

render(self, QPainter[, target, source, mode])

sceneRect(self)

sceneRectChanged

sceneRectChanged(self, QRectF) [signal]

selectedItems(self)

selectionArea(self)

selectionChanged

selectionChanged(self) [signal]

sendEvent(self, QGraphicsItem, QEvent)

sender(self)

senderSignalIndex(self)

setActivePanel(self, QGraphicsItem)

setActiveWindow(self, QGraphicsWidget)

setBackgroundBrush(self, Union[QBrush, ...)

setBspTreeDepth(self, int)

setFocus(self[, focusReason])

setFocusItem(self, QGraphicsItem[, focusReason])

setFocusOnTouch(self, bool)

setFont(self, QFont)

setForegroundBrush(self, Union[QBrush, ...)

setItemIndexMethod(self, ...)

setMinimumRenderSize(self, float)

setObjectName(self, str)

setPalette(self, QPalette)

setParent(self, QObject)

setProperty(self, str, Any)

setSceneRect(setSceneRect)

setSelectionArea(...)

setStickyFocus(self, bool)

setStyle(self, QStyle)

signalsBlocked(self)

startTimer(self, int[, timerType])

stickyFocus(self)

style(self)

thread(self)

timerEvent(self, QTimerEvent)

tr(self, str[, disambiguation, n])

update() update)

views(self)

wheelEvent(self, QGraphicsSceneWheelEvent)

width(self)

setGrScene

drawBackground(self, QPainter, QRectF)[source]
setGrScene(width, height)[source]

graphics.graphics_view module

class graphics.graphics_view.GraphicsView(parent: QWidget = None) QGraphicsView(QGraphicsScene, parent: QWidget = None)[source]

Bases: QGraphicsView

Methods

CacheMode(...)

CacheModeFlag

DragMode

OptimizationFlag

OptimizationFlags(...)

PaintDeviceMetric

RenderFlag

RenderFlags(...)

Shadow

Shape

SizeAdjustPolicy

StyleMask

ViewportAnchor

ViewportUpdateMode

acceptDrops(self)

accessibleDescription(self)

accessibleName(self)

actionEvent(self, QActionEvent)

actions(self)

activateWindow(self)

addAction(self, QAction)

addActions(self, Iterable[QAction])

addScrollBarWidget(self, QWidget, ...)

adjustSize(self)

alignment(self)

autoFillBackground(self)

backgroundBrush(self)

backgroundRole(self)

baseSize(self)

blockSignals(self, bool)

cacheMode(self)

centerOn(centerOn centerOn  -> None)

changeEvent(self, QEvent)

childAt(-> QWidget)

childEvent(self, QChildEvent)

children(self)

childrenRect(self)

childrenRegion(self)

clearFocus(self)

clearMask(self)

close(self)

closeEvent(self, QCloseEvent)

colorCount(self)

connectNotify(self, QMetaMethod)

contentsMargins(self)

contentsRect(self)

contextMenuEvent(self, QContextMenuEvent)

contextMenuPolicy(self)

cornerWidget(self)

create(self[, window, initializeWindow, ...])

createWindowContainer(QWindow[, parent, flags])

cursor(self)

customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

customEvent(self, QEvent)

deleteLater(self)

depth(self)

destroy(self[, destroyWindow, destroySubWindows])

destroyed

QObject = None) [signal]

devType(self)

devicePixelRatio(self)

devicePixelRatioF(self)

devicePixelRatioFScale()

disconnect(-> bool disconnect)

disconnectNotify(self, QMetaMethod)

distanceBetweenCLickAndReleaseIsOff(event)

This measures if we are far enough from last lmb click scene position

dragEnterEvent(self, QDragEnterEvent)

dragLeaveEvent(self, QDragLeaveEvent)

dragMode(self)

dragMoveEvent(self, QDragMoveEvent)

drawBackground(self, QPainter, QRectF)

drawForeground(self, QPainter, QRectF)

drawFrame(self, QPainter)

dropEvent(self, QDropEvent)

dumpObjectInfo(self)

dumpObjectTree(self)

dynamicPropertyNames(self)

effectiveWinId(self)

ensurePolished(self)

ensureVisible(...)

enterEvent(self, QEvent)

event(self, QEvent)

eventFilter(self, QObject, QEvent)

find(PyQt5.sip.voidptr)

findChild(-> QObject)

findChildren(...)

fitInView(fitInView fitInView  -> None)

focusInEvent(self, QFocusEvent)

focusNextChild(self)

focusNextPrevChild(self, bool)

focusOutEvent(self, QFocusEvent)

focusPolicy(self)

focusPreviousChild(self)

focusProxy(self)

focusWidget(self)

font(self)

fontInfo(self)

fontMetrics(self)

foregroundBrush(self)

foregroundRole(self)

frameGeometry(self)

frameRect(self)

frameShadow(self)

frameShape(self)

frameSize(self)

frameStyle(self)

frameWidth(self)

geometry(self)

getContentsMargins(self)

getItemAtClick(event)

Return object clicked/release the mouse button on

grab(self[, rectangle])

grabGesture(self, Qt.GestureType, flags, ...)

grabKeyboard(self)

grabMouse(grabMouse)

grabShortcut(self, Union[QKeySequence, ...)

graphicsEffect(self)

graphicsProxyWidget(self)

hasFocus(self)

hasHeightForWidth(self)

hasMouseTracking(self)

hasTabletTracking(self)

height(self)

heightForWidth(self, int)

heightMM(self)

hide(self)

hideEvent(self, QHideEvent)

horizontalScrollBar(self)

horizontalScrollBarPolicy(self)

inherits(self, str)

initPainter(self, QPainter)

initStyleOption(self, QStyleOptionFrame)

inputMethodEvent(self, QInputMethodEvent)

inputMethodHints(self)

inputMethodQuery(self, Qt.InputMethodQuery)

insertAction(self, QAction, QAction)

insertActions(self, QAction, Iterable[QAction])

installEventFilter(self, QObject)

invalidateScene(self[, rect, layers])

isActiveWindow(self)

isAncestorOf(self, QWidget)

isEnabled(self)

isEnabledTo(self, QWidget)

isFullScreen(self)

isHidden(self)

isInteractive(self)

isLeftToRight(self)

isMaximized(self)

isMinimized(self)

isModal(self)

isRightToLeft(self)

isSignalConnected(self, QMetaMethod)

isTransformed(self)

isVisible(self)

isVisibleTo(self, QWidget)

isWidgetType(self)

isWindow(self)

isWindowModified(self)

isWindowType(self)

itemAt(-> QGraphicsItem)

items(...)

keyPressEvent(self, QKeyEvent)

keyReleaseEvent(self, QKeyEvent)

keyboardGrabber()

killTimer(self, int)

layout(self)

layoutDirection(self)

leaveEvent(self, QEvent)

lineWidth(self)

locale(self)

logicalDpiX(self)

logicalDpiY(self)

lower(self)

mapFrom(self, QWidget, QPoint)

mapFromGlobal(self, QPoint)

mapFromParent(self, QPoint)

mapFromScene(...)

mapTo(self, QWidget, QPoint)

mapToGlobal(self, QPoint)

mapToParent(self, QPoint)

mapToScene(...)

mask(self)

maximumHeight(self)

maximumSize(self)

maximumViewportSize(self)

maximumWidth(self)

metaObject(self)

metric(self, QPaintDevice.PaintDeviceMetric)

midLineWidth(self)

minimumHeight(self)

minimumSize(self)

minimumSizeHint(self)

minimumWidth(self)

mouseDoubleClickEvent(self, QMouseEvent)

mouseGrabber()

mouseMoveEvent(self, QMouseEvent)

mousePressEvent(self, QMouseEvent)

mouseReleaseEvent(self, QMouseEvent)

move(move)

moveEvent(self, QMoveEvent)

moveToThread(self, QThread)

nativeEvent(self, Union[QByteArray, bytes, ...)

nativeParentWidget(self)

nextInFocusChain(self)

normalGeometry(self)

objectName(self)

objectNameChanged

objectNameChanged(self, str) [signal]

optimizationFlags(self)

overrideWindowFlags(self, ...)

overrideWindowState(self, ...)

paintEngine(self)

paintEvent(self, QPaintEvent)

paintingActive(self)

palette(self)

parent(self)

parentWidget(self)

physicalDpiX(self)

physicalDpiY(self)

pos(self)

previousInFocusChain(self)

property(self, str)

pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal.

raise_(self)

receivers(self, PYQT_SIGNAL)

rect(self)

releaseKeyboard(self)

releaseMouse(self)

releaseShortcut(self, int)

removeAction(self, QAction)

removeEventFilter(self, QObject)

render(self, QPainter[, target, source, mode])

renderHints(self)

repaint(...)

resetCachedContent(self)

resetTransform(self)

resize(resize)

resizeAnchor(self)

resizeEvent(self, QResizeEvent)

restoreGeometry(self, Union[QByteArray, ...)

rotate(self, float)

rubberBandChanged

rubberBandChanged(self, QRect, Union[QPointF, QPoint], Union[QPointF, QPoint]) [signal]

rubberBandRect(self)

rubberBandSelectionMode(self)

saveGeometry(self)

scale(self, float, float)

scene(self)

sceneRect(self)

screen(self)

scroll(scroll)

scrollBarWidgets(self, Union[Qt.Alignment, ...)

scrollContentsBy(self, int, int)

sender(self)

senderSignalIndex(self)

setAcceptDrops(self, bool)

setAccessibleDescription(self, str)

setAccessibleName(self, str)

setAlignment(self, Union[Qt.Alignment, ...)

setAttribute(self, Qt.WidgetAttribute, on)

setAutoFillBackground(self, bool)

setBackgroundBrush(self, Union[QBrush, ...)

setBackgroundRole(self, QPalette.ColorRole)

setBaseSize(setBaseSize)

setCacheMode(self, ...)

setContentsMargins(setContentsMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)

setCornerWidget(self, QWidget)

setCursor(self, Union[QCursor, Qt.CursorShape])

setDisabled(self, bool)

setDragMode(self, QGraphicsView.DragMode)

setEnabled(self, bool)

setFixedHeight(self, int)

setFixedSize(setFixedSize)

setFixedWidth(self, int)

setFocus(setFocus)

setFocusPolicy(self, Qt.FocusPolicy)

setFocusProxy(self, QWidget)

setFont(self, QFont)

setForegroundBrush(self, Union[QBrush, ...)

setForegroundRole(self, QPalette.ColorRole)

setFrameRect(self, QRect)

setFrameShadow(self, QFrame.Shadow)

setFrameShape(self, QFrame.Shape)

setFrameStyle(self, int)

setGeometry(setGeometry)

setGraphicsEffect(self, QGraphicsEffect)

setHidden(self, bool)

setHorizontalScrollBar(self, QScrollBar)

setHorizontalScrollBarPolicy(self, ...)

setInputMethodHints(self, ...)

setInteractive(self, bool)

setLayout(self, QLayout)

setLayoutDirection(self, Qt.LayoutDirection)

setLineWidth(self, int)

setLocale(self, QLocale)

setMask(setMask)

setMaximumHeight(self, int)

setMaximumSize(setMaximumSize)

setMaximumWidth(self, int)

setMidLineWidth(self, int)

setMinimumHeight(self, int)

setMinimumSize(setMinimumSize)

setMinimumWidth(self, int)

setMouseTracking(self, bool)

setObjectName(self, str)

setOptimizationFlag(self, ...)

setOptimizationFlags(self, ...)

setPalette(self, QPalette)

setParent(setParent)

setProperty(self, str, Any)

setRenderHint(self, QPainter.RenderHint, on)

setRenderHints(self, ...)

setResizeAnchor(self, ...)

setRubberBandSelectionMode(self, ...)

setScene(self, QGraphicsScene)

setSceneRect(setSceneRect)

setShortcutAutoRepeat(self, int[, enabled])

setShortcutEnabled(self, int[, enabled])

setSizeAdjustPolicy(self, ...)

setSizeIncrement(setSizeIncrement)

setSizePolicy(setSizePolicy)

setStatusTip(self, str)

setStyle(self, QStyle)

setStyleSheet(self, str)

setTabOrder(QWidget, QWidget)

setTabletTracking(self, bool)

setToolTip(self, str)

setToolTipDuration(self, int)

setTransform(self, QTransform[, combine])

setTransformationAnchor(self, ...)

setUpdatesEnabled(self, bool)

setVerticalScrollBar(self, QScrollBar)

setVerticalScrollBarPolicy(self, ...)

setViewport(self, QWidget)

setViewportMargins(setViewportMargins)

setViewportUpdateMode(self, ...)

setVisible(self, bool)

setWhatsThis(self, str)

setWindowFilePath(self, str)

setWindowFlag(self, Qt.WindowType, on)

setWindowFlags(self, Union[Qt.WindowFlags, ...)

setWindowIcon(self, QIcon)

setWindowIconText(self, str)

setWindowModality(self, Qt.WindowModality)

setWindowModified(self, bool)

setWindowOpacity(self, float)

setWindowRole(self, str)

setWindowState(self, Union[Qt.WindowStates, ...)

setWindowTitle(self, str)

setupViewport(self, QWidget)

sharedPainter(self)

shear(self, float, float)

show(self)

showEvent(self, QShowEvent)

showFullScreen(self)

showMaximized(self)

showMinimized(self)

showNormal(self)

signalsBlocked(self)

size(self)

sizeAdjustPolicy(self)

sizeHint(self)

sizeIncrement(self)

sizePolicy(self)

stackUnder(self, QWidget)

startTimer(self, int[, timerType])

statusTip(self)

style(self)

styleSheet(self)

tabletEvent(self, QTabletEvent)

testAttribute(self, Qt.WidgetAttribute)

thread(self)

timerEvent(self, QTimerEvent)

toolTip(self)

toolTipDuration(self)

tr(self, str[, disambiguation, n])

transform(self)

transformationAnchor(self)

translate(self, float, float)

underMouse(self)

ungrabGesture(self, Qt.GestureType)

unsetCursor(self)

unsetLayoutDirection(self)

unsetLocale(self)

update(update update update  -> None  -> None)

updateGeometry(self)

updateMicroFocus(self)

updateScene(self, Iterable[QRectF])

updateSceneRect(self, QRectF)

updatesEnabled(self)

verticalScrollBar(self)

verticalScrollBarPolicy(self)

viewport(self)

viewportEvent(self, QEvent)

viewportMargins(self)

viewportSizeHint(self)

viewportTransform(self)

viewportUpdateMode(self)

visibleRegion(self)

whatsThis(self)

wheelEvent(self, QWheelEvent)

width(self)

widthMM(self)

winId(self)

window(self)

windowFilePath(self)

windowFlags(self)

windowHandle(self)

windowIcon(self)

windowIconChanged

windowIconChanged(self, QIcon) [signal]

windowIconText(self)

windowIconTextChanged

windowIconTextChanged(self, str) [signal]

windowModality(self)

windowOpacity(self)

windowRole(self)

windowState(self)

windowTitle(self)

windowTitleChanged

windowTitleChanged(self, str) [signal]

windowType(self)

x(self)

y(self)

cutIntersectingEdgees

debug_modifiers

drawCells

get_key_modifiers

initUi

leftMouseButtonPress

leftMouseButtonRelease

middleMouseButtonPress

middleMouseButtonRelease

removeCells

rightMouseButtonRelease

update_signal

wE

static cutIntersectingEdgees(self)[source]
static debug_modifiers(self, event)[source]
distanceBetweenCLickAndReleaseIsOff(event)[source]

This measures if we are far enough from last lmb click scene position

dragLeaveEvent(self, QDragLeaveEvent)[source]
dragMoveEvent(self, QDragMoveEvent)[source]
drawCells(IC=None, OC=None, BP=None, color='#ffffff')[source]
enterEvent(self, QEvent)[source]
getItemAtClick(event)[source]

Return object clicked/release the mouse button on

static get_key_modifiers(self)[source]
initUi()[source]
keyPressEvent(self, QKeyEvent)[source]
leaveEvent(self, QEvent)[source]
leftMouseButtonPress(event)[source]
leftMouseButtonRelease(event)[source]
middleMouseButtonPress(event)[source]
middleMouseButtonRelease(event)[source]
mouseDoubleClickEvent(self, QMouseEvent)[source]
mouseMoveEvent(self, QMouseEvent)[source]
mousePressEvent(self, QMouseEvent)[source]
mouseReleaseEvent(self, QMouseEvent)[source]
removeCells()[source]
rightMouseButtonRelease(event)[source]
update_signal()[source]
wE(ev)[source]
wheelEvent(self, QWheelEvent)[source]

graphics.object_line module

class graphics.object_line.Line(main_win=None, line_type='line', pos=(0, 0), section='top', IC=None, OC=None, BP=None, color='#ffffff')[source]

Bases: object

Attributes
pos

Methods

instantiateNodeType

remove

setPos

instantiateNodeType(IC, OC, BP, color)[source]
property pos
remove()[source]
setPos(x, y)[source]

graphics.scene module

class graphics.scene.Scene(main_win=None)[source]

Bases: object

Methods

addLine

clear

displayItemsOnScene

format

getItemAt

initUI

removeLine

resetIterationVariables

addLine(line)[source]
clear()[source]
displayItemsOnScene()[source]
format(obj_list)[source]
getItemAt(pos)[source]
initUI()[source]
removeLine(line)[source]
resetIterationVariables()[source]

Module contents