moses-palmer / pystray

GNU General Public License v3.0
473 stars 59 forks source link

Way to open tkinter window on left click ? #28

Closed cyprienh closed 5 years ago

cyprienh commented 5 years ago

I just wanted to know if there is any way to open a tkinter window on left click on the tray ! Thank you

Sigma

moses-palmer commented 5 years ago

I have no experience with Tkinter, but have a look at the documentation, and especially at the default action for a menu.

michalekmatej commented 4 years ago

@SigmaPhilein hi I have the same problem, did you find the solution? @moses-palmer Is there any way to run a command when i left click the tray icon? I don't wanna open the menu just run some function. Thank you

ghanteyyy commented 2 years ago

Adding default = True to the item which shows the tkinter window solves the problem