Re: check box bug?
- Posted by Derek Parnell <ddparnell at bigpond.com> Nov 09, 2004
- 476 views
George Walters wrote: > > > I don't know where the topica message went to but here's it directly. > > I'm running win32lib 59.1 and the check boxes have a "yes" or "no" to the > right of them if the box has a check or not. If I setCheck(abox, True) > under program control (w/o tabbing to it and toggle with the space > bar) the "no" remains beside the box, eventhough it is checked. Is there > something else I need to do to get it to display "yes"?? A checkbox control has two properties - checked-state and text. These are independant of each other. Setting one does not effect the other. So if the user or your program sets the check-state, you also have to set the text state appropriately. This makes some sense because the text may not always be "yes" an "no" in some applications. There is a setChecked() and a setText() routine to cater for this requirement. -- Derek Parnell Melbourne, Australia