Share and Money Management 0.18devel
Public Member Functions | Static Public Attributes | List of all members
gui.controls.GeneralPanelConfig Class Reference

Generic functions to save and restore the state of a panel. More...

Inheritance diagram for gui.controls.GeneralPanelConfig:

Public Member Functions

def OnClose (self, event)
 Save the current configuration before the panel is closed. More...
 
def restoreConfig (self)
 Restore saved settings. More...
 
def saveConfig (self)
 Save current settings. More...
 
def restoreListCtrl (self, ctrl, section, prefix)
 Restore saved settings. More...
 
def saveListCtrl (self, ctrl, section, prefix)
 Save current settings. More...
 

Static Public Attributes

 config_section = None
 Section in the configuration that contains the current look. More...
 
dictionary config_items
 Dictionary with all elements to save/restore. More...
 

Detailed Description

Generic functions to save and restore the state of a panel.

Member Function Documentation

◆ OnClose()

def gui.controls.GeneralPanelConfig.OnClose (   self,
  event 
)

Save the current configuration before the panel is closed.

The parent class should bind this event handler

See also
restoreConfig() and saveConfig()

References gui.controls.GeneralPanelConfig.saveConfig().

Here is the call graph for this function:

◆ restoreConfig()

def gui.controls.GeneralPanelConfig.restoreConfig (   self)

◆ restoreListCtrl()

def gui.controls.GeneralPanelConfig.restoreListCtrl (   self,
  ctrl,
  section,
  prefix 
)

Restore saved settings.

All exceptions raised during setting the column widths will be dropped

See also
saveListCtrl()

Referenced by gui.controls.GeneralPanelConfig.restoreConfig().

Here is the caller graph for this function:

◆ saveConfig()

def gui.controls.GeneralPanelConfig.saveConfig (   self)

◆ saveListCtrl()

def gui.controls.GeneralPanelConfig.saveListCtrl (   self,
  ctrl,
  section,
  prefix 
)

Save current settings.

See also
restoreListCtrl()

Referenced by gui.controls.GeneralPanelConfig.saveConfig().

Here is the caller graph for this function:

Member Data Documentation

◆ config_items

dictionary gui.controls.GeneralPanelConfig.config_items
static
Initial value:
= {
# attr kind
"list": "ListCtrl",
}

Dictionary with all elements to save/restore.

Referenced by gui.controls.GeneralPanelConfig.restoreConfig(), and gui.controls.GeneralPanelConfig.saveConfig().

◆ config_section

gui.controls.GeneralPanelConfig.config_section = None
static

Section in the configuration that contains the current look.

Referenced by gui.controls.GeneralPanelConfig.restoreConfig(), and gui.controls.GeneralPanelConfig.saveConfig().


The documentation for this class was generated from the following file: