|
BonPrinter v1.2.0
Thermal Printer tool
|
Sounds for actions. More...
Public Member Functions | |
| None | __init__ (self, "MainWindow" ui) |
| None | update_sound_status (self, Optional[bool] b_sound=None, bool b_update_settings=True) |
| Update sound status. | |
Public Attributes | |
| bool | b_sound = False |
| c_sound_clear = create_sound(S_SOUND_CLEAR_PATH) | |
| c_sound_print = create_sound(S_SOUND_CASH_PATH) | |
| c_sound_touch = create_sound(S_SOUND_TOUCH_PATH) | |
| c_sound_unlock = create_sound(S_SOUND_UNLOCK_PATH) | |
| ui = ui | |
| None __init__ | ( | self, | |
| "MainWindow" | ui ) |
Definition at line 28 of file sound.py.
| None update_sound_status | ( | self, | |
| Optional[bool] | b_sound = None, | ||
| bool | b_update_settings = True ) |
Update sound status.
| b_sound | : [True] sound active; [False] sound muted; [None] toggle actual sound state |
| b_update_settings | : [True] print sound info at status bar; [False] no output on status bar |
Definition at line 36 of file sound.py.