Popdown Labels

Popdown labels are labels that are shown with a menu indicator arrow, and that can be clicked to show a menu with certain menu items.

The classes listed here are all derived from QT4Widgets.PopdownLabel. Each class defines a buildMenu() function that populates the respective menu when a label defined by the respective class has been clicked.

UI4.Widgets.AssetIDLabel

class UI4.Widgets.AssetIDLabel

Bases: PopdownLabel

Class implementing a “popdown label” (label which shows a menu when clicked) for use in the application’s main menu bar for showing which asset is currently loaded. When clicked, the label shows a menu allowing the user to copy the asset ID or underlying filesystem path to the clipboard.

Example Screenshot:

Screenshot of an AssetIDLabel widget

__init__(parent=None)

Initializes an instance of the class.

Parameters:

parent (QtWidgets.QWidget or None) – The parent widget to own the new instance. Passed verbatim to the base class initializer.

buildMenu(menu)

Called by PopdownLabel to add items to the menu that is shown when clicking the widget.

Parameters:

menu (QtWidgets.QMenu) – The menu to add items to.

staticMetaObject = PySide6.QtCore.QMetaObject("AssetIDLabel" inherits "PopdownLabel": )

UI4.Widgets.ProxyResCombo

class UI4.Widgets.ProxyResCombo

Bases: PopdownLabel

Example Screenshot:

Screenshot of a ProxyResCombo widget

__init__(self, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags)) None
__init__(self, text: str, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags)) None

Initialize self. See help(type(self)) for accurate signature.

buildMenu(menu)

Called by PopdownLabel to add items to the menu that is shown when clicking the widget.

Parameters:

menu (QtWidgets.QMenu) – The menu to add items to.

staticMetaObject = PySide6.QtCore.QMetaObject("ProxyResCombo" inherits "PopdownLabel": )
updateState()

UI4.Widgets.RoiCombo

class UI4.Widgets.RoiCombo

Bases: PopdownLabel

Example Screenshot:

Screenshot of a RoiCombo widget

__init__(self, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags)) None
__init__(self, text: str, parent: PySide6.QtWidgets.QWidget | None = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags)) None

Initialize self. See help(type(self)) for accurate signature.

buildMenu(menu)

Called by PopdownLabel to add items to the menu that is shown when clicking the widget.

Parameters:

menu (QtWidgets.QMenu) – The menu to add items to.

getRoiVisible()
roiVisibilityChanged
setRoiVisible(isVisible)
staticMetaObject = PySide6.QtCore.QMetaObject("RoiCombo" inherits "PopdownLabel": Methods:   #48 type=Signal, signature=roiVisibilityChanged() )
updateState()