How to do it...

We are creating three check button widgets that differ in their states. The first is disabled and has a check mark in it. The user cannot remove this check mark as the widget is disabled.

The second check button is enabled, and by default, has no check mark in it, but the user can click it to add a check mark.

The third check button is both enabled and checked by default. The users can uncheck and recheck the widget as often as they like. Look at the following code:

GUI_checkbutton_widget.py

Running the new code results in the following GUI:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.140.188.244