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