Feb-16-2022, 02:59 PM
(This post was last modified: Feb-17-2022, 10:48 PM by deanhystad.)
Please put python wrappers around code, not your entire post. Put error wrappers around error messages. Do not include them as comments inside your code.
And please don't do this.
https://pep8.org/
The code you posted is not the code that generated the errors. It generates completely different errors.
The error message says you are trying to disable an IntVar. An IntVar is not CheckButton. You cannot disable an IntVar. Removing the comment clutter might help you see that you are trying to disable an IntVar instead of a CheckButton.
And please don't do this.
#=================== def chkbxClick(self): # #===================You may think it makes your code easier to read, but it does not for coders who follow PEP8 style guidelines. You should follow PEP8 style guidelines too.
https://pep8.org/
The code you posted is not the code that generated the errors. It generates completely different errors.
The error message says you are trying to disable an IntVar. An IntVar is not CheckButton. You cannot disable an IntVar. Removing the comment clutter might help you see that you are trying to disable an IntVar instead of a CheckButton.