Save Last Message and Last Title shown in system tray

This commit is contained in:
MikeTheWatchGuy 2018-12-02 19:09:08 -05:00
parent e7ad6713ba
commit 55387cfb3a
1 changed files with 5 additions and 0 deletions

View File

@ -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):