Re: Tkinter Button Command Taking Only Newest Reference In Callback Parameter

2019-07-08 Thread Abdur-Rahmaan Janhangeer
"Thanks" * INFINITY hum weirdly it worked ... not yet understood why! Here is a post on it: https://www.linkedin.com/feed/update/urn:li:activity:6554081428492161024/ Thanks for all! On Mon, Jul 8, 2019 at 5:40 PM Calvin Spealman wrote: > This is a really common scoping issue to get tripped up

Re: Tkinter Button Command Taking Only Newest Reference In Callback Parameter

2019-07-08 Thread Abdur-Rahmaan Janhangeer
excuses for typos! -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Button Command Taking Only Newest Reference In Callback Parameter

2019-07-08 Thread Calvin Spealman
This is a really common scoping issue to get tripped up on. I'll try to help you understand and work around it. for i, icon in enumerate(self.icons): print('// entering', icon.program) print('icons ... ... ... ...') pretty(icon.info, icon.program) x = Button(root, text=icon.info['n

Tkinter Button Command Taking Only Newest Reference In Callback Parameter

2019-07-07 Thread Abdur-Rahmaan Janhangeer
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 w