Python Forum
Errors when trying to disable tkinter checkbutton
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Errors when trying to disable tkinter checkbutton
#2
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.
    #===================
    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.
Reply


Messages In This Thread
RE: Errors when trying to disable tkinter checkbutton - by deanhystad - Feb-16-2022, 02:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  an easy way to disable exception handling Skaperen 6 5,683 Jun-02-2019, 10:38 PM
Last Post: Gribouillis
  disable a block of code Skaperen 5 13,723 Aug-20-2018, 07:55 AM
Last Post: Skaperen
  gnureadline: disable temporarily? klaymen 1 2,595 May-08-2018, 11:16 AM
Last Post: Larz60+
  Checkbutton code not working ToddRyler 4 3,310 Dec-24-2017, 12:34 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020