[Tutor] Button command arguments: Using class to wrap function call versus using lambda in tkinter

2017-04-22 Thread boB Stepp
Phil's recent postings have motivated me to try studying tkinter more systematically starting today, so I have been looking over available web resources. Playing around with the code in one such resource, I was looking at a section entitled "Arguments to Callbacks" towards the bottom of the page a

Re: [Tutor] Tkinter layout question

2017-04-22 Thread Phil
On Thu, 20 Apr 2017 13:43:07 +0100 Alan Gauld via Tutor wrote: > If still confused drop a question here. I hope I'm not over doing the questions here. I'm only posting after hours of experimenting and Internet searching. How do I create multiple instances of the table on the one frame? I think

Re: [Tutor] Tkinter layout question

2017-04-22 Thread Phil
On Sat, 22 Apr 2017 10:37:19 +0200 Peter Otten <__pete...@web.de> wrote: > That's unnecessary. The code protected by 'if __name__ == "__main__"' > is not executed when the module is imported. In fact that's the very > purpose of this idiom. > > "Best practice" is to avoid star imports which bind

Re: [Tutor] Tkinter layout question

2017-04-22 Thread Peter Otten
Phil wrote: > On Thu, 20 Apr 2017 13:43:07 +0100 > Alan Gauld via Tutor wrote: > >> If still confused drop a question here. > > Maybe not totally confused, more a question of best practice. > > Using your example table class, I commented out all from, and including, > "if __name__ == "__main__