[Python] Pystray - How can I open the program with double click on the System Tray icon using...

Discussão em 'Python' iniciado por Stack, Março 29, 2025.

  1. Stack

    Stack Membro Participativo

    I need the program to be opened by double clicking on the tray icon.

    Like this:

    def show(icon, item):
    icon.stop()
    root.after(0, root.deiconify())

    icon = pystray.Icon("name", image, "Title", menu)#, doubleclick=show())
    icon.run()

    Continue reading...

Compartilhe esta Página