|
BonPrinter v1.2.0
Thermal Printer tool
|
individual GUI toolkit function and selection More...
Go to the source code of this file.
Namespaces | |
| namespace | Source |
| namespace | Source.Util |
| namespace | Source.Util.gui_toolkit |
Functions | |
| bool | check_app_already_open (QSharedMemory shared_memory) |
| Application ##. | |
| None | close_app ("DIALOG | MainWindow" window) |
| Close application. | |
| None | config_app (APPLICATION app, Optional[str] icon=None, Optional[bool] process_events=False) |
| Configure Application. | |
| None | config_btn (QPushButton btn, Optional[bool] enable=None, Optional[bool] show=None, Optional[str] text=None, Optional[str] fg=None, Optional[str] bg=None, Optional[str] style=None, Optional[str] icon=None, Optional[tuple[int, int, int, int]] size=None, Optional[QFont] font=None, Optional[int] icon_size=None) |
| Configure button. | |
| None | config_icon (QLabel widget, Optional[str] icon=None, Optional[tuple[int, int]] icon_size=None) |
| Other ##. | |
| None | config_label (QLabel label, Optional[str] text=None, Optional[str] fg=None, Optional[str] bg=None, Optional[tuple[int, int, int, int]] size=None, Optional[QFont] font=None, bool central=False, Optional[str] open_link=None, Optional[bool] show=None) |
| Label ##. | |
| None | config_menu (QMenu|QAction menu, Optional[bool] enable=None, Optional[bool] show=None, Optional[str] text=None, Optional[bool] checked=None, Optional[str] icon=None) |
| Configure menu. | |
| None | config_statusbar (QStatusBar statusbar, Optional[QLabel] lbl_left=None, Optional[QLabel] lbl_right=None, Optional[str] text=None, Optional[str] fg=None, Optional[str] bg=None) |
| Status bar ##. | |
| None | config_tab (QTextBrowser|None tab, Optional[int] tab_index=None, Optional[str] text=None, Optional[QTabWidget] main_tab=None, Optional[str] tab_name=None) |
| Select Tab index. | |
| None | config_table (QTableWidget table, bool clear_selection=False, Optional[bool] single_row_selection=None, Optional[list[str]] row_description=None, Optional[QFont] font=None, Optional[tuple[int, int, int, int]] size=None, Optional[int] min_section_size=None, Optional[int] row_count=None, bool auto_size=False) |
| Table ##. | |
| None | config_text (QTextBrowser label, Optional[str] text=None, Optional[str] fg=None, Optional[str] bg=None, Optional[tuple[int, int, int, int]] size=None, Optional[QFont] font=None) |
| Text ##. | |
| None | config_window ("DIALOG | MainWindow" window, Optional[str] title=None, bool frameless=False, Optional[str] icon=None, Optional[bool] fullscreen=None, Optional[int] min_width=None, Optional[int] min_height=None, Optional[QByteArray] geometry=None, Optional[QByteArray] state=None, bool fix_size=False, Optional[tuple[int, int]] resize=None, Optional[tuple[int, int]] move=None, Optional[str] style=None, Any resize_callback=None, Optional[bool] show=None, Optional[bool] thread=False) |
| Window ##. | |
| None | connect_button (QPushButton btn, Any clicked_fnc=None, Any pressed_fnc=None, Any released_fnc=None, Any index="") |
| Button ##. | |
| None | connect_menu (QMenu|QAction menu, Any function, Any index="") |
| Connect menu. | |
| None | connect_signal (SIGNAL_BOUND signal, Any function) |
| Connect signal. | |
| None | copy_to_clipboard (str text) |
| Clipboard ##. | |
| DIALOG | create_dialog ("MainWindow | None" parent, Optional[str] icon=None, bool minmax=False, bool frameless=False) |
| Dialogs ##. | |
| QFont | create_font (Any font_style, int font_size) |
| Create font. | |
| pygame.mixer.Sound | create_sound (str sound_path) |
| Sound ##. | |
| QTimer | create_timer (QWidget parent, Any callback=None) |
| Timer ##. | |
| None | disconnect_signal (SIGNAL_BOUND signal) |
| Disconnect signal. | |
| None | emit_signal (SIGNAL_BOUND signal) |
| Emit signal. | |
| None | filter_menubar (QMenuBar menubar, WINDOW_TYPE gui) |
| Menu ##. | |
| str | get_btn_text (QPushButton btn) |
| Get button text. | |
| bool | get_fullscreen_status (WINDOW_TYPE window) |
| Get fullscreen status. | |
| str | get_menu_text (QAction menu) |
| Get text from menu. | |
| int|None | get_selected_table_column (QTableWidget table) |
| Get selected table column. | |
| int|None | get_selected_table_row (QTableWidget table) |
| Get selected table row. | |
| str | get_style (bool dark_mode=False) |
| Get Style. | |
| str | get_stylesheet (Any widget) |
| Create Stylesheet. | |
| str | get_text (QTextBrowser label) |
| Configure text. | |
| BYTE_ARRAY | get_window_geometry (WINDOW_TYPE window) |
| Get window geometry for safe. | |
| tuple[int, int] | get_window_position ("MainWindow | QDialog" window) |
| Get window position. | |
| tuple[int, int] | get_window_size ("MainWindow | QDialog" window) |
| Get window size. | |
| BYTE_ARRAY | get_window_state (WINDOW_TYPE window) |
| Get window state for safe. | |
| tuple[QActionGroup, bool] | group_available_menu ("MainWindow" parent, list[QAction] l_actions, Any actual_value, list[Any] l_match_values, QAction none_action) |
| Set action group. | |
| QActionGroup | group_menu ("MainWindow" parent, list[QAction] l_actions, Any actual_value, list[Any] l_match_values) |
| Set action group. | |
| tuple[str, bool] | input_dialog ("MainWindow | None" parent, str title, str label, str default_input="", bool show_input=True, bool password_input=False, Optional[str] icon=None) |
| Open input dialog. | |
| None | insert_table_item (QTableWidget table, int i_entry_index, list[str] l_item_param, Optional[QFont] font=None, Optional[str] fg=None, Optional[str] bg=None) |
| Insert table item. | |
| str | open_directory ("MainWindow" parent, str title, str|None directory) |
| Open directory. | |
| str|list[str] | open_file ("MainWindow" parent, str title, Optional[str] directory=None, Optional[tuple[str, str]] filetypes=None, bool multiple=False) |
| Open file. | |
| tuple[bool, bool] | open_message_box ("MainWindow | None" parent, str title, str text, Optional[str] btn_yes=None, Optional[str] btn_no=None, Optional[str] btn_ok=None, Optional[str] btn_close=None, Optional[str] btn_cancel=None, Optional[str] btn_special=None, Optional[str] check_box=None, Optional[str] window_icon=None, Optional[str] detailed_text=None, bool execute=True) |
| Open message box. | |
| None | run_app ("APPLICATION | DIALOG | MainWindow" window, Optional[APPLICATION|DIALOG] app, bool close_event=False) |
| Run application. | |
| str | save_file ("MainWindow" parent, str title, str directory, tuple[str, str] filetypes) |
| Save file. | |
Variables | |
| ABOUT_DIALOG = Ui_AboutDialog | |
| ACTION = QAction | |
| APPLICATION = QApplication | |
| ARTICLE_SIZE_DIALOG = Ui_ArticleSizeDialog | |
| BUTTON = QPushButton | |
| BYTE_ARRAY = QByteArray | |
| CLOSE_EVENT = QCloseEvent | |
| DIALOG = QDialog | |
| FONT = QFont | |
| HELP_DIALOG = Ui_HelpDialog | |
| int | I_MENU_BAR_HEIGHT = 30 |
| int | I_MENU_FONT_SIZE = 14 |
| LABEL = QLabel | |
| MAIN_WINDOW = Ui_MainWindow | |
| OBJECT = QObject | |
| REPORT_DIALOG = Ui_ReportDialog | |
| RESIZE_EVENT = QResizeEvent | |
| SETTINGS = QSettings | |
| SHARED_MEMORY = QSharedMemory | |
| SIGNAL = pyqtSignal | |
| SIGNAL_BOUND = pyqtBoundSignal | |
| SPLASH_SCREEN = Ui_SplashScreen | |
| THREAD = QThread | |
| WIDGET = QWidget | |
| WINDOW_TYPE = QMainWindow | |