Quote:buttons.append(Button(etc))in his example buttons is a list of tkinter.Button objects.
Quote:list = ['btn1', 'btn2', etc]If your listing out wishing the variables names to be btn1 and btn2...whats the point? you might as well stick them in a list and identify them by index anyways.
buttons[0]
will be the first and so on. If you actually want to make custom names, just use a dictionary
buttons['exit']
and so on.
Recommended Tutorials: