|
BonPrinter v1.2.0
Thermal Printer tool
|
Holds the data of the application. More...
Public Member Functions | |
| None | __init__ (self, "MainWindow" ui, LogConfig log_config) |
| str|None | get_last_path (self) |
| Get last path to open dialog. | |
| None | set_last_path (self, str path) |
| Set last path and save in persistent storage. | |
| None | update_enable_report_status (self, Optional[bool] b_enable_report=None) |
| Update report enable status. | |
| None | update_output_path (self, str s_output_path) |
| Update output path. | |
| None | update_show_price_status (self, Optional[bool] b_show_price=None) |
| Update Show price status. | |
Public Attributes | |
| b_enable_report = read_print_report_settings() | |
| bool | b_show_price = read_show_price_settings() |
| Authentication | c_auth = Authentication(ui) |
| Calculator | c_calc = Calculator() |
| config.Config | c_config = config.Config(ui) |
| language.Language | c_language = language.Language(ui) |
| monitor.MonitorScale | c_monitor = monitor.MonitorScale(ui) |
| printer.Printer | c_printer = printer.Printer(ui) |
| report.Report | c_report = report.Report(ui) |
| sound.Sound | c_sound = sound.Sound(ui) |
| log_config = log_config | |
| notepad_worker = OpenNotepadWorker() | |
| str|None | s_last_path = read_last_dir() |
| str | s_output_path = read_output_path_settings() |
| ui = ui | |
Holds the data of the application.
| ui | : main window object |
| log_config | : log configuration of the application |
| None __init__ | ( | self, | |
| "MainWindow" | ui, | ||
| LogConfig | log_config ) |
Definition at line 43 of file model.py.
| str | None get_last_path | ( | self | ) |
Get last path to open dialog.
Definition at line 131 of file model.py.
| None set_last_path | ( | self, | |
| str | path ) |
Set last path and save in persistent storage.
| path | : path to set as last path |
Definition at line 144 of file model.py.
| None update_enable_report_status | ( | self, | |
| Optional[bool] | b_enable_report = None ) |
Update report enable status.
| b_enable_report | : [True] enable print report; [False] disable print report; [None] toggle print report |
Definition at line 67 of file model.py.
| None update_output_path | ( | self, | |
| str | s_output_path ) |
Update output path.
| s_output_path | : new output path to set |
Definition at line 99 of file model.py.
| None update_show_price_status | ( | self, | |
| Optional[bool] | b_show_price = None ) |
Update Show price status.
| b_show_price | : [True] show price below article name; [False] show not; [None] toggle actual setting |
Definition at line 83 of file model.py.
| Authentication c_auth = Authentication(ui) |
| Calculator c_calc = Calculator() |
| config.Config c_config = config.Config(ui) |
| language.Language c_language = language.Language(ui) |
| monitor.MonitorScale c_monitor = monitor.MonitorScale(ui) |
| printer.Printer c_printer = printer.Printer(ui) |
| report.Report c_report = report.Report(ui) |
| sound.Sound c_sound = sound.Sound(ui) |
| notepad_worker = OpenNotepadWorker() |