gui_tools module
- class gui_tools.IconManager
Bases:
QObjectInstance that manages icons color
Call gui_tools.icon_managers[“wheel”].colorPixmap(pixmap) to set icon color during setup, it is going to be stored and updated automatically.
Updated signal emits when the icons have been updated.
gui_tools.icon_managers[“sections”] has separate instance for sections icons
Methods
blockSignals(self, b)childEvent(self, a0)children(self)colorPixmap(pixmap[, icon])Color the pixmap and store it in the instance
connectNotify(self, signal)customEvent(self, a0)deleteLater(self)destroyeddestroyed(self, object: typing.Optional[QObject] = None) [signal]
disconnect(-> bool disconnect)disconnectNotify(self, signal)dumpObjectInfo(self)dumpObjectTree(self)dynamicPropertyNames(self)event(self, a0)eventFilter(self, a0, a1)findChild(-> QObject)findChildren(...)inherits(self, classname)installEventFilter(self, a0)isQuickItemType(self)isSignalConnected(self, signal)isWidgetType(self)isWindowType(self)killTimer(self, id)metaObject(self)moveToThread(self, thread)objectName(self)objectNameChangedobjectNameChanged(self, objectName: str) [signal]
parent(self)property(self, name)pyqtConfigure(...)Each keyword argument is either the name of a Qt property or a Qt signal.
receivers(self, signal)removeEventFilter(self, a0)sender(self)senderSignalIndex(self)setIconColor(color)Set new global icon color, will return False if the color is unchanged.
setObjectName(self, name)setParent(self, a0)setProperty(self, name, value)signalsBlocked(self)startTimer(self, interval[, timerType])thread(self)timerEvent(self, a0)tr(sourceText[, disambiguation, n])Iterate over pixmaps and repaint color
updated
- colorPixmap(pixmap, icon=None)
Color the pixmap and store it in the instance
- Parameters:
- pixmap
QPixmap to update
- icon
(Optional) Linked QIcon to update
- setIconColor(color)
Set new global icon color, will return False if the color is unchanged.
- Parameters:
- color
Color hex
- updatePixmaps()
Iterate over pixmaps and repaint color
- updated