YouTubeDownloader v1.1.2
YouTube content downloader
Loading...
Searching...
No Matches
Source.app Namespace Reference

Functions

MainWindow start_application ()
 Start application.
 

Variables

 log = logging.getLogger(__title__)
 
MainWindow o_window = start_application()
 

Detailed Description


Function Documentation

◆ start_application()

MainWindow start_application ( )

Start application.

Returns
windows and application object

Definition at line 23 of file app.py.

23def start_application() -> MainWindow:
24 """!
25 @brief Start application
26 @return windows and application object
27 """
28 # Set custom application id to show correct icon instead of Python in the task bar
29 try:
30 from ctypes import windll # only exists on windows. # pylint: disable=import-outside-toplevel
31 app_id = __title__ + "." + __version__
32 log.debug("Setting explicit app user model id: %s", app_id)
33 windll.shell32.SetCurrentProcessExplicitAppUserModelID(app_id)
34 except ImportError:
35 pass
36
37 window = MainWindow()
38
39 window.iconbitmap(ICON_APP)
40
41 return window
42
43

Variable Documentation

◆ log

log = logging.getLogger(__title__)

Definition at line 20 of file app.py.

◆ o_window

Definition at line 46 of file app.py.