Better icon demonstration

This commit is contained in:
MikeTheWatchGuy 2018-11-26 23:20:53 -05:00
parent 0c651c186c
commit e00a9c8323
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,9 @@ def system_tray():
if menu_item == 'Exit':
break
if menu_item == 'Run GUI':
tray.Update(data_base64=red_x)
gui()
tray.Update(data_base64=logo)
if seconds % 12 == 0: # Every 60 seconds read GitHub
issues, first_issue = get_num_issues()
menu_def = ['root',
@ -114,7 +116,6 @@ def system_tray():
if menu_item in('Refresh', sg.EVENT_SYSTEM_TRAY_ICON_DOUBLE_CLICKED):
issues, first_issue = get_num_issues()
tray.ShowMessage('Issue', '{} Issues\n{} First Issue'.format(issues, first_issue), messageicon=sg.SYSTEM_TRAY_MESSAGE_ICON_INFORMATION, )
tray.Update(data_base64=red_x)
seconds += poll_frequncy/1000