Dec-06-2019, 04:45 PM
Creating a number of checkbuttons with a for loop.
I store the name increment and would like to use the stored string as the checkbox name.
Any suggesstions?
Thanks
I store the name increment and would like to use the stored string as the checkbox name.
chkbox = "cb" + '%s' % i self.chkbox = Checkbutton(self.frame_content, text = aprlist[i-1]) # self.chkbox.grid(row = rowpos, column = col, padx = 5, pady = 2, sticky = 'w')the question is, how to replace self.chkbox with the string content of chkbox
Any suggesstions?
Thanks