|
BonPrinter v1.2.0
Thermal Printer tool
|
Classes | |
| class | ELanguages |
| Available application languages. More... | |
| class | EPaper |
| Supported paper widths of printer. More... | |
| class | ETheme |
| Available application themes. More... | |
| class | EUser |
| Present users. More... | |
| class | ItemNumber |
| Item number. More... | |
Functions | |
| bool | check_serial_device (str s_com_port) |
| Check if serial device is present at this COM port. | |
| None | clear_settings () |
| Clear registry settings to write defaults at next startup. | |
| str | get_computer_name () |
| Get computer name. | |
| dict[str, dict[str, str]] | get_default_item_config (Optional[str] s_deposit_name=None) |
| Get default article configuration depend on deposit name. | |
| Any | get_registry_value (SETTINGS handle, str s_key, bool b_none_err=True) |
| Reads the registry value with given handle and key. | |
| list[ListPortInfo] | get_serial_ports () |
| Check if serial device is present at this COM port. | |
| SETTINGS | get_settings_handle () |
| Returns the settings handle. | |
| None | open_explorer (str explorer_path, bool b_open_input=False) |
| Open explorer. | |
| dict[str, Any] | read_articles_settings () |
| Reads the articles settings from persistent storage. | |
| str|None | read_com_port_settings () |
| Reads the COM port settings from persistent storage. | |
| ELanguages | read_language () |
| Reads the language from persistent storage. | |
| str | read_last_dir () |
| Reads the last directory from persistent storage. | |
| str | read_output_path_settings () |
| Reads the output path settings from persistent storage. | |
| int | read_paper_width_settings () |
| Reads the paper width settings from persistent storage. | |
| bool | read_print_report_settings () |
| Reads the print report status from persistent storage. | |
| list[float] | read_sales () |
| Reads the sales from persistent storage. | |
| bool | read_show_price_settings () |
| Reads the show price status from persistent storage. | |
| bool | read_sound_settings () |
| Reads the sound settings from persistent storage. | |
| ETheme | read_theme_settings () |
| Reads the theme settings from persistent storage. | |
| str | read_update_version () |
| Reads the last reminded tool version from persistent storage. | |
| dict[str, Any] | read_user_settings () |
| Reads the user settings from persistent storage. | |
| int | read_verbosity_settings () |
| Reads the verbosity settings from persistent storage. | |
| tuple[BYTE_ARRAY, BYTE_ARRAY] | read_window_state () |
| Reads the window geometry and state from persistent storage. | |
| tuple[bool, bool|None] | reset_config_dialog ("MainWindow | None" ui) |
| Show reset configuration dialog. | |
| str | resource_path (str s_relative_path) |
| Returns the absolute path to a resource given by a relative path depending on the environment (EXE or Python) | |
| None | save_window_state (BYTE_ARRAY o_geometry, BYTE_ARRAY o_state) |
| Saves the window state to persistent storage. | |
| None | thread_loop (Any obj, str thread_name) |
| loop for threads. | |
| None | write_articles_settings (dict[str, dict[str, str]] d_articles) |
| Writes the articles settings to persistent storage. | |
| None | write_com_port_settings (str s_com_port) |
| Writes the COM port settings to persistent storage. | |
| None | write_language (ELanguages e_language) |
| Writes the language to persistent storage. | |
| None | write_last_dir (str dir_path) |
| Writes the last directory to persistent storage. | |
| None | write_output_path_settings (str s_output_path) |
| Writes the output path settings to persistent storage. | |
| None | write_paper_width_settings (int i_paper_width) |
| Writes the paper width settings to persistent storage. | |
| None | write_print_report_settings (bool b_print_report) |
| Writes the print report settings to persistent storage. | |
| None | write_sales (int i_user_pos, float f_sales) |
| Writes the sales to persistent storage. | |
| None | write_show_price_settings (bool b_show_price) |
| Writes the show price settings to persistent storage. | |
| None | write_sound_settings (bool b_sound_status) |
| Writes the sound settings to persistent storage. | |
| None | write_theme_settings (ETheme e_theme) |
| Writes the theme settings to persistent storage. | |
| None | write_update_version (str version) |
| Writes the last reminded tool version for update to persistent storage. | |
| None | write_user_settings (dict[str, dict[str, str]] d_user) |
| Writes the user settings to persistent storage. | |
| None | write_verbosity_settings (int i_log_level) |
| Writes the verbosity settings to persistent storage. | |
Variables | |
| str | APP_NAME = "<APP_NAME>" |
| bool | B_DEFAULT_PRINT_REPORT = True |
| bool | B_DEFAULT_SHOW_PRICE = True |
| bool | B_DEFAULT_SOUND = True |
| str | COMPANY_NAME = "<COMPANY_NAME>" |
| dict | D_DEFAULT_ITEM |
| dict | D_DEFAULT_USER |
| dict | D_ITEM_NUMBER_COLUMN |
| dict | D_ITEM_NUMBER_ROW |
| str | DEFAULT_CODE = "1234" |
| E_DEFAULT_LANGUAGE = ELanguages.ENGLISH | |
| E_DEFAULT_THEME = ETheme.AUTO | |
| float | F_DEFAULT_SALES = 0.0 |
| str | HELP_PATH = resource_path("Resources/Help/") |
| I_DEFAULT_PAPER_WIDTH = EPaper.WIDTH_58_MM.value | |
| int | I_DEFAULT_USER_TIMEOUT = 15 |
| int | I_DEFAULT_WIN_HEIGHT = 450 |
| int | I_DEFAULT_WIN_WIDTH = 720 |
| int | I_GROUP_1 = 1 |
| int | I_GROUP_2 = 2 |
| int | I_GROUP_3 = 3 |
| I_ITEM_ARRAY_SIZE = ItemNumber.MAX | |
| I_LOG_LEVEL_DEFAULT = logging.WARNING | |
| int | I_NUMBER_OF_DISPLAYED_USER = 15 |
| int | I_NUMBER_OF_SALES = 101 |
| str | ICON_APP = resource_path(ICON_APP_PATH) |
| str | ICON_APP_FAVICON_PATH = "Resources/favicon.ico" |
| str | ICON_APP_PATH = "Resources/app.ico" |
| str | ICON_ARTICLES_DARK = resource_path("Resources/Icon/articles_dark.png") |
| str | ICON_ARTICLES_EDIT_DARK = resource_path("Resources/Icon/articles_edit_dark.png") |
| str | ICON_ARTICLES_EDIT_LIGHT = resource_path("Resources/Icon/articles_edit_light.png") |
| str | ICON_ARTICLES_EXPORT_DARK = resource_path("Resources/Icon/articles_export_dark.png") |
| str | ICON_ARTICLES_EXPORT_LIGHT = resource_path("Resources/Icon/articles_export_light.png") |
| str | ICON_ARTICLES_IMPORT_DARK = resource_path("Resources/Icon/articles_import_dark.png") |
| str | ICON_ARTICLES_IMPORT_LIGHT = resource_path("Resources/Icon/articles_import_light.png") |
| str | ICON_ARTICLES_LIGHT = resource_path("Resources/Icon/articles_light.png") |
| str | ICON_ARTICLES_RESET_DARK = resource_path("Resources/Icon/articles_reset_dark.png") |
| str | ICON_ARTICLES_RESET_LIGHT = resource_path("Resources/Icon/articles_reset_light.png") |
| str | ICON_CHANGE_FOLDER_DARK = resource_path("Resources/Icon/change_folder_dark.png") |
| str | ICON_CHANGE_FOLDER_LIGHT = resource_path("Resources/Icon/change_folder_light.png") |
| str | ICON_COMBINE_DARK = resource_path("Resources/Icon/combine_dark.png") |
| str | ICON_COMBINE_LIGHT = resource_path("Resources/Icon/combine_light.png") |
| str | ICON_HELP_DARK = resource_path("Resources/Icon/help_dark.png") |
| str | ICON_HELP_LIGHT = resource_path("Resources/Icon/help_light.png") |
| str | ICON_LANGUAGE_DARK = resource_path("Resources/Icon/language_dark.png") |
| str | ICON_LANGUAGE_ENGLISH = resource_path("Resources/Icon/language_english.png") |
| str | ICON_LANGUAGE_GERMAN = resource_path("Resources/Icon/language_german.png") |
| str | ICON_LANGUAGE_LIGHT = resource_path("Resources/Icon/language_light.png") |
| str | ICON_LOCK_DARK = resource_path("Resources/Icon/lock_dark.png") |
| str | ICON_LOCK_LIGHT = resource_path("Resources/Icon/lock_light.png") |
| str | ICON_LOG_DARK = resource_path("Resources/Icon/log_dark.png") |
| str | ICON_LOG_LIGHT = resource_path("Resources/Icon/log_light.png") |
| str | ICON_OPEN_FOLDER_DARK = resource_path("Resources/Icon/open_folder_dark.png") |
| str | ICON_OPEN_FOLDER_LIGHT = resource_path("Resources/Icon/open_folder_light.png") |
| str | ICON_PAPER_DARK = resource_path("Resources/Icon/paper_dark.png") |
| str | ICON_PAPER_LIGHT = resource_path("Resources/Icon/paper_light.png") |
| str | ICON_PRINT_FILE_DARK = resource_path("Resources/Icon/print_file_dark.png") |
| str | ICON_PRINT_FILE_LIGHT = resource_path("Resources/Icon/print_file_light.png") |
| str | ICON_PRINT_PREVIEW_DARK = resource_path("Resources/Icon/print_preview_dark.png") |
| str | ICON_PRINT_PREVIEW_LIGHT = resource_path("Resources/Icon/print_preview_light.png") |
| str | ICON_PRINTER_DARK = resource_path("Resources/Icon/printer_dark.png") |
| str | ICON_PRINTER_LIGHT = resource_path("Resources/Icon/printer_light.png") |
| str | ICON_REPORT_DARK = resource_path("Resources/Icon/report_dark.png") |
| str | ICON_REPORT_LIGHT = resource_path("Resources/Icon/report_light.png") |
| str | ICON_RESET_DARK = resource_path("Resources/Icon/reset_dark.png") |
| str | ICON_RESET_LIGHT = resource_path("Resources/Icon/reset_light.png") |
| str | ICON_SOUND_DARK = resource_path("Resources/Icon/sound_dark.png") |
| str | ICON_SOUND_LIGHT = resource_path("Resources/Icon/sound_light.png") |
| str | ICON_SOUND_MUTE_DARK = resource_path("Resources/Icon/sound_mute_dark.png") |
| str | ICON_SOUND_MUTE_LIGHT = resource_path("Resources/Icon/sound_mute_light.png") |
| str | ICON_STATUS_DARK = resource_path("Resources/Icon/status_dark.png") |
| str | ICON_STATUS_LIGHT = resource_path("Resources/Icon/status_light.png") |
| str | ICON_THEME_DARK = resource_path("Resources/Icon/theme_dark.png") |
| str | ICON_THEME_LIGHT = resource_path("Resources/Icon/theme_light.png") |
| str | ICON_USER_DARK = resource_path("Resources/Icon/user_dark.png") |
| str | ICON_USER_EDIT_DARK = resource_path("Resources/Icon/user_edit_dark.png") |
| str | ICON_USER_EDIT_LIGHT = resource_path("Resources/Icon/user_edit_light.png") |
| str | ICON_USER_EXPORT_DARK = resource_path("Resources/Icon/user_export_dark.png") |
| str | ICON_USER_EXPORT_LIGHT = resource_path("Resources/Icon/user_export_light.png") |
| str | ICON_USER_IMPORT_DARK = resource_path("Resources/Icon/user_import_dark.png") |
| str | ICON_USER_IMPORT_LIGHT = resource_path("Resources/Icon/user_import_light.png") |
| str | ICON_USER_LIGHT = resource_path("Resources/Icon/user_light.png") |
| str | ICON_USER_RESET_DARK = resource_path("Resources/Icon/user_reset_dark.png") |
| str | ICON_USER_RESET_LIGHT = resource_path("Resources/Icon/user_reset_light.png") |
| str | IMG_SPLASH = resource_path("Resources/splash.gif") |
| item_key = str(i + 1) | |
| int | ITEM_NUMBER_COLUMN_MIN = 5 |
| list | L_ALLOWED_USER = L_CONFIG_USER + L_SELL_USER + L_ORDER_USER |
| list | L_CONFIG_USER = [EUser.ADMIN, EUser.HOST] |
| list | L_DEVICE = ["Device", "System"] |
| list | L_GROUP = ["Group", "Gruppe"] |
| list | L_ORDER_USER = [EUser.B + str(i) for i in range(1, I_NUMBER_OF_SALES)] |
| list | L_PRINT_FILE_HEADER = ["Count", "Article Name", "Article Number", "Group", "Total Price", "User", "Date", "Printer"] |
| list | L_SELL_USER = [EUser.LOCAL, EUser.FREE] |
| str | LOCKED_USER_PW = "Locked" |
| log = logging.getLogger(__title__) | |
| str | RESET_CODE = b"" |
| str | S_AUTO_OPEN = "auto_open" |
| str | S_BACKGROUND = "bg" |
| str | S_BREAK_LINE = "\\n" |
| str | S_DATE_PRINT_FORMAT = "%Y/%m/%d %H:%M:%S" |
| str | S_DEFAULT_AUTO_OPEN = "True" |
| S_DEFAULT_COM_PORT = None | |
| str | S_DEFAULT_FREE_AUTO_LOGOUT = "True" |
| str | S_DEFAULT_LAST_PATH = "./" |
| str | S_DEFAULT_OUTPUT_FOLDER = "BonPrinter" |
| str | S_DEFAULT_OUTPUT_PATH = str(Path.home()) + "/" + S_DEFAULT_OUTPUT_FOLDER |
| str | S_DEFAULT_PRICE = "9.00" |
| str | S_DEFAULT_PRINT_ARTICLE = "True" |
| str | S_DEFAULT_PRINT_FREE_PRICE = "True" |
| str | S_DEFAULT_UPDATE_VERSION = "0.0.0" |
| str | S_DEFAULT_USER_PW = LOCKED_USER_PW |
| str | S_DEVICE = "device" |
| str | S_FREE_AUTO_LOGOUT = "free_auto_logout" |
| str | S_GENERAL = "General" |
| str | S_GROUP = "tax_group" |
| str | S_GROUP_1 = "group1" |
| str | S_GROUP_2 = "group2" |
| str | S_GROUP_3 = "group3" |
| str | S_HEADER = "Header" |
| str | S_HEADER_1 = "header1" |
| str | S_HEADER_2 = "header2" |
| str | S_KEY_GEOMETRY = "window_geometry" |
| str | S_KEY_ITEMS = "ITEMS" |
| str | S_KEY_LANGUAGE = "language" |
| str | S_KEY_LAST_DIR_PATH = "last_dir" |
| str | S_KEY_OUTPUT_PATH = "output_path" |
| str | S_KEY_PAPER_WIDTH = "paper_width" |
| str | S_KEY_PRINT_REPORT = "print_report" |
| str | S_KEY_PRINTER_COM_PORT = "com_port" |
| str | S_KEY_SHOW_PRICE = "show_price" |
| str | S_KEY_SOUND = "sound" |
| str | S_KEY_STATE = "window_state" |
| str | S_KEY_THEME = "darkmode" |
| str | S_KEY_UPDATE_VERSION = "update_version" |
| str | S_KEY_USERS = "USERS" |
| str | S_KEY_VERBOSITY = "verbosity" |
| str | S_MARK = "mark" |
| str | S_NAME = "name" |
| str | S_PRICE = "price" |
| str | S_PRINT = "print" |
| str | S_PRINT_ARTICLE = "print_article" |
| str | S_PRINT_FREE_PRICE = "print_free_price" |
| str | S_PRINTS = "Prints" |
| str | S_PW = "pw" |
| str | S_SECTION_CONFIGURATION = "CONFIGURATION" |
| str | S_SECTION_PRINTER = "PRINTER" |
| str | S_SECTION_SALES = "SALES" |
| str | S_SECTION_SETTINGS = "SETTINGS" |
| str | S_SOUND_CASH_PATH = resource_path("Resources/Sound/cash.wav") |
| str | S_SOUND_CLEAR_PATH = resource_path("Resources/Sound/clear.wav") |
| str | S_SOUND_TOUCH_PATH = resource_path("Resources/Sound/touch.wav") |
| str | S_SOUND_UNLOCK_PATH = resource_path("Resources/Sound/unlock.wav") |
| str | S_TAX = "Tax" |
| str | S_UNIT = "EUR" |
| str | S_UNIT_SYMBOL = "€" |
| str | S_USER_TAX = "user" |
| str | S_USER_TIMEOUT = "timeout" |
| str | S_USER_VISIBLE = "user_visible" |
| settings_handle = SETTINGS(COMPANY_NAME, APP_NAME) | |
| str | user_key = f"{EUser.B.value}{i + 1}" |
| bool check_serial_device | ( | str | s_com_port | ) |
Check if serial device is present at this COM port.
| s_com_port | : COM port to check |
Definition at line 121 of file app_data.py.
| None clear_settings | ( | ) |
Clear registry settings to write defaults at next startup.
Definition at line 444 of file app_data.py.
| str get_computer_name | ( | ) |
Get computer name.
Definition at line 97 of file app_data.py.
| dict[str, dict[str, str]] get_default_item_config | ( | Optional[str] | s_deposit_name = None | ) |
Get default article configuration depend on deposit name.
| s_deposit_name | : name of deposit |
Definition at line 434 of file app_data.py.
| Any get_registry_value | ( | SETTINGS | handle, |
| str | s_key, | ||
| bool | b_none_err = True ) |
Reads the registry value with given handle and key.
| handle | : settings handle |
| s_key | : get value for this key |
| b_none_err | : [True] call error if None in setting [False] allowed None as setting |
Definition at line 465 of file app_data.py.
| list[ListPortInfo] get_serial_ports | ( | ) |
Check if serial device is present at this COM port.
Definition at line 138 of file app_data.py.
| SETTINGS get_settings_handle | ( | ) |
Returns the settings handle.
Definition at line 457 of file app_data.py.
| None open_explorer | ( | str | explorer_path, |
| bool | b_open_input = False ) |
Open explorer.
| explorer_path | : path to open |
| b_open_input | : open explorer into folder |
Definition at line 109 of file app_data.py.
| dict[str, Any] read_articles_settings | ( | ) |
Reads the articles settings from persistent storage.
Definition at line 595 of file app_data.py.
| str | None read_com_port_settings | ( | ) |
Reads the COM port settings from persistent storage.
Definition at line 623 of file app_data.py.
| ELanguages read_language | ( | ) |
Reads the language from persistent storage.
Definition at line 741 of file app_data.py.
| str read_last_dir | ( | ) |
Reads the last directory from persistent storage.
Definition at line 861 of file app_data.py.
| str read_output_path_settings | ( | ) |
Reads the output path settings from persistent storage.
Definition at line 682 of file app_data.py.
| int read_paper_width_settings | ( | ) |
Reads the paper width settings from persistent storage.
Definition at line 654 of file app_data.py.
| bool read_print_report_settings | ( | ) |
Reads the print report status from persistent storage.
Definition at line 889 of file app_data.py.
| list[float] read_sales | ( | ) |
Reads the sales from persistent storage.
Definition at line 519 of file app_data.py.
| bool read_show_price_settings | ( | ) |
Reads the show price status from persistent storage.
Definition at line 917 of file app_data.py.
| bool read_sound_settings | ( | ) |
Reads the sound settings from persistent storage.
Definition at line 490 of file app_data.py.
| ETheme read_theme_settings | ( | ) |
Reads the theme settings from persistent storage.
Definition at line 712 of file app_data.py.
| str read_update_version | ( | ) |
Reads the last reminded tool version from persistent storage.
Definition at line 833 of file app_data.py.
| dict[str, Any] read_user_settings | ( | ) |
Reads the user settings from persistent storage.
Definition at line 561 of file app_data.py.
| int read_verbosity_settings | ( | ) |
Reads the verbosity settings from persistent storage.
Definition at line 774 of file app_data.py.
| tuple[BYTE_ARRAY, BYTE_ARRAY] read_window_state | ( | ) |
Reads the window geometry and state from persistent storage.
Definition at line 804 of file app_data.py.
| tuple[bool, bool | None] reset_config_dialog | ( | "MainWindow | None" | ui | ) |
Show reset configuration dialog.
Enter reset PW to reset configuration.
| ui | : main window controller |
Definition at line 76 of file app_data.py.
| str resource_path | ( | str | s_relative_path | ) |
Returns the absolute path to a resource given by a relative path depending on the environment (EXE or Python)
| s_relative_path | : the relative path to a file or directory |
Definition at line 36 of file app_data.py.
| None save_window_state | ( | BYTE_ARRAY | o_geometry, |
| BYTE_ARRAY | o_state ) |
Saves the window state to persistent storage.
| o_geometry | : geometry (position, size) of the window as QByteArray |
| o_state | : state (dock widgets etc.) of the window as QByteArray |
Definition at line 791 of file app_data.py.
| None thread_loop | ( | Any | obj, |
| str | thread_name ) |
loop for threads.
| obj | : object of thread class |
| thread_name | : thread name |
Definition at line 52 of file app_data.py.
| None write_articles_settings | ( | dict[str, dict[str, str]] | d_articles | ) |
Writes the articles settings to persistent storage.
| d_articles | : articles dictionary |
Definition at line 584 of file app_data.py.
| None write_com_port_settings | ( | str | s_com_port | ) |
Writes the COM port settings to persistent storage.
| s_com_port | : COM port |
Definition at line 612 of file app_data.py.
| None write_language | ( | ELanguages | e_language | ) |
Writes the language to persistent storage.
| e_language | : current language |
Definition at line 730 of file app_data.py.
| None write_last_dir | ( | str | dir_path | ) |
Writes the last directory to persistent storage.
| dir_path | : directory path |
Definition at line 850 of file app_data.py.
| None write_output_path_settings | ( | str | s_output_path | ) |
Writes the output path settings to persistent storage.
| s_output_path | : output path |
Definition at line 671 of file app_data.py.
| None write_paper_width_settings | ( | int | i_paper_width | ) |
Writes the paper width settings to persistent storage.
| i_paper_width | : paper width |
Definition at line 643 of file app_data.py.
| None write_print_report_settings | ( | bool | b_print_report | ) |
Writes the print report settings to persistent storage.
| b_print_report | : enable print report status |
Definition at line 878 of file app_data.py.
| None write_sales | ( | int | i_user_pos, |
| float | f_sales ) |
Writes the sales to persistent storage.
| i_user_pos | : user position to write sales |
| f_sales | : sales value to save |
Definition at line 507 of file app_data.py.
| None write_show_price_settings | ( | bool | b_show_price | ) |
Writes the show price settings to persistent storage.
| b_show_price | : show price status |
Definition at line 906 of file app_data.py.
| None write_sound_settings | ( | bool | b_sound_status | ) |
Writes the sound settings to persistent storage.
| b_sound_status | : sound status |
Definition at line 479 of file app_data.py.
| None write_theme_settings | ( | ETheme | e_theme | ) |
Writes the theme settings to persistent storage.
| e_theme | : current theme |
Definition at line 701 of file app_data.py.
| None write_update_version | ( | str | version | ) |
Writes the last reminded tool version for update to persistent storage.
| version | : last reminded version |
Definition at line 822 of file app_data.py.
| None write_user_settings | ( | dict[str, dict[str, str]] | d_user | ) |
Writes the user settings to persistent storage.
Passwords are stored encrypted. This encryption is carried out via the Windows Data Protection API (DPAPI), which enables user and machine-specific encryption.
| d_user | : user dictionary |
Definition at line 541 of file app_data.py.
| None write_verbosity_settings | ( | int | i_log_level | ) |
Writes the verbosity settings to persistent storage.
| i_log_level | : log verbosity |
Definition at line 763 of file app_data.py.
| str APP_NAME = "<APP_NAME>" |
Definition at line 228 of file app_data.py.
| bool B_DEFAULT_PRINT_REPORT = True |
Definition at line 282 of file app_data.py.
| bool B_DEFAULT_SHOW_PRICE = True |
Definition at line 280 of file app_data.py.
| bool B_DEFAULT_SOUND = True |
Definition at line 278 of file app_data.py.
| str COMPANY_NAME = "<COMPANY_NAME>" |
Definition at line 227 of file app_data.py.
| dict D_DEFAULT_ITEM |
Definition at line 413 of file app_data.py.
| dict D_DEFAULT_USER |
Definition at line 396 of file app_data.py.
| dict D_ITEM_NUMBER_COLUMN |
Definition at line 365 of file app_data.py.
| dict D_ITEM_NUMBER_ROW |
Definition at line 357 of file app_data.py.
| str DEFAULT_CODE = "1234" |
Definition at line 332 of file app_data.py.
| E_DEFAULT_LANGUAGE = ELanguages.ENGLISH |
Definition at line 286 of file app_data.py.
| E_DEFAULT_THEME = ETheme.AUTO |
Definition at line 284 of file app_data.py.
| float F_DEFAULT_SALES = 0.0 |
Definition at line 336 of file app_data.py.
| str HELP_PATH = resource_path("Resources/Help/") |
Definition at line 218 of file app_data.py.
| I_DEFAULT_PAPER_WIDTH = EPaper.WIDTH_58_MM.value |
Definition at line 274 of file app_data.py.
| int I_DEFAULT_USER_TIMEOUT = 15 |
Definition at line 343 of file app_data.py.
| int I_DEFAULT_WIN_HEIGHT = 450 |
Definition at line 301 of file app_data.py.
| int I_DEFAULT_WIN_WIDTH = 720 |
Definition at line 300 of file app_data.py.
| int I_GROUP_1 = 1 |
Definition at line 374 of file app_data.py.
| int I_GROUP_2 = 2 |
Definition at line 375 of file app_data.py.
| int I_GROUP_3 = 3 |
Definition at line 376 of file app_data.py.
| I_ITEM_ARRAY_SIZE = ItemNumber.MAX |
Definition at line 371 of file app_data.py.
| I_LOG_LEVEL_DEFAULT = logging.WARNING |
Definition at line 288 of file app_data.py.
| int I_NUMBER_OF_DISPLAYED_USER = 15 |
Definition at line 372 of file app_data.py.
| int I_NUMBER_OF_SALES = 101 |
Definition at line 335 of file app_data.py.
| str ICON_APP = resource_path(ICON_APP_PATH) |
Definition at line 156 of file app_data.py.
| str ICON_APP_FAVICON_PATH = "Resources/favicon.ico" |
Definition at line 155 of file app_data.py.
| str ICON_APP_PATH = "Resources/app.ico" |
Definition at line 154 of file app_data.py.
| str ICON_ARTICLES_DARK = resource_path("Resources/Icon/articles_dark.png") |
Definition at line 185 of file app_data.py.
| str ICON_ARTICLES_EDIT_DARK = resource_path("Resources/Icon/articles_edit_dark.png") |
Definition at line 187 of file app_data.py.
| str ICON_ARTICLES_EDIT_LIGHT = resource_path("Resources/Icon/articles_edit_light.png") |
Definition at line 186 of file app_data.py.
| str ICON_ARTICLES_EXPORT_DARK = resource_path("Resources/Icon/articles_export_dark.png") |
Definition at line 191 of file app_data.py.
| str ICON_ARTICLES_EXPORT_LIGHT = resource_path("Resources/Icon/articles_export_light.png") |
Definition at line 190 of file app_data.py.
| str ICON_ARTICLES_IMPORT_DARK = resource_path("Resources/Icon/articles_import_dark.png") |
Definition at line 189 of file app_data.py.
| str ICON_ARTICLES_IMPORT_LIGHT = resource_path("Resources/Icon/articles_import_light.png") |
Definition at line 188 of file app_data.py.
| str ICON_ARTICLES_LIGHT = resource_path("Resources/Icon/articles_light.png") |
Definition at line 184 of file app_data.py.
| str ICON_ARTICLES_RESET_DARK = resource_path("Resources/Icon/articles_reset_dark.png") |
Definition at line 193 of file app_data.py.
| str ICON_ARTICLES_RESET_LIGHT = resource_path("Resources/Icon/articles_reset_light.png") |
Definition at line 192 of file app_data.py.
| str ICON_CHANGE_FOLDER_DARK = resource_path("Resources/Icon/change_folder_dark.png") |
Definition at line 195 of file app_data.py.
| str ICON_CHANGE_FOLDER_LIGHT = resource_path("Resources/Icon/change_folder_light.png") |
Definition at line 194 of file app_data.py.
| str ICON_COMBINE_DARK = resource_path("Resources/Icon/combine_dark.png") |
Definition at line 166 of file app_data.py.
| str ICON_COMBINE_LIGHT = resource_path("Resources/Icon/combine_light.png") |
Definition at line 165 of file app_data.py.
| str ICON_HELP_DARK = resource_path("Resources/Icon/help_dark.png") |
Definition at line 215 of file app_data.py.
| str ICON_HELP_LIGHT = resource_path("Resources/Icon/help_light.png") |
Definition at line 214 of file app_data.py.
| str ICON_LANGUAGE_DARK = resource_path("Resources/Icon/language_dark.png") |
Definition at line 208 of file app_data.py.
| str ICON_LANGUAGE_ENGLISH = resource_path("Resources/Icon/language_english.png") |
Definition at line 209 of file app_data.py.
| str ICON_LANGUAGE_GERMAN = resource_path("Resources/Icon/language_german.png") |
Definition at line 210 of file app_data.py.
| str ICON_LANGUAGE_LIGHT = resource_path("Resources/Icon/language_light.png") |
Definition at line 207 of file app_data.py.
| str ICON_LOCK_DARK = resource_path("Resources/Icon/lock_dark.png") |
Definition at line 158 of file app_data.py.
| str ICON_LOCK_LIGHT = resource_path("Resources/Icon/lock_light.png") |
Definition at line 157 of file app_data.py.
| str ICON_LOG_DARK = resource_path("Resources/Icon/log_dark.png") |
Definition at line 212 of file app_data.py.
| str ICON_LOG_LIGHT = resource_path("Resources/Icon/log_light.png") |
Definition at line 211 of file app_data.py.
| str ICON_OPEN_FOLDER_DARK = resource_path("Resources/Icon/open_folder_dark.png") |
Definition at line 164 of file app_data.py.
| str ICON_OPEN_FOLDER_LIGHT = resource_path("Resources/Icon/open_folder_light.png") |
Definition at line 163 of file app_data.py.
| str ICON_PAPER_DARK = resource_path("Resources/Icon/paper_dark.png") |
Definition at line 199 of file app_data.py.
| str ICON_PAPER_LIGHT = resource_path("Resources/Icon/paper_light.png") |
Definition at line 198 of file app_data.py.
| str ICON_PRINT_FILE_DARK = resource_path("Resources/Icon/print_file_dark.png") |
Definition at line 168 of file app_data.py.
| str ICON_PRINT_FILE_LIGHT = resource_path("Resources/Icon/print_file_light.png") |
Definition at line 167 of file app_data.py.
| str ICON_PRINT_PREVIEW_DARK = resource_path("Resources/Icon/print_preview_dark.png") |
Definition at line 170 of file app_data.py.
| str ICON_PRINT_PREVIEW_LIGHT = resource_path("Resources/Icon/print_preview_light.png") |
Definition at line 169 of file app_data.py.
| str ICON_PRINTER_DARK = resource_path("Resources/Icon/printer_dark.png") |
Definition at line 197 of file app_data.py.
| str ICON_PRINTER_LIGHT = resource_path("Resources/Icon/printer_light.png") |
Definition at line 196 of file app_data.py.
| str ICON_REPORT_DARK = resource_path("Resources/Icon/report_dark.png") |
Definition at line 172 of file app_data.py.
| str ICON_REPORT_LIGHT = resource_path("Resources/Icon/report_light.png") |
Definition at line 171 of file app_data.py.
| str ICON_RESET_DARK = resource_path("Resources/Icon/reset_dark.png") |
Definition at line 217 of file app_data.py.
| str ICON_RESET_LIGHT = resource_path("Resources/Icon/reset_light.png") |
Definition at line 216 of file app_data.py.
| str ICON_SOUND_DARK = resource_path("Resources/Icon/sound_dark.png") |
Definition at line 202 of file app_data.py.
| str ICON_SOUND_LIGHT = resource_path("Resources/Icon/sound_light.png") |
Definition at line 201 of file app_data.py.
| str ICON_SOUND_MUTE_DARK = resource_path("Resources/Icon/sound_mute_dark.png") |
Definition at line 204 of file app_data.py.
| str ICON_SOUND_MUTE_LIGHT = resource_path("Resources/Icon/sound_mute_light.png") |
Definition at line 203 of file app_data.py.
| str ICON_STATUS_DARK = resource_path("Resources/Icon/status_dark.png") |
Definition at line 162 of file app_data.py.
| str ICON_STATUS_LIGHT = resource_path("Resources/Icon/status_light.png") |
Definition at line 161 of file app_data.py.
| str ICON_THEME_DARK = resource_path("Resources/Icon/theme_dark.png") |
Definition at line 206 of file app_data.py.
| str ICON_THEME_LIGHT = resource_path("Resources/Icon/theme_light.png") |
Definition at line 205 of file app_data.py.
| str ICON_USER_DARK = resource_path("Resources/Icon/user_dark.png") |
Definition at line 175 of file app_data.py.
| str ICON_USER_EDIT_DARK = resource_path("Resources/Icon/user_edit_dark.png") |
Definition at line 177 of file app_data.py.
| str ICON_USER_EDIT_LIGHT = resource_path("Resources/Icon/user_edit_light.png") |
Definition at line 176 of file app_data.py.
| str ICON_USER_EXPORT_DARK = resource_path("Resources/Icon/user_export_dark.png") |
Definition at line 181 of file app_data.py.
| str ICON_USER_EXPORT_LIGHT = resource_path("Resources/Icon/user_export_light.png") |
Definition at line 180 of file app_data.py.
| str ICON_USER_IMPORT_DARK = resource_path("Resources/Icon/user_import_dark.png") |
Definition at line 179 of file app_data.py.
| str ICON_USER_IMPORT_LIGHT = resource_path("Resources/Icon/user_import_light.png") |
Definition at line 178 of file app_data.py.
| str ICON_USER_LIGHT = resource_path("Resources/Icon/user_light.png") |
Definition at line 174 of file app_data.py.
| str ICON_USER_RESET_DARK = resource_path("Resources/Icon/user_reset_dark.png") |
Definition at line 183 of file app_data.py.
| str ICON_USER_RESET_LIGHT = resource_path("Resources/Icon/user_reset_light.png") |
Definition at line 182 of file app_data.py.
| str IMG_SPLASH = resource_path("Resources/splash.gif") |
Definition at line 159 of file app_data.py.
| item_key = str(i + 1) |
Definition at line 423 of file app_data.py.
| int ITEM_NUMBER_COLUMN_MIN = 5 |
Definition at line 363 of file app_data.py.
| list L_ALLOWED_USER = L_CONFIG_USER + L_SELL_USER + L_ORDER_USER |
Definition at line 394 of file app_data.py.
| list L_CONFIG_USER = [EUser.ADMIN, EUser.HOST] |
Definition at line 391 of file app_data.py.
| list L_DEVICE = ["Device", "System"] |
Definition at line 267 of file app_data.py.
| list L_GROUP = ["Group", "Gruppe"] |
Definition at line 266 of file app_data.py.
| list L_ORDER_USER = [EUser.B + str(i) for i in range(1, I_NUMBER_OF_SALES)] |
Definition at line 393 of file app_data.py.
| list L_PRINT_FILE_HEADER = ["Count", "Article Name", "Article Number", "Group", "Total Price", "User", "Date", "Printer"] |
Definition at line 265 of file app_data.py.
| list L_SELL_USER = [EUser.LOCAL, EUser.FREE] |
Definition at line 392 of file app_data.py.
| str LOCKED_USER_PW = "Locked" |
Definition at line 329 of file app_data.py.
| log = logging.getLogger(__title__) |
Definition at line 33 of file app_data.py.
| str RESET_CODE = b"" |
Definition at line 331 of file app_data.py.
| str S_AUTO_OPEN = "auto_open" |
Definition at line 341 of file app_data.py.
| str S_BACKGROUND = "bg" |
Definition at line 325 of file app_data.py.
| str S_BREAK_LINE = "\\n" |
Definition at line 261 of file app_data.py.
| str S_DATE_PRINT_FORMAT = "%Y/%m/%d %H:%M:%S" |
Definition at line 264 of file app_data.py.
| str S_DEFAULT_AUTO_OPEN = "True" |
Definition at line 344 of file app_data.py.
| S_DEFAULT_COM_PORT = None |
Definition at line 272 of file app_data.py.
| str S_DEFAULT_FREE_AUTO_LOGOUT = "True" |
Definition at line 345 of file app_data.py.
| str S_DEFAULT_LAST_PATH = "./" |
Definition at line 295 of file app_data.py.
| str S_DEFAULT_OUTPUT_FOLDER = "BonPrinter" |
Definition at line 290 of file app_data.py.
| str S_DEFAULT_OUTPUT_PATH = str(Path.home()) + "/" + S_DEFAULT_OUTPUT_FOLDER |
Definition at line 291 of file app_data.py.
| str S_DEFAULT_PRICE = "9.00" |
Definition at line 328 of file app_data.py.
| str S_DEFAULT_PRINT_ARTICLE = "True" |
Definition at line 316 of file app_data.py.
| str S_DEFAULT_PRINT_FREE_PRICE = "True" |
Definition at line 318 of file app_data.py.
| str S_DEFAULT_UPDATE_VERSION = "0.0.0" |
Definition at line 293 of file app_data.py.
| str S_DEFAULT_USER_PW = LOCKED_USER_PW |
Definition at line 330 of file app_data.py.
| str S_DEVICE = "device" |
Definition at line 339 of file app_data.py.
| str S_FREE_AUTO_LOGOUT = "free_auto_logout" |
Definition at line 342 of file app_data.py.
| str S_GENERAL = "General" |
Definition at line 338 of file app_data.py.
| str S_GROUP = "tax_group" |
Definition at line 321 of file app_data.py.
| str S_GROUP_1 = "group1" |
Definition at line 311 of file app_data.py.
| str S_GROUP_2 = "group2" |
Definition at line 312 of file app_data.py.
| str S_GROUP_3 = "group3" |
Definition at line 313 of file app_data.py.
| str S_HEADER = "Header" |
Definition at line 307 of file app_data.py.
| str S_HEADER_1 = "header1" |
Definition at line 308 of file app_data.py.
| str S_HEADER_2 = "header2" |
Definition at line 309 of file app_data.py.
| str S_KEY_GEOMETRY = "window_geometry" |
Definition at line 298 of file app_data.py.
| str S_KEY_ITEMS = "ITEMS" |
Definition at line 305 of file app_data.py.
| str S_KEY_LANGUAGE = "language" |
Definition at line 285 of file app_data.py.
| str S_KEY_LAST_DIR_PATH = "last_dir" |
Definition at line 294 of file app_data.py.
| str S_KEY_OUTPUT_PATH = "output_path" |
Definition at line 289 of file app_data.py.
| str S_KEY_PAPER_WIDTH = "paper_width" |
Definition at line 273 of file app_data.py.
| str S_KEY_PRINT_REPORT = "print_report" |
Definition at line 281 of file app_data.py.
| str S_KEY_PRINTER_COM_PORT = "com_port" |
Definition at line 271 of file app_data.py.
| str S_KEY_SHOW_PRICE = "show_price" |
Definition at line 279 of file app_data.py.
| str S_KEY_SOUND = "sound" |
Definition at line 277 of file app_data.py.
| str S_KEY_STATE = "window_state" |
Definition at line 299 of file app_data.py.
| str S_KEY_THEME = "darkmode" |
Definition at line 283 of file app_data.py.
| str S_KEY_UPDATE_VERSION = "update_version" |
Definition at line 292 of file app_data.py.
| str S_KEY_USERS = "USERS" |
Definition at line 304 of file app_data.py.
| str S_KEY_VERBOSITY = "verbosity" |
Definition at line 287 of file app_data.py.
| str S_MARK = "mark" |
Definition at line 324 of file app_data.py.
| str S_NAME = "name" |
Definition at line 319 of file app_data.py.
| str S_PRICE = "price" |
Definition at line 320 of file app_data.py.
| str S_PRINT = "print" |
Definition at line 323 of file app_data.py.
| str S_PRINT_ARTICLE = "print_article" |
Definition at line 315 of file app_data.py.
| str S_PRINT_FREE_PRICE = "print_free_price" |
Definition at line 317 of file app_data.py.
| str S_PRINTS = "Prints" |
Definition at line 326 of file app_data.py.
| str S_PW = "pw" |
Definition at line 327 of file app_data.py.
| str S_SECTION_CONFIGURATION = "CONFIGURATION" |
Definition at line 303 of file app_data.py.
| str S_SECTION_PRINTER = "PRINTER" |
Definition at line 270 of file app_data.py.
| str S_SECTION_SALES = "SALES" |
Definition at line 334 of file app_data.py.
| str S_SECTION_SETTINGS = "SETTINGS" |
Definition at line 276 of file app_data.py.
| str S_SOUND_CASH_PATH = resource_path("Resources/Sound/cash.wav") |
Definition at line 220 of file app_data.py.
| str S_SOUND_CLEAR_PATH = resource_path("Resources/Sound/clear.wav") |
Definition at line 221 of file app_data.py.
| str S_SOUND_TOUCH_PATH = resource_path("Resources/Sound/touch.wav") |
Definition at line 222 of file app_data.py.
| str S_SOUND_UNLOCK_PATH = resource_path("Resources/Sound/unlock.wav") |
Definition at line 223 of file app_data.py.
| str S_TAX = "Tax" |
Definition at line 310 of file app_data.py.
| str S_UNIT = "EUR" |
Definition at line 259 of file app_data.py.
| str S_UNIT_SYMBOL = "€" |
Definition at line 260 of file app_data.py.
| str S_USER_TAX = "user" |
Definition at line 314 of file app_data.py.
| str S_USER_TIMEOUT = "timeout" |
Definition at line 340 of file app_data.py.
| str S_USER_VISIBLE = "user_visible" |
Definition at line 322 of file app_data.py.
| settings_handle = SETTINGS(COMPANY_NAME, APP_NAME) |
Definition at line 229 of file app_data.py.
| str user_key = f"{EUser.B.value}{i + 1}" |
Definition at line 408 of file app_data.py.