Checkbuttons in a Text widget

Carsten Haese carsten at uniqsys.com
Fri Feb 17 11:30:36 EST 2006


On Fri, 2006-02-17 at 10:28, Lou G wrote:
> I'm trying to show a number of Checkbuttons (each with associated text
> based on a list of names) inside a y-scrollable Text widget like so:
> 
> [ ] Bob
> [ ] Carol
> [ ] Ted
> [ ] Alice
> etc.
> etc.
> 
> There may be quite a few (as many as 100 or so). I'm uncertain as to
> the correct way to get these into the Text widget. I've tried
> text.insert and it doesn't seem to do the job. Help?

Does it have to be a text widget? wxWidgets has a wxCheckListBox class
that does precisely what you need, but it's not a text widget.

HTH,

Carsten.





More information about the Python-list mailing list