Checkbuttons in a Text widget

Lou G anothermoi at sbcglobal.net
Fri Feb 17 18:56:48 EST 2006


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




More information about the Python-list mailing list