Better icon demonstration
This commit is contained in:
parent
0c651c186c
commit
e00a9c8323
|
@ -100,7 +100,9 @@ def system_tray():
|
||||||
if menu_item == 'Exit':
|
if menu_item == 'Exit':
|
||||||
break
|
break
|
||||||
if menu_item == 'Run GUI':
|
if menu_item == 'Run GUI':
|
||||||
|
tray.Update(data_base64=red_x)
|
||||||
gui()
|
gui()
|
||||||
|
tray.Update(data_base64=logo)
|
||||||
if seconds % 12 == 0: # Every 60 seconds read GitHub
|
if seconds % 12 == 0: # Every 60 seconds read GitHub
|
||||||
issues, first_issue = get_num_issues()
|
issues, first_issue = get_num_issues()
|
||||||
menu_def = ['root',
|
menu_def = ['root',
|
||||||
|
@ -114,7 +116,6 @@ def system_tray():
|
||||||
if menu_item in('Refresh', sg.EVENT_SYSTEM_TRAY_ICON_DOUBLE_CLICKED):
|
if menu_item in('Refresh', sg.EVENT_SYSTEM_TRAY_ICON_DOUBLE_CLICKED):
|
||||||
issues, first_issue = get_num_issues()
|
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.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
|
seconds += poll_frequncy/1000
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue