git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tkinter Button Command Taking Only Newest Reference In Callback Parameter


Greetings,

I'm doing this project:

https://github.com/Abdur-rahmaanJ/cmdlaunch/blob/master/cmdlaunch/cmdlaunch.py

Everything works fine, except for one thing.

On line 60, the button is taking an object in it's command parameter

If you run the file, you'll see that all the different names are written on
the gui just the callback is takest the newest icon object for all three
buttons

I know just a reference issue but it's been **bugging** me.

Thanks All

-- 
Abdur-Rahmaan Janhangeer
Mauritius