The guidata.dataset package provides the core features for data set display and editing with automatically generated graphical user interfaces.
The guidata.dataset.dataitems module contains implementation for concrete DataItems.
label [string]: text shown on the button
icon [QIcon or string]: icon show on the button (optional) (string: icon filename as in guidata/guiqwt image search paths)
default [unspecified]: default value passed to the callback (optional)
help [string]: text shown in button’s tooltip (optional)
The value of this item is unspecified but is passed to the callback along with the whole dataset. The value is assigned the callback`s return value.
Color values are encoded as hexadecimal strings or Qt color names
label [string]: name
default [int]: default value (optional)
min [int]: minimum value (optional)
max [int]: maximum value (optional)
nonzero [bool]: if True, zero is not a valid value (optional)
if None (default), ignored (optional)
help [string]: text shown in tooltip (optional)
Construct a data item for a list of choices – multiple choices can be selected
- label [string]: name
- choices [list or tuple]: string list or (key, label) list
- default [-]: default label or default key (optional)
- help [string]: text shown in tooltip (optional)
The guidata.dataset.datatypes module contains implementation for DataSets (DataSet, DataSetGroup, ...) and related objects (ItemProperty, ValueProp, ...).
An ActivableDataSet instance must have an “enable” class attribute which will set the active state of the dataset instance (see example in: tests/activable_dataset.py)
helper function that passes the visitor to the accept methods of all the items in this dataset
This class method must be called after the child class definition in order to setup the dataset active state
Check the dataset item values
Open a dialog box to edit data set
Return data set comment
Return data set icon
Return data set title
Set default values
Edit data set with text input only
Open a dialog box to view data set
Data item which does not represent anything but a begin flag to define a data set group
DataSet data item
label : (str, unicode) default : any type, optional help : (str, unicode)
Text displayed on data item’s tooltip
Proxy for DataItem objects
This class is needed to construct GroupItem class (see module guidata.qtwidgets)
DataItem method proxy
An instance of a DataItemVariable represent a binding between an item and a dataset.
could be called a bound property.
since DataItem instances are class attributes they need to have a DataSet instance to store their value. This class binds the two together.
DataItem method proxy
This class tries to mimics the DataSet interface.
The GUI should represent it as a notebook with one page for each contained dataset.
DataSet metaclass
Create class attribute _items: list of the DataSet class attributes, created in the same order as these attributes were written
mro() -> list return a type’s method resolution order
Data item which does not represent anything but an end flag to define a data set group
A Property that returns a string to help custom read-only representation of items
Sets the value of the property given an instance, item and value Depending on implementation the value will be stored either on the instance, item or self
A property that matches the value of an instance’s attribute
GroupItem proxy
DataItem method proxy
DataItem method proxy
DataItem method proxy
DataItem method proxy
DataItem method proxy
DataItem method proxy
DataItem method proxy
DataItem method proxy
DataItem method proxy
DataItem method proxy
DataItem method proxy
DataItem method proxy
DataItem method proxy
An interface for dataitem/dataset serialization
An interface for dataitem/dataset serialization
An object that helps build default instances for ObjectItems
Simple helper class implementing default for composite objects
The guidata.qthelpers module provides helper functions for developing easily Qt-based graphical user interfaces.
Custom list widget: liste de mesures et de traitements
QAbstractItemView.EditTriggers(QAbstractItemView.EditTriggers) QAbstractItemView.EditTriggers(int) QAbstractItemView.EditTriggers()
QWidget.RenderFlags(QWidget.RenderFlags) QWidget.RenderFlags(int) QWidget.RenderFlags()
QWidget.acceptDrops() -> bool
QWidget.accessibleDescription() -> QString
QWidget.accessibleName() -> QString
QWidget.actionEvent(QActionEvent)
QWidget.actions() -> list-of-QAction
QWidget.activateWindow()
QAbstractItemView.activated[QModelIndex] [signal]
QWidget.addAction(QAction)
QWidget.addActions(list-of-QAction)
QListWidget.addItem(QListWidgetItem) QListWidget.addItem(QString)
QListWidget.addItems(QStringList)
QAbstractScrollArea.addScrollBarWidget(QWidget, Qt.Alignment)
QWidget.adjustSize()
QAbstractItemView.alternatingRowColors() -> bool
QWidget.autoFillBackground() -> bool
QAbstractItemView.autoScrollMargin() -> int
QWidget.backgroundRole() -> QPalette.ColorRole
QWidget.baseSize() -> QSize
QListView.batchSize() -> int
QObject.blockSignals(bool) -> bool
QFrame.changeEvent(QEvent)
QWidget.childAt(QPoint) -> QWidget QWidget.childAt(int, int) -> QWidget
QObject.childEvent(QChildEvent)
QObject.children() -> list-of-QObject
QWidget.childrenRect() -> QRect
QWidget.childrenRegion() -> QRegion
QListWidget.clear()
QWidget.clearFocus()
QWidget.clearMask()
QListView.clearPropertyFlags()
QAbstractItemView.clearSelection()
QAbstractItemView.clicked[QModelIndex] [signal]
QWidget.close() -> bool
QAbstractItemView.closeEditor(QWidget, QAbstractItemDelegate.EndEditHint)
QWidget.closeEvent(QCloseEvent)
QListWidget.closePersistentEditor(QListWidgetItem)
QPaintDevice.colorCount() -> int
QAbstractItemView.commitData(QWidget)
QObject.connect(QObject, SIGNAL(), QObject, SLOT(), Qt.ConnectionType=Qt.AutoConnection) -> bool QObject.connect(QObject, SIGNAL(), callable, Qt.ConnectionType=Qt.AutoConnection) -> bool QObject.connect(QObject, SIGNAL(), SLOT(), Qt.ConnectionType=Qt.AutoConnection) -> bool
QObject.connectNotify(SIGNAL())
QWidget.contentsMargins() -> QMargins
QWidget.contentsRect() -> QRect
QWidget.contextMenuPolicy() -> Qt.ContextMenuPolicy
QAbstractScrollArea.cornerWidget() -> QWidget
QListWidget.count() -> int
QWidget.create(int window=0, bool initializeWindow=True, bool destroyOldWindow=True)
QListView.currentChanged(QModelIndex, QModelIndex)
QAbstractItemView.currentIndex() -> QModelIndex
QListWidget.currentItem() -> QListWidgetItem
QListWidget.currentItemChanged[QListWidgetItem, QListWidgetItem] [signal]
QListWidget.currentRow() -> int
QListWidget.currentRowChanged[int] [signal]
QListWidget.currentTextChanged[QString] [signal]
QWidget.cursor() -> QCursor
QWidget.customContextMenuRequested[QPoint] [signal]
QObject.customEvent(QEvent)
QListView.dataChanged(QModelIndex, QModelIndex)
QAbstractItemView.defaultDropAction() -> Qt.DropAction
QObject.deleteLater()
QPaintDevice.depth() -> int
QWidget.destroy(bool destroyWindow=True, bool destroySubWindows=True)
QObject.destroyed[QObject] [signal] QObject.destroyed[] [signal]
QWidget.devType() -> int
QAbstractItemView.dirtyRegionOffset() -> QPoint
QObject.disconnect(QObject, SIGNAL(), QObject, SLOT()) -> bool QObject.disconnect(QObject, SIGNAL(), callable) -> bool
QObject.disconnectNotify(SIGNAL())
QListView.doItemsLayout()
QAbstractItemView.doubleClicked[QModelIndex] [signal]
QAbstractItemView.dragDropMode() -> QAbstractItemView.DragDropMode
QAbstractItemView.dragDropOverwriteMode() -> bool
QAbstractItemView.dragEnabled() -> bool
QAbstractItemView.dragEnterEvent(QDragEnterEvent)
QListView.dragLeaveEvent(QDragLeaveEvent)
QListView.dragMoveEvent(QDragMoveEvent)
QFrame.drawFrame(QPainter)
QListWidget.dropEvent(QDropEvent)
QAbstractItemView.dropIndicatorPosition() -> QAbstractItemView.DropIndicatorPosition
QListWidget.dropMimeData(int, QMimeData, Qt.DropAction) -> bool
QObject.dumpObjectInfo()
QObject.dumpObjectTree()
QObject.dynamicPropertyNames() -> list-of-QByteArray
QAbstractItemView.edit(QModelIndex) QAbstractItemView.edit(QModelIndex, QAbstractItemView.EditTrigger, QEvent) -> bool
QListWidget.editItem(QListWidgetItem)
QAbstractItemView.editTriggers() -> QAbstractItemView.EditTriggers
QAbstractItemView.editorDestroyed(QObject)
QWidget.effectiveWinId() -> int
QObject.emit(SIGNAL(), ...)
QWidget.enabledChange(bool)
QWidget.ensurePolished()
QWidget.enterEvent(QEvent)
QAbstractItemView.entered[QModelIndex] [signal]
QListWidget.event(QEvent) -> bool
QObject.eventFilter(QObject, QEvent) -> bool
QAbstractItemView.executeDelayedItemsLayout()
QWidget.find(int) -> QWidget
QObject.findChild(type, QString name=QString()) -> QObject
QObject.findChildren(type, QString name=QString()) -> list-of-QObject QObject.findChildren(type, QRegExp) -> list-of-QObject
QListWidget.findItems(QString, Qt.MatchFlags) -> list-of-QListWidgetItem
QListView.flow() -> QListView.Flow
QAbstractItemView.focusInEvent(QFocusEvent)
QWidget.focusNextChild() -> bool
QAbstractItemView.focusNextPrevChild(bool) -> bool
QAbstractItemView.focusOutEvent(QFocusEvent)
QWidget.focusPolicy() -> Qt.FocusPolicy
QWidget.focusPreviousChild() -> bool
QWidget.focusProxy() -> QWidget
QWidget.focusWidget() -> QWidget
QWidget.font() -> QFont
QWidget.fontChange(QFont)
QWidget.fontInfo() -> QFontInfo
QWidget.fontMetrics() -> QFontMetrics
QWidget.foregroundRole() -> QPalette.ColorRole
QWidget.frameGeometry() -> QRect
QFrame.frameRect() -> QRect
QFrame.frameShadow() -> QFrame.Shadow
QFrame.frameShape() -> QFrame.Shape
QWidget.frameSize() -> QSize
QFrame.frameStyle() -> int
QFrame.frameWidth() -> int
QWidget.geometry() -> QRect
QWidget.getContentsMargins() -> (int, int, int, int)
QWidget.grabGesture(Qt.GestureType, Qt.GestureFlags flags=Qt.GestureFlags(0))
QWidget.grabKeyboard()
QWidget.grabMouse() QWidget.grabMouse(QCursor)
QWidget.grabShortcut(QKeySequence, Qt.ShortcutContext context=Qt.WindowShortcut) -> int
QWidget.graphicsEffect() -> QGraphicsEffect
QWidget.graphicsProxyWidget() -> QGraphicsProxyWidget
QListView.gridSize() -> QSize
QWidget.handle() -> int
QAbstractItemView.hasAutoScroll() -> bool
QWidget.hasFocus() -> bool
QWidget.hasMouseTracking() -> bool
QWidget.height() -> int
QWidget.heightForWidth(int) -> int
QPaintDevice.heightMM() -> int
QWidget.hide()
QWidget.hideEvent(QHideEvent)
QListView.horizontalOffset() -> int
QAbstractScrollArea.horizontalScrollBar() -> QScrollBar
QAbstractScrollArea.horizontalScrollBarPolicy() -> Qt.ScrollBarPolicy
QAbstractItemView.horizontalScrollMode() -> QAbstractItemView.ScrollMode
QAbstractItemView.horizontalScrollbarAction(int)
QAbstractItemView.horizontalScrollbarValueChanged(int)
QAbstractItemView.horizontalStepsPerItem() -> int
QAbstractItemView.iconSize() -> QSize
QListView.indexAt(QPoint) -> QModelIndex
QListWidget.indexFromItem(QListWidgetItem) -> QModelIndex
QAbstractItemView.indexWidget(QModelIndex) -> QWidget
QListView.indexesMoved[list-of-QModelIndex] [signal]
QObject.inherits(str) -> bool
QWidget.inputContext() -> QInputContext
QAbstractItemView.inputMethodEvent(QInputMethodEvent)
QWidget.inputMethodHints() -> Qt.InputMethodHints
QAbstractItemView.inputMethodQuery(Qt.InputMethodQuery) -> QVariant
QWidget.insertAction(QAction, QAction)
QWidget.insertActions(QAction, list-of-QAction)
QListWidget.insertItem(int, QListWidgetItem) QListWidget.insertItem(int, QString)
QListWidget.insertItems(int, QStringList)
QObject.installEventFilter(QObject)
QWidget.isActiveWindow() -> bool
QWidget.isAncestorOf(QWidget) -> bool
QWidget.isEnabled() -> bool
QWidget.isEnabledTo(QWidget) -> bool
QWidget.isEnabledToTLW() -> bool
QWidget.isFullScreen() -> bool
QWidget.isHidden() -> bool
QListView.isIndexHidden(QModelIndex) -> bool
QListWidget.isItemHidden(QListWidgetItem) -> bool
QListWidget.isItemSelected(QListWidgetItem) -> bool
QWidget.isLeftToRight() -> bool
QWidget.isMaximized() -> bool
QWidget.isMinimized() -> bool
QWidget.isModal() -> bool
QWidget.isRightToLeft() -> bool
QListView.isRowHidden(int) -> bool
QListView.isSelectionRectVisible() -> bool
QListWidget.isSortingEnabled() -> bool
QWidget.isTopLevel() -> bool
QWidget.isVisible() -> bool
QWidget.isVisibleTo(QWidget) -> bool
QObject.isWidgetType() -> bool
QWidget.isWindow() -> bool
QWidget.isWindowModified() -> bool
QListView.isWrapping() -> bool
QListWidget.item(int) -> QListWidgetItem
QListWidget.itemActivated[QListWidgetItem] [signal]
QListWidget.itemAt(QPoint) -> QListWidgetItem QListWidget.itemAt(int, int) -> QListWidgetItem
QListWidget.itemChanged[QListWidgetItem] [signal]
QListWidget.itemClicked[QListWidgetItem] [signal]
QAbstractItemView.itemDelegate() -> QAbstractItemDelegate QAbstractItemView.itemDelegate(QModelIndex) -> QAbstractItemDelegate
QAbstractItemView.itemDelegateForColumn(int) -> QAbstractItemDelegate
QAbstractItemView.itemDelegateForRow(int) -> QAbstractItemDelegate
QListWidget.itemDoubleClicked[QListWidgetItem] [signal]
QListWidget.itemEntered[QListWidgetItem] [signal]
QListWidget.itemFromIndex(QModelIndex) -> QListWidgetItem
QListWidget.itemPressed[QListWidgetItem] [signal]
QListWidget.itemSelectionChanged[] [signal]
QListWidget.itemWidget(QListWidgetItem) -> QWidget
QListWidget.items(QMimeData) -> list-of-QListWidgetItem
QAbstractItemView.keyPressEvent(QKeyEvent)
QWidget.keyReleaseEvent(QKeyEvent)
QWidget.keyboardGrabber() -> QWidget
QAbstractItemView.keyboardSearch(QString)
QObject.killTimer(int)
QWidget.languageChange()
QWidget.layout() -> QLayout
QWidget.layoutDirection() -> Qt.LayoutDirection
QListView.layoutMode() -> QListView.LayoutMode
QWidget.leaveEvent(QEvent)
QFrame.lineWidth() -> int
QWidget.locale() -> QLocale
QPaintDevice.logicalDpiX() -> int
QPaintDevice.logicalDpiY() -> int
QWidget.lower()
QWidget.mapFrom(QWidget, QPoint) -> QPoint
QWidget.mapFromGlobal(QPoint) -> QPoint
QWidget.mapFromParent(QPoint) -> QPoint
QWidget.mapTo(QWidget, QPoint) -> QPoint
QWidget.mapToGlobal(QPoint) -> QPoint
QWidget.mapToParent(QPoint) -> QPoint
QWidget.mask() -> QRegion
QWidget.maximumHeight() -> int
QWidget.maximumSize() -> QSize
QAbstractScrollArea.maximumViewportSize() -> QSize
QWidget.maximumWidth() -> int
QObject.metaObject() -> QMetaObject
QWidget.metric(QPaintDevice.PaintDeviceMetric) -> int
QFrame.midLineWidth() -> int
QListWidget.mimeData(list-of-QListWidgetItem) -> QMimeData
QListWidget.mimeTypes() -> QStringList
QWidget.minimumHeight() -> int
QWidget.minimumSize() -> QSize
QAbstractScrollArea.minimumSizeHint() -> QSize
QWidget.minimumWidth() -> int
QAbstractItemView.model() -> QAbstractItemModel
QListView.modelColumn() -> int
QAbstractItemView.mouseDoubleClickEvent(QMouseEvent)
QWidget.mouseGrabber() -> QWidget
QListView.mouseMoveEvent(QMouseEvent)
QAbstractItemView.mousePressEvent(QMouseEvent)
QListView.mouseReleaseEvent(QMouseEvent)
QWidget.move(QPoint) QWidget.move(int, int)
QListView.moveCursor(QAbstractItemView.CursorAction, Qt.KeyboardModifiers) -> QModelIndex
QWidget.moveEvent(QMoveEvent)
QObject.moveToThread(QThread)
QListView.movement() -> QListView.Movement
QWidget.nativeParentWidget() -> QWidget
QWidget.nextInFocusChain() -> QWidget
QWidget.normalGeometry() -> QRect
QPaintDevice.numColors() -> int
QObject.objectName() -> QString
QListWidget.openPersistentEditor(QListWidgetItem)
QWidget.overrideWindowFlags(Qt.WindowFlags)
QWidget.overrideWindowState(Qt.WindowStates)
QWidget.paintEngine() -> QPaintEngine
QListView.paintEvent(QPaintEvent)
QPaintDevice.paintingActive() -> bool
QWidget.palette() -> QPalette
QWidget.paletteChange(QPalette)
QObject.parent() -> QObject
QWidget.parentWidget() -> QWidget
QPaintDevice.physicalDpiX() -> int
QPaintDevice.physicalDpiY() -> int
QWidget.pos() -> QPoint
QAbstractItemView.pressed[QModelIndex] [signal]
QWidget.previousInFocusChain() -> QWidget
QObject.property(str) -> QVariant
QObject.pyqtConfigure(...)
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
QWidget.raise_()
QObject.receivers(SIGNAL()) -> int
QWidget.rect() -> QRect
QListView.rectForIndex(QModelIndex) -> QRect
QWidget.releaseKeyboard()
QWidget.releaseMouse()
QWidget.releaseShortcut(int)
QWidget.removeAction(QAction)
QObject.removeEventFilter(QObject)
QListWidget.removeItemWidget(QListWidgetItem)
QWidget.render(QPaintDevice, QPoint targetOffset=QPoint(), QRegion sourceRegion=QRegion(), QWidget.RenderFlags flags=QWidget.DrawWindowBackground|QWidget.DrawChildren) QWidget.render(QPainter, QPoint targetOffset=QPoint(), QRegion sourceRegion=QRegion(), QWidget.RenderFlags flags=QWidget.DrawWindowBackground|QWidget.DrawChildren)
QWidget.repaint() QWidget.repaint(int, int, int, int) QWidget.repaint(QRect) QWidget.repaint(QRegion)
QListView.reset()
QWidget.resetInputContext()
QWidget.resize(QSize) QWidget.resize(int, int)
QListView.resizeEvent(QResizeEvent)
QListView.resizeMode() -> QListView.ResizeMode
QWidget.restoreGeometry(QByteArray) -> bool
QAbstractItemView.rootIndex() -> QModelIndex
QListWidget.row(QListWidgetItem) -> int
QListView.rowsAboutToBeRemoved(QModelIndex, int, int)
QListView.rowsInserted(QModelIndex, int, int)
QWidget.saveGeometry() -> QByteArray
QAbstractItemView.scheduleDelayedItemsLayout()
QWidget.scroll(int, int) QWidget.scroll(int, int, QRect)
QAbstractScrollArea.scrollBarWidgets(Qt.Alignment) -> list-of-QWidget
QListView.scrollContentsBy(int, int)
QAbstractItemView.scrollDirtyRegion(int, int)
QListView.scrollTo(QModelIndex, QAbstractItemView.ScrollHint hint=QAbstractItemView.EnsureVisible)
QAbstractItemView.scrollToBottom()
QListWidget.scrollToItem(QListWidgetItem, QAbstractItemView.ScrollHint hint=QAbstractItemView.EnsureVisible)
QAbstractItemView.scrollToTop()
QAbstractItemView.selectAll()
QListView.selectedIndexes() -> list-of-QModelIndex
QListWidget.selectedItems() -> list-of-QListWidgetItem
QAbstractItemView.selectionBehavior() -> QAbstractItemView.SelectionBehavior
QListView.selectionChanged(QItemSelection, QItemSelection)
QAbstractItemView.selectionCommand(QModelIndex, QEvent event=None) -> QItemSelectionModel.SelectionFlags
QAbstractItemView.selectionMode() -> QAbstractItemView.SelectionMode
QAbstractItemView.selectionModel() -> QItemSelectionModel
QObject.sender() -> QObject
QWidget.setAcceptDrops(bool)
QWidget.setAccessibleDescription(QString)
QWidget.setAccessibleName(QString)
QAbstractItemView.setAlternatingRowColors(bool)
QWidget.setAttribute(Qt.WidgetAttribute, bool on=True)
QWidget.setAutoFillBackground(bool)
QAbstractItemView.setAutoScroll(bool)
QAbstractItemView.setAutoScrollMargin(int)
QWidget.setBackgroundRole(QPalette.ColorRole)
QWidget.setBaseSize(int, int) QWidget.setBaseSize(QSize)
QListView.setBatchSize(int)
QWidget.setContentsMargins(int, int, int, int) QWidget.setContentsMargins(QMargins)
QWidget.setContextMenuPolicy(Qt.ContextMenuPolicy)
QAbstractScrollArea.setCornerWidget(QWidget)
QAbstractItemView.setCurrentIndex(QModelIndex)
QListWidget.setCurrentItem(QListWidgetItem) QListWidget.setCurrentItem(QListWidgetItem, QItemSelectionModel.SelectionFlags)
QListWidget.setCurrentRow(int) QListWidget.setCurrentRow(int, QItemSelectionModel.SelectionFlags)
QWidget.setCursor(QCursor)
QAbstractItemView.setDefaultDropAction(Qt.DropAction)
QAbstractItemView.setDirtyRegion(QRegion)
QWidget.setDisabled(bool)
QAbstractItemView.setDragDropMode(QAbstractItemView.DragDropMode)
QAbstractItemView.setDragDropOverwriteMode(bool)
QAbstractItemView.setDragEnabled(bool)
QAbstractItemView.setDropIndicatorShown(bool)
QAbstractItemView.setEditTriggers(QAbstractItemView.EditTriggers)
QWidget.setEnabled(bool)
QWidget.setFixedHeight(int)
QWidget.setFixedSize(QSize) QWidget.setFixedSize(int, int)
QWidget.setFixedWidth(int)
QListView.setFlow(QListView.Flow)
QWidget.setFocus() QWidget.setFocus(Qt.FocusReason)
QWidget.setFocusPolicy(Qt.FocusPolicy)
QWidget.setFocusProxy(QWidget)
QWidget.setFont(QFont)
QWidget.setForegroundRole(QPalette.ColorRole)
QFrame.setFrameRect(QRect)
QFrame.setFrameShadow(QFrame.Shadow)
QFrame.setFrameShape(QFrame.Shape)
QFrame.setFrameStyle(int)
QWidget.setGeometry(QRect) QWidget.setGeometry(int, int, int, int)
QWidget.setGraphicsEffect(QGraphicsEffect)
QListView.setGridSize(QSize)
QWidget.setHidden(bool)
QAbstractScrollArea.setHorizontalScrollBar(QScrollBar)
QAbstractScrollArea.setHorizontalScrollBarPolicy(Qt.ScrollBarPolicy)
QAbstractItemView.setHorizontalScrollMode(QAbstractItemView.ScrollMode)
QAbstractItemView.setHorizontalStepsPerItem(int)
QAbstractItemView.setIconSize(QSize)
QAbstractItemView.setIndexWidget(QModelIndex, QWidget)
QWidget.setInputContext(QInputContext)
QWidget.setInputMethodHints(Qt.InputMethodHints)
QAbstractItemView.setItemDelegate(QAbstractItemDelegate)
QAbstractItemView.setItemDelegateForColumn(int, QAbstractItemDelegate)
QAbstractItemView.setItemDelegateForRow(int, QAbstractItemDelegate)
QListWidget.setItemHidden(QListWidgetItem, bool)
QListWidget.setItemSelected(QListWidgetItem, bool)
QListWidget.setItemWidget(QListWidgetItem, QWidget)
QWidget.setLayout(QLayout)
QWidget.setLayoutDirection(Qt.LayoutDirection)
QListView.setLayoutMode(QListView.LayoutMode)
QFrame.setLineWidth(int)
QWidget.setLocale(QLocale)
QWidget.setMask(QBitmap) QWidget.setMask(QRegion)
QWidget.setMaximumHeight(int)
QWidget.setMaximumSize(int, int) QWidget.setMaximumSize(QSize)
QWidget.setMaximumWidth(int)
QFrame.setMidLineWidth(int)
QWidget.setMinimumHeight(int)
QWidget.setMinimumSize(int, int) QWidget.setMinimumSize(QSize)
QWidget.setMinimumWidth(int)
QListView.setModelColumn(int)
QWidget.setMouseTracking(bool)
QListView.setMovement(QListView.Movement)
QObject.setObjectName(QString)
QWidget.setPalette(QPalette)
QWidget.setParent(QWidget) QWidget.setParent(QWidget, Qt.WindowFlags)
QListView.setPositionForIndex(QPoint, QModelIndex)
QObject.setProperty(str, QVariant) -> bool
QListView.setResizeMode(QListView.ResizeMode)
QListView.setRootIndex(QModelIndex)
QListView.setRowHidden(int, bool)
QListView.setSelection(QRect, QItemSelectionModel.SelectionFlags)
QAbstractItemView.setSelectionBehavior(QAbstractItemView.SelectionBehavior)
QAbstractItemView.setSelectionMode(QAbstractItemView.SelectionMode)
QAbstractItemView.setSelectionModel(QItemSelectionModel)
QListView.setSelectionRectVisible(bool)
QWidget.setShortcutAutoRepeat(int, bool enabled=True)
QWidget.setShortcutEnabled(int, bool enabled=True)
QWidget.setShown(bool)
QWidget.setSizeIncrement(int, int) QWidget.setSizeIncrement(QSize)
QWidget.setSizePolicy(QSizePolicy) QWidget.setSizePolicy(QSizePolicy.Policy, QSizePolicy.Policy)
QListWidget.setSortingEnabled(bool)
QListView.setSpacing(int)
QAbstractItemView.setState(QAbstractItemView.State)
QWidget.setStatusTip(QString)
QWidget.setStyle(QStyle)
QWidget.setStyleSheet(QString)
QAbstractItemView.setTabKeyNavigation(bool)
QWidget.setTabOrder(QWidget, QWidget)
QAbstractItemView.setTextElideMode(Qt.TextElideMode)
QWidget.setToolTip(QString)
QListView.setUniformItemSizes(bool)
QWidget.setUpdatesEnabled(bool)
QAbstractScrollArea.setVerticalScrollBar(QScrollBar)
QAbstractScrollArea.setVerticalScrollBarPolicy(Qt.ScrollBarPolicy)
QAbstractItemView.setVerticalScrollMode(QAbstractItemView.ScrollMode)
QAbstractItemView.setVerticalStepsPerItem(int)
QListView.setViewMode(QListView.ViewMode)
QAbstractScrollArea.setViewport(QWidget)
QAbstractScrollArea.setViewportMargins(int, int, int, int) QAbstractScrollArea.setViewportMargins(QMargins)
QWidget.setVisible(bool)
QWidget.setWhatsThis(QString)
QWidget.setWindowFilePath(QString)
QWidget.setWindowFlags(Qt.WindowFlags)
QWidget.setWindowIcon(QIcon)
QWidget.setWindowIconText(QString)
QWidget.setWindowModality(Qt.WindowModality)
QWidget.setWindowModified(bool)
QWidget.setWindowOpacity(float)
QWidget.setWindowRole(QString)
QWidget.setWindowState(Qt.WindowStates)
QWidget.setWindowTitle(QString)
QListView.setWordWrap(bool)
QListView.setWrapping(bool)
Create context menu
QAbstractScrollArea.setupViewport(QWidget)
QWidget.show()
QAbstractItemView.showDropIndicator() -> bool
QWidget.showEvent(QShowEvent)
QWidget.showFullScreen()
QWidget.showMaximized()
QWidget.showMinimized()
QWidget.showNormal()
QObject.signalsBlocked() -> bool
QWidget.size() -> QSize
QAbstractScrollArea.sizeHint() -> QSize
QAbstractItemView.sizeHintForColumn(int) -> int
QAbstractItemView.sizeHintForIndex(QModelIndex) -> QSize
QAbstractItemView.sizeHintForRow(int) -> int
QWidget.sizeIncrement() -> QSize
QWidget.sizePolicy() -> QSizePolicy
QListWidget.sortItems(Qt.SortOrder order=Qt.AscendingOrder)
QListView.spacing() -> int
QWidget.stackUnder(QWidget)
QListView.startDrag(Qt.DropActions)
QObject.startTimer(int) -> int
QAbstractItemView.state() -> QAbstractItemView.State
QWidget.statusTip() -> QString
QWidget.style() -> QStyle
QWidget.styleSheet() -> QString
QListWidget.supportedDropActions() -> Qt.DropActions
QAbstractItemView.tabKeyNavigation() -> bool
QWidget.tabletEvent(QTabletEvent)
QListWidget.takeItem(int) -> QListWidgetItem
QWidget.testAttribute(Qt.WidgetAttribute) -> bool
QAbstractItemView.textElideMode() -> Qt.TextElideMode
QObject.thread() -> QThread
QListView.timerEvent(QTimerEvent)
QWidget.toolTip() -> QString
QWidget.topLevelWidget() -> QWidget
QObject.tr(str, str disambiguation=None, int n=-1) -> QString
QObject.trUtf8(str, str disambiguation=None, int n=-1) -> QString
QWidget.underMouse() -> bool
QWidget.ungrabGesture(Qt.GestureType)
QListView.uniformItemSizes() -> bool
QWidget.unsetCursor()
QWidget.unsetLayoutDirection()
QWidget.unsetLocale()
QAbstractItemView.update() QAbstractItemView.update(QModelIndex)
QAbstractItemView.updateEditorData()
QAbstractItemView.updateEditorGeometries()
QListView.updateGeometries()
QWidget.updateGeometry()
QWidget.updateMicroFocus()
QWidget.updatesEnabled() -> bool
QListView.verticalOffset() -> int
QAbstractScrollArea.verticalScrollBar() -> QScrollBar
QAbstractScrollArea.verticalScrollBarPolicy() -> Qt.ScrollBarPolicy
QAbstractItemView.verticalScrollMode() -> QAbstractItemView.ScrollMode
QAbstractItemView.verticalScrollbarAction(int)
QAbstractItemView.verticalScrollbarValueChanged(int)
QAbstractItemView.verticalStepsPerItem() -> int
QListView.viewMode() -> QListView.ViewMode
QListView.viewOptions() -> QStyleOptionViewItem
QAbstractScrollArea.viewport() -> QWidget
QAbstractItemView.viewportEntered[] [signal]
QAbstractItemView.viewportEvent(QEvent) -> bool
QWidget.visibleRegion() -> QRegion
QListWidget.visualItemRect(QListWidgetItem) -> QRect
QListView.visualRect(QModelIndex) -> QRect
QListView.visualRegionForSelection(QItemSelection) -> QRegion
QWidget.whatsThis() -> QString
QAbstractScrollArea.wheelEvent(QWheelEvent)
QWidget.width() -> int
QPaintDevice.widthMM() -> int
QWidget.winId() -> int
QWidget.window() -> QWidget
QWidget.windowActivationChange(bool)
QWidget.windowFilePath() -> QString
QWidget.windowFlags() -> Qt.WindowFlags
QWidget.windowIcon() -> QIcon
QWidget.windowIconText() -> QString
QWidget.windowModality() -> Qt.WindowModality
QWidget.windowOpacity() -> float
QWidget.windowRole() -> QString
QWidget.windowState() -> Qt.WindowStates
QWidget.windowTitle() -> QString
QWidget.windowType() -> Qt.WindowType
QListView.wordWrap() -> bool
QWidget.x() -> int
QWidget.x11Info() -> QX11Info
QWidget.x11PictureHandle() -> int
QWidget.y() -> int
Rotated QLabel (rich text is not supported)
QWidget.RenderFlags(QWidget.RenderFlags) QWidget.RenderFlags(int) QWidget.RenderFlags()
QWidget.acceptDrops() -> bool
QWidget.accessibleDescription() -> QString
QWidget.accessibleName() -> QString
QWidget.actionEvent(QActionEvent)
QWidget.actions() -> list-of-QAction
QWidget.activateWindow()
QWidget.addAction(QAction)
QWidget.addActions(list-of-QAction)
QWidget.adjustSize()
QLabel.alignment() -> Qt.Alignment
QWidget.autoFillBackground() -> bool
QWidget.backgroundRole() -> QPalette.ColorRole
QWidget.baseSize() -> QSize
QObject.blockSignals(bool) -> bool
QLabel.buddy() -> QWidget
QLabel.changeEvent(QEvent)
QWidget.childAt(QPoint) -> QWidget QWidget.childAt(int, int) -> QWidget
QObject.childEvent(QChildEvent)
QObject.children() -> list-of-QObject
QWidget.childrenRect() -> QRect
QWidget.childrenRegion() -> QRegion
QLabel.clear()
QWidget.clearFocus()
QWidget.clearMask()
QWidget.close() -> bool
QWidget.closeEvent(QCloseEvent)
QPaintDevice.colorCount() -> int
QObject.connect(QObject, SIGNAL(), QObject, SLOT(), Qt.ConnectionType=Qt.AutoConnection) -> bool QObject.connect(QObject, SIGNAL(), callable, Qt.ConnectionType=Qt.AutoConnection) -> bool QObject.connect(QObject, SIGNAL(), SLOT(), Qt.ConnectionType=Qt.AutoConnection) -> bool
QObject.connectNotify(SIGNAL())
QWidget.contentsMargins() -> QMargins
QWidget.contentsRect() -> QRect
QLabel.contextMenuEvent(QContextMenuEvent)
QWidget.contextMenuPolicy() -> Qt.ContextMenuPolicy
QWidget.create(int window=0, bool initializeWindow=True, bool destroyOldWindow=True)
QWidget.cursor() -> QCursor
QWidget.customContextMenuRequested[QPoint] [signal]
QObject.customEvent(QEvent)
QObject.deleteLater()
QPaintDevice.depth() -> int
QWidget.destroy(bool destroyWindow=True, bool destroySubWindows=True)
QObject.destroyed[QObject] [signal] QObject.destroyed[] [signal]
QWidget.devType() -> int
QObject.disconnect(QObject, SIGNAL(), QObject, SLOT()) -> bool QObject.disconnect(QObject, SIGNAL(), callable) -> bool
QObject.disconnectNotify(SIGNAL())
QWidget.dragEnterEvent(QDragEnterEvent)
QWidget.dragLeaveEvent(QDragLeaveEvent)
QWidget.dragMoveEvent(QDragMoveEvent)
QFrame.drawFrame(QPainter)
QWidget.dropEvent(QDropEvent)
QObject.dumpObjectInfo()
QObject.dumpObjectTree()
QObject.dynamicPropertyNames() -> list-of-QByteArray
QWidget.effectiveWinId() -> int
QObject.emit(SIGNAL(), ...)
QWidget.enabledChange(bool)
QWidget.ensurePolished()
QWidget.enterEvent(QEvent)
QLabel.event(QEvent) -> bool
QObject.eventFilter(QObject, QEvent) -> bool
QWidget.find(int) -> QWidget
QObject.findChild(type, QString name=QString()) -> QObject
QObject.findChildren(type, QString name=QString()) -> list-of-QObject QObject.findChildren(type, QRegExp) -> list-of-QObject
QLabel.focusInEvent(QFocusEvent)
QWidget.focusNextChild() -> bool
QLabel.focusNextPrevChild(bool) -> bool
QLabel.focusOutEvent(QFocusEvent)
QWidget.focusPolicy() -> Qt.FocusPolicy
QWidget.focusPreviousChild() -> bool
QWidget.focusProxy() -> QWidget
QWidget.focusWidget() -> QWidget
QWidget.font() -> QFont
QWidget.fontChange(QFont)
QWidget.fontInfo() -> QFontInfo
QWidget.fontMetrics() -> QFontMetrics
QWidget.foregroundRole() -> QPalette.ColorRole
QWidget.frameGeometry() -> QRect
QFrame.frameRect() -> QRect
QFrame.frameShadow() -> QFrame.Shadow
QFrame.frameShape() -> QFrame.Shape
QWidget.frameSize() -> QSize
QFrame.frameStyle() -> int
QFrame.frameWidth() -> int
QWidget.geometry() -> QRect
QWidget.getContentsMargins() -> (int, int, int, int)
QWidget.grabGesture(Qt.GestureType, Qt.GestureFlags flags=Qt.GestureFlags(0))
QWidget.grabKeyboard()
QWidget.grabMouse() QWidget.grabMouse(QCursor)
QWidget.grabShortcut(QKeySequence, Qt.ShortcutContext context=Qt.WindowShortcut) -> int
QWidget.graphicsEffect() -> QGraphicsEffect
QWidget.graphicsProxyWidget() -> QGraphicsProxyWidget
QWidget.handle() -> int
QWidget.hasFocus() -> bool
QWidget.hasMouseTracking() -> bool
QLabel.hasScaledContents() -> bool
QLabel.hasSelectedText() -> bool
QWidget.height() -> int
QLabel.heightForWidth(int) -> int
QPaintDevice.heightMM() -> int
QWidget.hide()
QWidget.hideEvent(QHideEvent)
QLabel.indent() -> int
QObject.inherits(str) -> bool
QWidget.inputContext() -> QInputContext
QWidget.inputMethodEvent(QInputMethodEvent)
QWidget.inputMethodHints() -> Qt.InputMethodHints
QWidget.inputMethodQuery(Qt.InputMethodQuery) -> QVariant
QWidget.insertAction(QAction, QAction)
QWidget.insertActions(QAction, list-of-QAction)
QObject.installEventFilter(QObject)
QWidget.isActiveWindow() -> bool
QWidget.isAncestorOf(QWidget) -> bool
QWidget.isEnabled() -> bool
QWidget.isEnabledTo(QWidget) -> bool
QWidget.isEnabledToTLW() -> bool
QWidget.isFullScreen() -> bool
QWidget.isHidden() -> bool
QWidget.isLeftToRight() -> bool
QWidget.isMaximized() -> bool
QWidget.isMinimized() -> bool
QWidget.isModal() -> bool
QWidget.isRightToLeft() -> bool
QWidget.isTopLevel() -> bool
QWidget.isVisible() -> bool
QWidget.isVisibleTo(QWidget) -> bool
QObject.isWidgetType() -> bool
QWidget.isWindow() -> bool
QWidget.isWindowModified() -> bool
QLabel.keyPressEvent(QKeyEvent)
QWidget.keyReleaseEvent(QKeyEvent)
QWidget.keyboardGrabber() -> QWidget
QObject.killTimer(int)
QWidget.languageChange()
QWidget.layout() -> QLayout
QWidget.layoutDirection() -> Qt.LayoutDirection
QWidget.leaveEvent(QEvent)
QFrame.lineWidth() -> int
QLabel.linkActivated[QString] [signal]
QLabel.linkHovered[QString] [signal]
QWidget.locale() -> QLocale
QPaintDevice.logicalDpiX() -> int
QPaintDevice.logicalDpiY() -> int
QWidget.lower()
QWidget.mapFrom(QWidget, QPoint) -> QPoint
QWidget.mapFromGlobal(QPoint) -> QPoint
QWidget.mapFromParent(QPoint) -> QPoint
QWidget.mapTo(QWidget, QPoint) -> QPoint
QWidget.mapToGlobal(QPoint) -> QPoint
QWidget.mapToParent(QPoint) -> QPoint
QLabel.margin() -> int
QWidget.mask() -> QRegion
QWidget.maximumHeight() -> int
QWidget.maximumSize() -> QSize
QWidget.maximumWidth() -> int
QObject.metaObject() -> QMetaObject
QWidget.metric(QPaintDevice.PaintDeviceMetric) -> int
QFrame.midLineWidth() -> int
QWidget.minimumHeight() -> int
QWidget.minimumSize() -> QSize
QWidget.minimumWidth() -> int
QWidget.mouseDoubleClickEvent(QMouseEvent)
QWidget.mouseGrabber() -> QWidget
QLabel.mouseMoveEvent(QMouseEvent)
QLabel.mousePressEvent(QMouseEvent)
QLabel.mouseReleaseEvent(QMouseEvent)
QWidget.move(QPoint) QWidget.move(int, int)
QWidget.moveEvent(QMoveEvent)
QObject.moveToThread(QThread)
QLabel.movie() -> QMovie
QWidget.nativeParentWidget() -> QWidget
QWidget.nextInFocusChain() -> QWidget
QWidget.normalGeometry() -> QRect
QPaintDevice.numColors() -> int
QObject.objectName() -> QString
QLabel.openExternalLinks() -> bool
QWidget.overrideWindowFlags(Qt.WindowFlags)
QWidget.overrideWindowState(Qt.WindowStates)
QWidget.paintEngine() -> QPaintEngine
QPaintDevice.paintingActive() -> bool
QWidget.palette() -> QPalette
QWidget.paletteChange(QPalette)
QObject.parent() -> QObject
QWidget.parentWidget() -> QWidget
QPaintDevice.physicalDpiX() -> int
QPaintDevice.physicalDpiY() -> int
QLabel.picture() -> QPicture
QLabel.pixmap() -> QPixmap
QWidget.pos() -> QPoint
QWidget.previousInFocusChain() -> QWidget
QObject.property(str) -> QVariant
QObject.pyqtConfigure(...)
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
QWidget.raise_()
QObject.receivers(SIGNAL()) -> int
QWidget.rect() -> QRect
QWidget.releaseKeyboard()
QWidget.releaseMouse()
QWidget.releaseShortcut(int)
QWidget.removeAction(QAction)
QObject.removeEventFilter(QObject)
QWidget.render(QPaintDevice, QPoint targetOffset=QPoint(), QRegion sourceRegion=QRegion(), QWidget.RenderFlags flags=QWidget.DrawWindowBackground|QWidget.DrawChildren) QWidget.render(QPainter, QPoint targetOffset=QPoint(), QRegion sourceRegion=QRegion(), QWidget.RenderFlags flags=QWidget.DrawWindowBackground|QWidget.DrawChildren)
QWidget.repaint() QWidget.repaint(int, int, int, int) QWidget.repaint(QRect) QWidget.repaint(QRegion)
QWidget.resetInputContext()
QWidget.resize(QSize) QWidget.resize(int, int)
QWidget.resizeEvent(QResizeEvent)
QWidget.restoreGeometry(QByteArray) -> bool
QWidget.saveGeometry() -> QByteArray
QWidget.scroll(int, int) QWidget.scroll(int, int, QRect)
QLabel.selectedText() -> QString
QLabel.selectionStart() -> int
QObject.sender() -> QObject
QWidget.setAcceptDrops(bool)
QWidget.setAccessibleDescription(QString)
QWidget.setAccessibleName(QString)
QLabel.setAlignment(Qt.Alignment)
QWidget.setAttribute(Qt.WidgetAttribute, bool on=True)
QWidget.setAutoFillBackground(bool)
QWidget.setBackgroundRole(QPalette.ColorRole)
QWidget.setBaseSize(int, int) QWidget.setBaseSize(QSize)
QLabel.setBuddy(QWidget)
QWidget.setContentsMargins(int, int, int, int) QWidget.setContentsMargins(QMargins)
QWidget.setContextMenuPolicy(Qt.ContextMenuPolicy)
QWidget.setCursor(QCursor)
QWidget.setDisabled(bool)
QWidget.setEnabled(bool)
QWidget.setFixedHeight(int)
QWidget.setFixedSize(QSize) QWidget.setFixedSize(int, int)
QWidget.setFixedWidth(int)
QWidget.setFocus() QWidget.setFocus(Qt.FocusReason)
QWidget.setFocusPolicy(Qt.FocusPolicy)
QWidget.setFocusProxy(QWidget)
QWidget.setFont(QFont)
QWidget.setForegroundRole(QPalette.ColorRole)
QFrame.setFrameRect(QRect)
QFrame.setFrameShadow(QFrame.Shadow)
QFrame.setFrameShape(QFrame.Shape)
QFrame.setFrameStyle(int)
QWidget.setGeometry(QRect) QWidget.setGeometry(int, int, int, int)
QWidget.setGraphicsEffect(QGraphicsEffect)
QWidget.setHidden(bool)
QLabel.setIndent(int)
QWidget.setInputContext(QInputContext)
QWidget.setInputMethodHints(Qt.InputMethodHints)
QWidget.setLayout(QLayout)
QWidget.setLayoutDirection(Qt.LayoutDirection)
QFrame.setLineWidth(int)
QWidget.setLocale(QLocale)
QLabel.setMargin(int)
QWidget.setMask(QBitmap) QWidget.setMask(QRegion)
QWidget.setMaximumHeight(int)
QWidget.setMaximumSize(int, int) QWidget.setMaximumSize(QSize)
QWidget.setMaximumWidth(int)
QFrame.setMidLineWidth(int)
QWidget.setMinimumHeight(int)
QWidget.setMinimumSize(int, int) QWidget.setMinimumSize(QSize)
QWidget.setMinimumWidth(int)
QWidget.setMouseTracking(bool)
QLabel.setMovie(QMovie)
QLabel.setNum(float) QLabel.setNum(int)
QObject.setObjectName(QString)
QLabel.setOpenExternalLinks(bool)
QWidget.setPalette(QPalette)
QWidget.setParent(QWidget) QWidget.setParent(QWidget, Qt.WindowFlags)
QLabel.setPicture(QPicture)
QLabel.setPixmap(QPixmap)
QObject.setProperty(str, QVariant) -> bool
QLabel.setScaledContents(bool)
QLabel.setSelection(int, int)
QWidget.setShortcutAutoRepeat(int, bool enabled=True)
QWidget.setShortcutEnabled(int, bool enabled=True)
QWidget.setShown(bool)
QWidget.setSizeIncrement(int, int) QWidget.setSizeIncrement(QSize)
QWidget.setSizePolicy(QSizePolicy) QWidget.setSizePolicy(QSizePolicy.Policy, QSizePolicy.Policy)
QWidget.setStatusTip(QString)
QWidget.setStyle(QStyle)
QWidget.setStyleSheet(QString)
QWidget.setTabOrder(QWidget, QWidget)
QLabel.setText(QString)
QLabel.setTextFormat(Qt.TextFormat)
QLabel.setTextInteractionFlags(Qt.TextInteractionFlags)
QWidget.setToolTip(QString)
QWidget.setUpdatesEnabled(bool)
QWidget.setVisible(bool)
QWidget.setWhatsThis(QString)
QWidget.setWindowFilePath(QString)
QWidget.setWindowFlags(Qt.WindowFlags)
QWidget.setWindowIcon(QIcon)
QWidget.setWindowIconText(QString)
QWidget.setWindowModality(Qt.WindowModality)
QWidget.setWindowModified(bool)
QWidget.setWindowOpacity(float)
QWidget.setWindowRole(QString)
QWidget.setWindowState(Qt.WindowStates)
QWidget.setWindowTitle(QString)
QLabel.setWordWrap(bool)
QWidget.show()
QWidget.showEvent(QShowEvent)
QWidget.showFullScreen()
QWidget.showMaximized()
QWidget.showMinimized()
QWidget.showNormal()
QObject.signalsBlocked() -> bool
QWidget.size() -> QSize
QWidget.sizeIncrement() -> QSize
QWidget.sizePolicy() -> QSizePolicy
QWidget.stackUnder(QWidget)
QObject.startTimer(int) -> int
QWidget.statusTip() -> QString
QWidget.style() -> QStyle
QWidget.styleSheet() -> QString
QWidget.tabletEvent(QTabletEvent)
QWidget.testAttribute(Qt.WidgetAttribute) -> bool
QLabel.text() -> QString
QLabel.textFormat() -> Qt.TextFormat
QLabel.textInteractionFlags() -> Qt.TextInteractionFlags
QObject.thread() -> QThread
QObject.timerEvent(QTimerEvent)
QWidget.toolTip() -> QString
QWidget.topLevelWidget() -> QWidget
QObject.tr(str, str disambiguation=None, int n=-1) -> QString
QObject.trUtf8(str, str disambiguation=None, int n=-1) -> QString
QWidget.underMouse() -> bool
QWidget.ungrabGesture(Qt.GestureType)
QWidget.unsetCursor()
QWidget.unsetLayoutDirection()
QWidget.unsetLocale()
QWidget.update() QWidget.update(QRect) QWidget.update(QRegion) QWidget.update(int, int, int, int)
QWidget.updateGeometry()
QWidget.updateMicroFocus()
QWidget.updatesEnabled() -> bool
QWidget.visibleRegion() -> QRegion
QWidget.whatsThis() -> QString
QWidget.wheelEvent(QWheelEvent)
QWidget.width() -> int
QPaintDevice.widthMM() -> int
QWidget.winId() -> int
QWidget.window() -> QWidget
QWidget.windowActivationChange(bool)
QWidget.windowFilePath() -> QString
QWidget.windowFlags() -> Qt.WindowFlags
QWidget.windowIcon() -> QIcon
QWidget.windowIconText() -> QString
QWidget.windowModality() -> Qt.WindowModality
QWidget.windowOpacity() -> float
QWidget.windowRole() -> QString
QWidget.windowState() -> Qt.WindowStates
QWidget.windowTitle() -> QString
QWidget.windowType() -> Qt.WindowType
QLabel.wordWrap() -> bool
QWidget.x() -> int
QWidget.x11Info() -> QX11Info
QWidget.x11PictureHandle() -> int
QWidget.y() -> int
Dialog showing standard icons
QWidget.RenderFlags(QWidget.RenderFlags) QWidget.RenderFlags(int) QWidget.RenderFlags()
QWidget.acceptDrops() -> bool
QWidget.accessibleDescription() -> QString
QWidget.accessibleName() -> QString
QWidget.actionEvent(QActionEvent)
QWidget.actions() -> list-of-QAction
QWidget.activateWindow()
QWidget.addAction(QAction)
QWidget.addActions(list-of-QAction)
QWidget.adjustSize()
QWidget.autoFillBackground() -> bool
QWidget.backgroundRole() -> QPalette.ColorRole
QWidget.baseSize() -> QSize
QObject.blockSignals(bool) -> bool
QWidget.changeEvent(QEvent)
QWidget.childAt(QPoint) -> QWidget QWidget.childAt(int, int) -> QWidget
QObject.childEvent(QChildEvent)
QObject.children() -> list-of-QObject
QWidget.childrenRect() -> QRect
QWidget.childrenRegion() -> QRegion
QWidget.clearFocus()
QWidget.clearMask()
QWidget.close() -> bool
QWidget.closeEvent(QCloseEvent)
QPaintDevice.colorCount() -> int
QObject.connect(QObject, SIGNAL(), QObject, SLOT(), Qt.ConnectionType=Qt.AutoConnection) -> bool QObject.connect(QObject, SIGNAL(), callable, Qt.ConnectionType=Qt.AutoConnection) -> bool QObject.connect(QObject, SIGNAL(), SLOT(), Qt.ConnectionType=Qt.AutoConnection) -> bool
QObject.connectNotify(SIGNAL())
QWidget.contentsMargins() -> QMargins
QWidget.contentsRect() -> QRect
QWidget.contextMenuEvent(QContextMenuEvent)
QWidget.contextMenuPolicy() -> Qt.ContextMenuPolicy
QWidget.create(int window=0, bool initializeWindow=True, bool destroyOldWindow=True)
QWidget.cursor() -> QCursor
QWidget.customContextMenuRequested[QPoint] [signal]
QObject.customEvent(QEvent)
QObject.deleteLater()
QPaintDevice.depth() -> int
QWidget.destroy(bool destroyWindow=True, bool destroySubWindows=True)
QObject.destroyed[QObject] [signal] QObject.destroyed[] [signal]
QWidget.devType() -> int
QObject.disconnect(QObject, SIGNAL(), QObject, SLOT()) -> bool QObject.disconnect(QObject, SIGNAL(), callable) -> bool
QObject.disconnectNotify(SIGNAL())
QWidget.dragEnterEvent(QDragEnterEvent)
QWidget.dragLeaveEvent(QDragLeaveEvent)
QWidget.dragMoveEvent(QDragMoveEvent)
QWidget.dropEvent(QDropEvent)
QObject.dumpObjectInfo()
QObject.dumpObjectTree()
QObject.dynamicPropertyNames() -> list-of-QByteArray
QWidget.effectiveWinId() -> int
QObject.emit(SIGNAL(), ...)
QWidget.enabledChange(bool)
QWidget.ensurePolished()
QWidget.enterEvent(QEvent)
QWidget.event(QEvent) -> bool
QObject.eventFilter(QObject, QEvent) -> bool
QWidget.find(int) -> QWidget
QObject.findChild(type, QString name=QString()) -> QObject
QObject.findChildren(type, QString name=QString()) -> list-of-QObject QObject.findChildren(type, QRegExp) -> list-of-QObject
QWidget.focusInEvent(QFocusEvent)
QWidget.focusNextChild() -> bool
QWidget.focusNextPrevChild(bool) -> bool
QWidget.focusOutEvent(QFocusEvent)
QWidget.focusPolicy() -> Qt.FocusPolicy
QWidget.focusPreviousChild() -> bool
QWidget.focusProxy() -> QWidget
QWidget.focusWidget() -> QWidget
QWidget.font() -> QFont
QWidget.fontChange(QFont)
QWidget.fontInfo() -> QFontInfo
QWidget.fontMetrics() -> QFontMetrics
QWidget.foregroundRole() -> QPalette.ColorRole
QWidget.frameGeometry() -> QRect
QWidget.frameSize() -> QSize
QWidget.geometry() -> QRect
QWidget.getContentsMargins() -> (int, int, int, int)
QWidget.grabGesture(Qt.GestureType, Qt.GestureFlags flags=Qt.GestureFlags(0))
QWidget.grabKeyboard()
QWidget.grabMouse() QWidget.grabMouse(QCursor)
QWidget.grabShortcut(QKeySequence, Qt.ShortcutContext context=Qt.WindowShortcut) -> int
QWidget.graphicsEffect() -> QGraphicsEffect
QWidget.graphicsProxyWidget() -> QGraphicsProxyWidget
QWidget.handle() -> int
QWidget.hasFocus() -> bool
QWidget.hasMouseTracking() -> bool
QWidget.height() -> int
QWidget.heightForWidth(int) -> int
QPaintDevice.heightMM() -> int
QWidget.hide()
QWidget.hideEvent(QHideEvent)
QObject.inherits(str) -> bool
QWidget.inputContext() -> QInputContext
QWidget.inputMethodEvent(QInputMethodEvent)
QWidget.inputMethodHints() -> Qt.InputMethodHints
QWidget.inputMethodQuery(Qt.InputMethodQuery) -> QVariant
QWidget.insertAction(QAction, QAction)
QWidget.insertActions(QAction, list-of-QAction)
QObject.installEventFilter(QObject)
QWidget.isActiveWindow() -> bool
QWidget.isAncestorOf(QWidget) -> bool
QWidget.isEnabled() -> bool
QWidget.isEnabledTo(QWidget) -> bool
QWidget.isEnabledToTLW() -> bool
QWidget.isFullScreen() -> bool
QWidget.isHidden() -> bool
QWidget.isLeftToRight() -> bool
QWidget.isMaximized() -> bool
QWidget.isMinimized() -> bool
QWidget.isModal() -> bool
QWidget.isRightToLeft() -> bool
QWidget.isTopLevel() -> bool
QWidget.isVisible() -> bool
QWidget.isVisibleTo(QWidget) -> bool
QObject.isWidgetType() -> bool
QWidget.isWindow() -> bool
QWidget.isWindowModified() -> bool
QWidget.keyPressEvent(QKeyEvent)
QWidget.keyReleaseEvent(QKeyEvent)
QWidget.keyboardGrabber() -> QWidget
QObject.killTimer(int)
QWidget.languageChange()
QWidget.layout() -> QLayout
QWidget.layoutDirection() -> Qt.LayoutDirection
QWidget.leaveEvent(QEvent)
QWidget.locale() -> QLocale
QPaintDevice.logicalDpiX() -> int
QPaintDevice.logicalDpiY() -> int
QWidget.lower()
QWidget.mapFrom(QWidget, QPoint) -> QPoint
QWidget.mapFromGlobal(QPoint) -> QPoint
QWidget.mapFromParent(QPoint) -> QPoint
QWidget.mapTo(QWidget, QPoint) -> QPoint
QWidget.mapToGlobal(QPoint) -> QPoint
QWidget.mapToParent(QPoint) -> QPoint
QWidget.mask() -> QRegion
QWidget.maximumHeight() -> int
QWidget.maximumSize() -> QSize
QWidget.maximumWidth() -> int
QObject.metaObject() -> QMetaObject
QWidget.metric(QPaintDevice.PaintDeviceMetric) -> int
QWidget.minimumHeight() -> int
QWidget.minimumSize() -> QSize
QWidget.minimumSizeHint() -> QSize
QWidget.minimumWidth() -> int
QWidget.mouseDoubleClickEvent(QMouseEvent)
QWidget.mouseGrabber() -> QWidget
QWidget.mouseMoveEvent(QMouseEvent)
QWidget.mousePressEvent(QMouseEvent)
QWidget.mouseReleaseEvent(QMouseEvent)
QWidget.move(QPoint) QWidget.move(int, int)
QWidget.moveEvent(QMoveEvent)
QObject.moveToThread(QThread)
QWidget.nativeParentWidget() -> QWidget
QWidget.nextInFocusChain() -> QWidget
QWidget.normalGeometry() -> QRect
QPaintDevice.numColors() -> int
QObject.objectName() -> QString
QWidget.overrideWindowFlags(Qt.WindowFlags)
QWidget.overrideWindowState(Qt.WindowStates)
QWidget.paintEngine() -> QPaintEngine
QWidget.paintEvent(QPaintEvent)
QPaintDevice.paintingActive() -> bool
QWidget.palette() -> QPalette
QWidget.paletteChange(QPalette)
QObject.parent() -> QObject
QWidget.parentWidget() -> QWidget
QPaintDevice.physicalDpiX() -> int
QPaintDevice.physicalDpiY() -> int
QWidget.pos() -> QPoint
QWidget.previousInFocusChain() -> QWidget
QObject.property(str) -> QVariant
QObject.pyqtConfigure(...)
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
QWidget.raise_()
QObject.receivers(SIGNAL()) -> int
QWidget.rect() -> QRect
QWidget.releaseKeyboard()
QWidget.releaseMouse()
QWidget.releaseShortcut(int)
QWidget.removeAction(QAction)
QObject.removeEventFilter(QObject)
QWidget.render(QPaintDevice, QPoint targetOffset=QPoint(), QRegion sourceRegion=QRegion(), QWidget.RenderFlags flags=QWidget.DrawWindowBackground|QWidget.DrawChildren) QWidget.render(QPainter, QPoint targetOffset=QPoint(), QRegion sourceRegion=QRegion(), QWidget.RenderFlags flags=QWidget.DrawWindowBackground|QWidget.DrawChildren)
QWidget.repaint() QWidget.repaint(int, int, int, int) QWidget.repaint(QRect) QWidget.repaint(QRegion)
QWidget.resetInputContext()
QWidget.resize(QSize) QWidget.resize(int, int)
QWidget.resizeEvent(QResizeEvent)
QWidget.restoreGeometry(QByteArray) -> bool
QWidget.saveGeometry() -> QByteArray
QWidget.scroll(int, int) QWidget.scroll(int, int, QRect)
QObject.sender() -> QObject
QWidget.setAcceptDrops(bool)
QWidget.setAccessibleDescription(QString)
QWidget.setAccessibleName(QString)
QWidget.setAttribute(Qt.WidgetAttribute, bool on=True)
QWidget.setAutoFillBackground(bool)
QWidget.setBackgroundRole(QPalette.ColorRole)
QWidget.setBaseSize(int, int) QWidget.setBaseSize(QSize)
QWidget.setContentsMargins(int, int, int, int) QWidget.setContentsMargins(QMargins)
QWidget.setContextMenuPolicy(Qt.ContextMenuPolicy)
QWidget.setCursor(QCursor)
QWidget.setDisabled(bool)
QWidget.setEnabled(bool)
QWidget.setFixedHeight(int)
QWidget.setFixedSize(QSize) QWidget.setFixedSize(int, int)
QWidget.setFixedWidth(int)
QWidget.setFocus() QWidget.setFocus(Qt.FocusReason)
QWidget.setFocusPolicy(Qt.FocusPolicy)
QWidget.setFocusProxy(QWidget)
QWidget.setFont(QFont)
QWidget.setForegroundRole(QPalette.ColorRole)
QWidget.setGeometry(QRect) QWidget.setGeometry(int, int, int, int)
QWidget.setGraphicsEffect(QGraphicsEffect)
QWidget.setHidden(bool)
QWidget.setInputContext(QInputContext)
QWidget.setInputMethodHints(Qt.InputMethodHints)
QWidget.setLayout(QLayout)
QWidget.setLayoutDirection(Qt.LayoutDirection)
QWidget.setLocale(QLocale)
QWidget.setMask(QBitmap) QWidget.setMask(QRegion)
QWidget.setMaximumHeight(int)
QWidget.setMaximumSize(int, int) QWidget.setMaximumSize(QSize)
QWidget.setMaximumWidth(int)
QWidget.setMinimumHeight(int)
QWidget.setMinimumSize(int, int) QWidget.setMinimumSize(QSize)
QWidget.setMinimumWidth(int)
QWidget.setMouseTracking(bool)
QObject.setObjectName(QString)
QWidget.setPalette(QPalette)
QWidget.setParent(QWidget) QWidget.setParent(QWidget, Qt.WindowFlags)
QObject.setProperty(str, QVariant) -> bool
QWidget.setShortcutAutoRepeat(int, bool enabled=True)
QWidget.setShortcutEnabled(int, bool enabled=True)
QWidget.setShown(bool)
QWidget.setSizeIncrement(int, int) QWidget.setSizeIncrement(QSize)
QWidget.setSizePolicy(QSizePolicy) QWidget.setSizePolicy(QSizePolicy.Policy, QSizePolicy.Policy)
QWidget.setStatusTip(QString)
QWidget.setStyle(QStyle)
QWidget.setStyleSheet(QString)
QWidget.setTabOrder(QWidget, QWidget)
QWidget.setToolTip(QString)
QWidget.setUpdatesEnabled(bool)
QWidget.setVisible(bool)
QWidget.setWhatsThis(QString)
QWidget.setWindowFilePath(QString)
QWidget.setWindowFlags(Qt.WindowFlags)
QWidget.setWindowIcon(QIcon)
QWidget.setWindowIconText(QString)
QWidget.setWindowModality(Qt.WindowModality)
QWidget.setWindowModified(bool)
QWidget.setWindowOpacity(float)
QWidget.setWindowRole(QString)
QWidget.setWindowState(Qt.WindowStates)
QWidget.setWindowTitle(QString)
QWidget.show()
QWidget.showEvent(QShowEvent)
QWidget.showFullScreen()
QWidget.showMaximized()
QWidget.showMinimized()
QWidget.showNormal()
QObject.signalsBlocked() -> bool
QWidget.size() -> QSize
QWidget.sizeHint() -> QSize
QWidget.sizeIncrement() -> QSize
QWidget.sizePolicy() -> QSizePolicy
QWidget.stackUnder(QWidget)
QObject.startTimer(int) -> int
QWidget.statusTip() -> QString
QWidget.style() -> QStyle
QWidget.styleSheet() -> QString
QWidget.tabletEvent(QTabletEvent)
QWidget.testAttribute(Qt.WidgetAttribute) -> bool
QObject.thread() -> QThread
QObject.timerEvent(QTimerEvent)
QWidget.toolTip() -> QString
QWidget.topLevelWidget() -> QWidget
QObject.tr(str, str disambiguation=None, int n=-1) -> QString
QObject.trUtf8(str, str disambiguation=None, int n=-1) -> QString
QWidget.underMouse() -> bool
QWidget.ungrabGesture(Qt.GestureType)
QWidget.unsetCursor()
QWidget.unsetLayoutDirection()
QWidget.unsetLocale()
QWidget.update() QWidget.update(QRect) QWidget.update(QRegion) QWidget.update(int, int, int, int)
QWidget.updateGeometry()
QWidget.updateMicroFocus()
QWidget.updatesEnabled() -> bool
QWidget.visibleRegion() -> QRegion
QWidget.whatsThis() -> QString
QWidget.wheelEvent(QWheelEvent)
QWidget.width() -> int
QPaintDevice.widthMM() -> int
QWidget.winId() -> int
QWidget.window() -> QWidget
QWidget.windowActivationChange(bool)
QWidget.windowFilePath() -> QString
QWidget.windowFlags() -> Qt.WindowFlags
QWidget.windowIcon() -> QIcon
QWidget.windowIconText() -> QString
QWidget.windowModality() -> Qt.WindowModality
QWidget.windowOpacity() -> float
QWidget.windowRole() -> QString
QWidget.windowState() -> Qt.WindowStates
QWidget.windowTitle() -> QString
QWidget.windowType() -> Qt.WindowType
QWidget.x() -> int
QWidget.x11Info() -> QX11Info
QWidget.x11PictureHandle() -> int
QWidget.y() -> int
Add actions (list of QAction instances) to target (menu, toolbar)
Add separator to target only if last action is not a separator
Create a new QAction
Create a QToolButton
Get standard platform icon Call ‘show_std_icons()’ for details
The guidata.disthelpers module provides helper functions for Python package distribution on Microsoft Windows platforms with py2exe.
Collect data files for module module_name and add them to data_files data_dir_names: list of dirnames, e.g. (‘images’,) extensions: list of file extensions, e.g. (‘.png’, ‘.svg’)
Include module module_name
Create temporary data file filename with contents and add it to data_files
Return Mercurial repository path revision number
Prepend to sys.path module located in module_path Return string with module infos: name, revision, changeset
Use this function: 1) In your application to import local frozen copies of internal libraries 2) In your py2exe distributed package to add a text file containing the
returned string
Prepend to sys.path all modules located in module_base_path
The guidata.configtools module provides configuration related tools.
Appends image data path relative to a module name. Used to add module local data that resides in a module directory but will be shipped under sys.prefix / share/ ...
modname must be the name of an already imported module as found in sys.modules
Append image path (opt. with its subfolders) to global list IMG_PATH
Construct a QBrush from the specified configuration file entry conf: UserConfig instance section [, option]: configuration entry [color]: default color [alpha]: default alpha-channel
Return the first installed font family in family list
Construct a QFont from the specified configuration file entry conf: UserConfig instance section [, option]: configuration entry
Construct a QIcon from the file with specified name name, default: filenames with extensions
Return the absolute path to image with specified name name, default: filenames with extensions
Construct a QLabel from the file with specified name name, default: filenames with extensions
Construct a QHBoxLayout including image from the file with specified name, left-aligned text [with specified tooltip] Return (layout, label)
Return the module’s data path, selecting the local (development path) or the distributed (installed) data path
Construct a QPen from the specified configuration file entry conf: UserConfig instance section [, option]: configuration entry [color]: default color [width]: default width [style]: default style
The guidata.userconfig module provides user configuration file (.ini file) management features based on ConfigParser (standard Python library).
UserConfig class, based on ConfigParser name: name of the config options: dictionnary containing options or list of tuples (section_name, options)
Note that ‘get’ and ‘set’ arguments number and type differ from the overriden methods
Create a new section in the configuration.
Raise DuplicateSectionError if a section by the specified name already exists. Raise ValueError if name is DEFAULT or any of it’s case-insensitive variants.
Get an option section=None: attribute a default section name default: default value (if not specified, an exception will be raised if option doesn’t exist)
Get Default value for a given (section, option) -> useful for type checking in ‘get’ method
Check for the existence of a given option in a given section.
Indicate whether the named section is present in the configuration.
The DEFAULT section is not acknowledged.
Return a list of tuples with (name, value) for each option in the section.
All % interpolations are expanded in the return values, based on the defaults passed into the constructor, unless the optional argument `raw’ is true. Additional substitutions may be provided using the `vars’ argument, which must be a dictionary whose contents overrides any pre-existing defaults.
The section DEFAULT is special.
Return a list of option names for the given section name.
Read and parse a filename or a list of filenames.
Files that cannot be opened are silently ignored; this is designed so that you can specify a list of potential configuration file locations (e.g. current directory, user’s home directory, systemwide directory), and all existing configuration files in the list will be read. A single filename may also be given.
Return list of successfully read files.
Like read() but the argument must be a file-like object.
The `fp’ argument must have a `readline’ method. Optional second argument is the `filename’, which if not given, is taken from fp.name. If fp has no `name’ attribute, `<???>’ is used.
Remove an option.
Remove a file section.
Return a list of section names, excluding [DEFAULT]
Set an option section=None: attribute a default section name
Set Default value for a given (section, option) -> called when a new (section, option) is set and no default exists
Write an .ini-format representation of the configuration state.
The guidata.utils module provides various utility helper functions (pure python).
Helper object that substitute as a string to format seconds into (nn H mm min ss s)
Add extension to filename item: data item representing a file path value: possible value for data item
Makes sure a class supports an interface
Makes sure a class supports the interfaces it declares
Returns a callable representing the function ‘fct’ with it’s first argument bound to the value v
if g = bind(f,1) and f is a function of x,y,z then g(y,z) will return f(1,y,z)
Return True if program is installed and present in PATH
Return True if minimium value equals maximum value Return False if not, or if maximum or minimum value is not defined
A simple generator that takes a list and generates pairs [ (l[0],l[1]), ..., (l[n-2], l[n-1])]
Restore dest dataset items from source dataset
This function is almost the same as update_dataset but requires the source to be a DataSet instead of the destination.
Run program in a separate process
convert a unicode string to a byte string encoded for stdout output
Update dest dataset items from source dataset
dest should inherit from DataSet, whereas source can be any Python object containing matching attribute names.
For each DataSet item, the function will try to get the attribute of the same name from the source.
visible_only: if True, update only visible items