BonPrinter v1.2.0
Thermal Printer tool
Loading...
Searching...
No Matches
Source.Controller.splash_screen Namespace Reference

Functions

DIALOG create_splash_screen ()
 Create splash screen.

Variables

float F_MIN_SPLASH_SCREEN_TIME = 2.0

Detailed Description


Function Documentation

◆ create_splash_screen()

DIALOG create_splash_screen ( )

Create splash screen.

Returns
splash screen dialog

Definition at line 15 of file splash_screen.py.

15def create_splash_screen() -> DIALOG:
16 """!
17 @brief Create splash screen
18 @return splash screen dialog
19 """
20 splash = create_dialog(None, frameless=True)
21 ui_splash = SPLASH_SCREEN()
22 ui_splash.setupUi(splash)
23 config_icon(ui_splash.lbl_icon_placeholder, icon=IMG_SPLASH, icon_size=(800, 514))
24 # set color black anyway to be visible on Windows 11
25 config_label(ui_splash.lbl_productName, text=__title__, fg="black")
26 config_label(ui_splash.lbl_software_text, fg="black")
27 config_label(ui_splash.lbl_version_text, fg="black")
28 config_label(ui_splash.lbl_version, text=__version__, fg="black")
29 config_label(ui_splash.lbl_prerelease, show=False)
30 return splash

Variable Documentation

◆ F_MIN_SPLASH_SCREEN_TIME

float F_MIN_SPLASH_SCREEN_TIME = 2.0

Definition at line 12 of file splash_screen.py.