I have been asked about how IntVar() works. Like StringVar(), only
for ints. The thing to notive here is that it involves a function call. The trace
method will trigger the updatewithoutthe user having to push any
buttons. All that needs to happen is that the value of the IntVar changes.
This special var has a set() method, which an ordinary variable doesn't have.
And thus a get() method as well.
https://python-course.eu/tkinter/variable-classes-in-tkinter.php
* * *
No comments:
Post a Comment