Checkbuttons in a Text widget
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? Thanks, Lou G -- http://mail.python.org/mailman/listinfo/python-list
Re: Checkbuttons in a Text widget
For anyone who might be able to use this technique: I kept playing around and got it to work: for i in nameList: btnText = name[i] self.sv = [] cb = [] cb.append(Checkbutton(self.datalist, text=btnText, variable=self.sv[i], background='white', font=("Courier", 10))) self.datalist.window_create(INSERT, window=cb[i]) self.datalist.insert(END, '\n') Thank you for your replies, Lou -- http://mail.python.org/mailman/listinfo/python-list