Share and Money Management  0.16
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gui.dialogs.DlgPreferences Class Reference

Dialog to change / set preferences. More...

Inheritance diagram for gui.dialogs.DlgPreferences:

Public Member Functions

def __init__ (self, parent, db_file, log_level)
 Initialise dialog. More...
 
def OnCreateDatabase (self, event)
 Create a new database. More...
 
def OnSelectDatabase (self, event)
 Open a dialog to select an existing database file. More...
 
def ShowModal (self, args, kwargs)
 Show the dialog modal and save the settings after afterwards. More...
 
- Public Member Functions inherited from gui.UIPreferences.UIPreferences
def __init__ (self, args, kwds)
 

Public Attributes

 db_file
 Database file to use. More...
 
 log_level
 Verbosity of logging. More...
 
- Public Attributes inherited from gui.UIPreferences.UIPreferences
 cc_LogLevel
 
 sizer_29_staticbox
 
 tc_DatabaseFile
 
 bn_SelectDatabase
 
 bn_CreateNewDatabase
 
 sz_Database_staticbox
 
 static_line
 
 bn_OK
 
 bn_Cancel
 

Static Public Attributes

 wildcard
 Wildcards to select database files. More...
 

Detailed Description

Dialog to change / set preferences.

Constructor & Destructor Documentation

◆ __init__()

def gui.dialogs.DlgPreferences.__init__ (   self,
  parent,
  db_file,
  log_level 
)

Initialise dialog.

Parameters
selfThe object pointer
parentThe parent object
db_file
log_level

Member Function Documentation

◆ OnCreateDatabase()

def gui.dialogs.DlgPreferences.OnCreateDatabase (   self,
  event 
)

Create a new database.

Query the database filename and create an database with an initial set of items

References smm.database.close_storm(), smm.db_setup.create_structure(), gui.dialogs.DlgPreferences.db_file, smm.database.init_storm(), smm.db_setup.load_initial_data(), gui.UIPreferences.UIPreferences.tc_DatabaseFile, gui.dialogs.DlgHtml.wildcard, and gui.dialogs.DlgPreferences.wildcard.

Here is the call graph for this function:

◆ OnSelectDatabase()

def gui.dialogs.DlgPreferences.OnSelectDatabase (   self,
  event 
)

◆ ShowModal()

def gui.dialogs.DlgPreferences.ShowModal (   self,
  args,
  kwargs 
)

Show the dialog modal and save the settings after afterwards.

The insert data will stored in instance variables on success.

References gui.UIPreferences.UIPreferences.cc_LogLevel, gui.dialogs.DlgPreferences.db_file, gui.dialogs.DlgPreferences.log_level, and gui.UIPreferences.UIPreferences.tc_DatabaseFile.

Member Data Documentation

◆ db_file

gui.dialogs.DlgPreferences.db_file

◆ log_level

gui.dialogs.DlgPreferences.log_level

Verbosity of logging.

Referenced by gui.dialogs.DlgPreferences.ShowModal().

◆ wildcard

gui.dialogs.DlgPreferences.wildcard
static
Initial value:
= _("Datenbankdatei (*.db)|*.db|" \
"Alle Dateien (*.*) |*.*")

Wildcards to select database files.

Referenced by gui.dialogs.DlgPreferences.OnCreateDatabase(), and gui.dialogs.DlgPreferences.OnSelectDatabase().


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