Dock¶
Example:
from flexx import ui
class Example(ui.Widget):
def init(self):
with ui.DockPanel():
ui.Widget(style='background:#a00;', title='red')
ui.Widget(style='background:#0a0;', title='green')
ui.Widget(style='background:#00a;', title='blue')
ui.Widget(style='background:#aa0;', title='yellow')
ui.Widget(style='background:#a0a;', title='purple')
ui.Widget(style='background:#0aa;', title='cyan')
-
class
flexx.ui.
DockPanel
(*init_args, **kwargs)¶ Inherits from:
Layout
A layout that displays its children as dockable widgets.
This is a high level layout allowing the user to layout the child widgets as he/she likes. The title of each child is used for its corresponding tab label.
NOTE: this class needs some work to allow setting and getting the positioning of the child widgets ...