Gdl.DockMaster¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Default title for newly created floating docks |
||
r/w |
If is set to 1, all the dock items bound to the master are locked; if it’s 0, all are unlocked; -1 indicates inconsistency among the items |
||
r/w |
Switcher buttons style |
||
r/w |
Which side of the notebook holds the tabs |
||
r/w |
Whether the tab is reorderable by user action |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Signals that the layout has changed, one or more widgets have been moved, added or removed. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
object |
r |
Class Details¶
- class Gdl.DockMaster(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- add(object)¶
- Parameters:
object (
Gdl.DockObject
) – aGdl.DockObject
Add a new dock widget to the master.
- foreach(function, *user_data)¶
- Parameters:
Call function on each dock widget of the master.
- foreach_toplevel(include_controller, function, *user_data)¶
- Parameters:
Call function on each top level dock widget of the master, including or not the controller.
- get_controller()¶
- Returns:
- Return type:
Retrieves the
Gdl.DockObject
acting as the controller.
- get_dock_name()¶
-
Return an unique translated dock name.
New in version 3.6.
- get_object(nick_name)¶
- Parameters:
nick_name (
str
) – the name of the dock widget.- Returns:
A
Gdl.DockObject
named nick_name orNone
if it does not exist.- Return type:
Looks for a
Gdl.DockObject
named nick_name.
- remove(object)¶
- Parameters:
object (
Gdl.DockObject
) – aGdl.DockObject
Remove one dock widget from the master.
- set_controller(new_controller)¶
- Parameters:
new_controller (
Gdl.DockObject
) – aGdl.DockObject
Set a new controller. The controller must be a top level
Gdl.DockObject
.
- do_layout_changed() virtual¶
Signal Details¶
- Gdl.DockMaster.signals.layout_changed(dock_master)¶
- Signal Name:
layout-changed
- Flags:
- Parameters:
dock_master (
Gdl.DockMaster
) – The object which received the signal
Signals that the layout has changed, one or more widgets have been moved, added or removed.
Property Details¶
- Gdl.DockMaster.props.default_title¶
-
Default title for newly created floating docks
- Gdl.DockMaster.props.locked¶
-
If is set to 1, all the dock items bound to the master are locked; if it’s 0, all are unlocked; -1 indicates inconsistency among the items
- Gdl.DockMaster.props.switcher_style¶
- Name:
switcher-style
- Type:
- Default Value:
- Flags:
Switcher buttons style
- Gdl.DockMaster.props.tab_pos¶
- Name:
tab-pos
- Type:
- Default Value:
- Flags:
Which side of the notebook holds the tabs