Implement a dynamic tray icon status picture
This commit is contained in:
1 parent
14a9154366
commit
35c46c2b78
10 files changed
+35
-8
No files matched your search
@@ -87,7 +87,7 @@ if __name__ == "__main__":
|
||||
root = tk.Tk()
|
||||
root.overrideredirect(True)
|
||||
root.withdraw()
|
||||
set_root_icon(root, resource_path("pickaxe.ico"))
|
||||
set_root_icon(root, resource_path("icons/pickaxe.ico"))
|
||||
root.update()
|
||||
parser = Parser(
|
||||
SELF_PATH.name,
|
||||
@@ -168,6 +168,7 @@ if __name__ == "__main__":
|
||||
await client.shutdown()
|
||||
if not client.gui.close_requested:
|
||||
# user didn't request the closure
|
||||
client.gui.tray.change_icon("error")
|
||||
client.print(_("status", "terminated"))
|
||||
client.gui.status.update(_("gui", "status", "terminated"))
|
||||
# notify the user about the closure
|
||||
|
||||
Reference in new issue
Block a user