YA'ifSrSSKJrJrJr SSKJrJr SSKJ r SSK J r SSK J r "SS\5rg ) ze System Tray Icon for Python Scheduler Always visible in Windows taskbar with menu and notifications )QSystemTrayIconQMenu QApplication)QIconQAction)QTimer)logger)SchedulerDatabasecp^\rSrSrSrS\4U4SjjrSrSrSr Sr S \ S \ 4S jr S r S rSrSrU=r$)SchedulerSystemTrayzSystem tray icon with menudbc~>[TU]U5 XlX l[R "5nU(aPUR UR5RUR5RR55 URS5 UR5 URRUR5 [!5UlUR"R$RUR&5 UR"R)S5 [*R,"S5 g)NzPython Scheduler - Runningi'zSystem tray icon initialized)super__init__ parent_windowrrinstancesetIconstyle standardIconStandardPixmapSP_ComputerIcon setToolTip _create_menu activatedconnect _on_activatedr update_timertimeout _update_menustartr info)selfparentrapp __class__s &c:\PYTHON\Scheduler\gui\system_tray.pyrSchedulerSystemTray.__init__s  ###%  LL11#))+2L2L2\2\] ^ 45  t112#H !!))$*;*;< & 23cN[5n[S5UlURRS5 UR UR5 [S5UlUR R RUR5 UR UR 5 [S5Ul URR RUR5 UR UR5 URU5 UR5 g)zCreate context menu Status: ReadyFzOpen DashboardzExit ApplicationN) rr status_action setEnabled addAction open_action triggeredr_show_dashboard exit_action _exit_appsetContextMenur )r#menus r'r SchedulerSystemTray._create_menu*sw%_5 %%e, t))*##34 ""**4+?+?@ t''(##56 ""**4>>: t''( D! r)c.[URR55nUS:a URR SUS35 gURR S5 g![ a#n[ R"SU35 SnAgSnAff=f)zUpdate dynamic menu itemsrzStatus: z job(s) runningr+z!Error updating system tray menu: N)lenrget_active_executionsr,setText Exceptionr error)r# active_countes r'r SchedulerSystemTray._update_menuBs Btww<<>?La""**Xl^?+ST""**?; B LLs r'_update_recent_jobs'SchedulerSystemTray._update_recent_jobsOs   BWW222;F!"89""5)  **73!'I"&"7"7 (8K"LK"-a *0E/FGH$X.F%%e,$$..v6 "( B LLs r'_update_active_jobs'SchedulerSystemTray._update_active_jobsfs   BWW224F#$56 $$U+  **95!'I!%i &;%<=H$X.F%%e,$$..v6 "( B LL5AB>> C+C&&C+rCreturnc6SSSSSS.nURUS5$)zGet status iconu✓u✗u▶u⏱u⛔) completedfailedrunningr cancelled?)get)r#rCiconss r'rI$SchedulerSystemTray._get_status_icon|s-  yy%%r)cbU[RR:XaUR5 gg)zHandle tray icon activationN)rActivationReason DoubleClickr1)r#reasons r'r!SchedulerSystemTray._on_activateds( _55AA A  " Br)c8URR5 g)zShow main windowN)r show_window)r#s r'r1#SchedulerSystemTray._show_dashboards &&(r)c^SSKJn [R"S5 UR"5 g)zExit applicationr)rz$Exiting application from system trayN)PyQt6.QtWidgetsrr r"quit)r#rs r'r3SchedulerSystemTray._exit_apps0 :;r))rr2r/rr,r)__name__ __module__ __qualname____firstlineno____doc__r rrr rPrVstrrIrr1r3__static_attributes__ __classcell__)r&s@r'r r sQ$4#4420 BB.B, &s &s &# )r)r N)rrrkrrr PyQt6.QtGuirr PyQt6.QtCorerlogurur core.databaser r r)r'r{s- A@&+F/Fr)