This code works fine and produces checkbuttons in a long long list.
def createbutton(self,name):
var = IntVar()
account = name[0]
chk = Checkbutton(self.root, text=account, variable=var)
chk.pack(side = BOTTOM)
self.states.append((name,var))
The problem is that the list of buttons is so long, that it stretches farther then the length of my screen so i want to put them into a grid, so that i can have maybe 10 checkbuttons in a column. Just to test the capability, i did this:
def createbutton(self,name):
var = IntVar()
account = name[0]
chk = Checkbutton(self.root, text=account, variable=var)
chk.grid(column=0)
self.states.append((name,var))
And nothing happens, no tk interface opens and the program just waits. Please help!