arrays of tkinter buttons

Locke brown.2053
Thu Aug 23 02:17:31 EDT 2001


Is there a way to make an array of tkinter buttons? In visual basic you can do this cool there where you can have an array of buttons, and you can have them all call the same function, but have one of its arguments be 
the index of the button clicked in the array.

Does python even have normal arrays, or do you have to use lists?

How could i create an array of several buttons? Would I need to use a loop?

Thanks a lot for any help people!




More information about the Python-list mailing list