mardi 11 octobre 2016

Python Tkinter checkbutton: select/deselect methods vs setting variable

Platform is Python 2.7.x (on Windows) and Tkinter. When there's a scenario where I want to update a checkbutton's value in code, is there any difference between using the checkbutton's select()/deselect() methods, versus using the set() method to update the variable to 1/0?

When I ask "any difference," I mean in any sense: functional results, subtle side effects, good/bad practice, stylistic standards.




Aucun commentaire:

Enregistrer un commentaire