gdesk.panels.panels module¶
- class gdesk.panels.panels.Panels(qapp)¶
Bases:
object
- classes_of_category(category)¶
- get_active_panid(category, panidpos=- 1)¶
Trigger a menu action of a panel.
- Parameters
category (str) – Example ‘image’
id (int) – Example 1
menutrace (list) – Example [‘File’, ‘New Image’]
- id_exists(category, panid)¶
- items()¶
- keys()¶
- move_to_end(widget, category=None)¶
- new(category, paneltype=None, windowname=None, *args, **kwargs)¶
- new_id(category)¶
- new_panel(PanelClass, parentName=None, panid=None, floating=False, position=None, args=(), kwargs={})¶
- place_window(window, category)¶
- removeBindingsTo(category, panid)¶
- reselect_all()¶
- restore_state_from_config(layout_name)¶
- select_or_new(category, panid=None, defaulttype='basic', parentName='main', args=(), kwargs={})¶
If panid < 0, -1: select the active panel, -2: selected before that, … panid > 0: select the panel if exists, otherwise a new with that number
- selected(category, panidpos=- 1, panel=True)¶
- selected_category()¶