Save Last Message and Last Title shown in system tray
This commit is contained in:
parent
e7ad6713ba
commit
55387cfb3a
|
@ -2738,6 +2738,8 @@ class SystemTray:
|
|||
self.TrayIcon = None
|
||||
self.Shown = False
|
||||
self.MenuItemChosen = TIMEOUT_KEY
|
||||
self.LastMessage = None
|
||||
self.LastTitle = None
|
||||
|
||||
global _my_windows
|
||||
|
||||
|
@ -2797,6 +2799,7 @@ class SystemTray:
|
|||
self.MenuItemChosen = EVENT_SYSTEM_TRAY_ICON_ACTIVATED
|
||||
self.App.exit()
|
||||
|
||||
|
||||
def Read(self, timeout=None):
|
||||
'''
|
||||
Reads the context menu
|
||||
|
@ -2863,6 +2866,8 @@ class SystemTray:
|
|||
else:
|
||||
self.TrayIcon.showMessage(title, message, time)
|
||||
|
||||
self.LastMessage = message
|
||||
self.LastTitle = title
|
||||
return self
|
||||
|
||||
def Close(self):
|
||||
|
|
Loading…
Reference in New Issue