Share and Money Management 0.18devel
|
Dialog to change / set preferences. More...
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... | |
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 | |
tc_DatabaseFile | |
bn_SelectDatabase | |
bn_CreateNewDatabase | |
static_line | |
bn_OK | |
bn_Cancel | |
Static Public Attributes | |
wildcard = _("Datenbankdatei (*.db)|*.db|Alle Dateien (*.*)|*.*") | |
Wildcards to select database files. More... | |
Dialog to change / set preferences.
def gui.dialogs.DlgPreferences.__init__ | ( | self, | |
parent, | |||
db_file, | |||
log_level | |||
) |
Initialise dialog.
self | The object pointer |
parent | The parent object |
db_file | |
log_level |
Reimplemented from gui.UIPreferences.UIPreferences.
def gui.dialogs.DlgPreferences.OnCreateDatabase | ( | self, | |
event | |||
) |
Create a new database.
Query the database filename and create a 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.
def gui.dialogs.DlgPreferences.OnSelectDatabase | ( | self, | |
event | |||
) |
Open a dialog to select an existing database file.
References gui.dialogs.DlgPreferences.db_file, gui.UIPreferences.UIPreferences.tc_DatabaseFile, gui.dialogs.DlgHtml.wildcard, and gui.dialogs.DlgPreferences.wildcard.
def gui.dialogs.DlgPreferences.ShowModal | ( | self, | |
* | args, | ||
** | kwargs | ||
) |
Show the dialog modal and save the settings after afterwards.
The insert data will be 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.
gui.dialogs.DlgPreferences.db_file |
Database file to use.
Referenced by gui.dialogs.DlgPreferences.OnCreateDatabase(), gui.dialogs.DlgPreferences.OnSelectDatabase(), and gui.dialogs.DlgPreferences.ShowModal().
gui.dialogs.DlgPreferences.log_level |
Verbosity of logging.
Referenced by gui.dialogs.DlgPreferences.ShowModal().
|
static |
Wildcards to select database files.
Referenced by gui.dialogs.DlgPreferences.OnCreateDatabase(), gui.dialogs.DlgHtml.OnSave(), and gui.dialogs.DlgPreferences.OnSelectDatabase().