Skip to main content
5 events
when toggle format what by license comment
Oct 14, 2020 at 23:10 comment added Reinderien OOP is an option, but not the only one. It's also possible to simply throw everything into a main function, which would still be better than what you have (particularly for unit testing).
Oct 14, 2020 at 18:10 comment added user231641 @AryanParekh Thanks. Yes I have this (and another) script I would like to convert to OOP style. However I'm struggling with it a bit. Do you know where I could find a good, simple, OOP program with Tkinter so I could see the general structure? The examples given in that link show how you might start it, but it would be good to see a full script.
Oct 14, 2020 at 17:13 comment added user228914 @AaronWright you can have an Object-oriented approach too, check this What is the best way to structure a tkinter application?
Oct 14, 2020 at 17:00 comment added user231641 Thank you. I don't know much about type hints, but I'll look them up. And great additional suggestions. Is it standard practice to have the main tkinter script into a function?
Oct 14, 2020 at 16:26 history answered Reinderien CC BY-SA 4.0