DockWindow (hwx.gui)¶
A dockable window.
It can exist in a floating state or can be attached to the main application window.
- Inherits:
Public Methods¶
addChildren (self, children) addMaximizeRestoreButtons (self, maximizeText=’Maximize’, restoreText=’Restore Down’) createContents (self) setProperties (self, kwds)
Property Details¶
The text displayed in the title bar.
Docks/Undocks the window and returns if the window is docked.
Method Details¶
-
addChildren(self, children)¶
Adds widgets to the container.
| param children: | The widget or list of widgets to be added. |
|---|---|
| type children: | list[Widget] |
-
addMaximizeRestoreButtons(self, maximizeText='Maximize', restoreText='Restore Down')¶
Adds a maximize and a restore tool button to the title bar and implements the expected behavior when these are clicked.
| param maximizeText: | |
|---|---|
| The tooltip of maximize button. | |
| type maximizeText: | |
| str | |
| param restoreText: | |
| The tooltip of restore button. | |
| type restoreText: | |
| str | |
-
createContents(self)¶
To be implemented in derived class.
-
setProperties(self, kwds)¶
| param kwds: | |
|---|---|
| return: |