8.6.8.2.18. pymodaq_gui.utils.widgets.widget_with_label_title module
- class pymodaq_gui.utils.widgets.widget_with_label_title.WidgetWithLabelTitle(title, subwidget=None, parent=None, closable=False, attachable=False, expand_subwidget=False, **label_kwargs)[source]
Bases:
QWidgetCreate a Widget with a vertical layout containing a title and subwidgets
- Parameters:
title (
str)subwidget (
QWidget)parent (
QWidget)closable (
bool) – If True, add a close button in the title header emitting sig_close when clickedattachable (
bool) – If True, add an attach/detach toggle button in the title header emitting sig_attach_detach when clickedexpand_subwidget (
bool) – If True, the subwidgets fill all the available height (useful for trees in a dock), otherwise they keep their preferred height and the remaining space is left empty below them
Methods
set_attached(attached)Programmatically set the attach/detach button state without emitting sig_attach_detach
insert_widget
set_label_visible
set_title
sig_attach_detach
sig_close
- set_attached(attached)[source]
Programmatically set the attach/detach button state without emitting sig_attach_detach
- sig_attach_detach
- sig_close
- staticMetaObject = PySide6.QtCore.QMetaObject("WidgetWithLabelTitle" inherits "QWidget": Methods: #33 type=Signal, signature=sig_close() #34 type=Signal, signature=sig_attach_detach(bool), parameters=bool )