Sep-06-2020, 04:17 PM
Classes work best with tkinter, one reason is the ample use of forward references, for example a button press event,
since all methods become available when the class is instantiated, forward referencing is never a problem.
There are many references to classes with tkinter,
This one by tkinter author: http://effbot.org/tkinterbook/tkinter-classes.htm
I haven't thoroughly reviewed this recent addition, but looks good at a glance: http://zetcode.com/tkinter/
It's useful to download a copy of John Shipmans tkinter reference manual here:
http://reu.cct.lsu.edu/documents/Python_...kinter.pdf
Finally, I'll mention that although it's possible to write large GUI applications with tkinter, it's difficult at best.
I have done it, but it's many times easier with wxpython which is much more robust. There's also Qt (Qt5 being latest version).
However, be aware that large scale commercial applications will probable require a fee.
My personal choice is wxpython.
since all methods become available when the class is instantiated, forward referencing is never a problem.
There are many references to classes with tkinter,
This one by tkinter author: http://effbot.org/tkinterbook/tkinter-classes.htm
I haven't thoroughly reviewed this recent addition, but looks good at a glance: http://zetcode.com/tkinter/
It's useful to download a copy of John Shipmans tkinter reference manual here:
http://reu.cct.lsu.edu/documents/Python_...kinter.pdf
Finally, I'll mention that although it's possible to write large GUI applications with tkinter, it's difficult at best.
I have done it, but it's many times easier with wxpython which is much more robust. There's also Qt (Qt5 being latest version).
However, be aware that large scale commercial applications will probable require a fee.
My personal choice is wxpython.