User Profile
Collapse
-
Works like a charm, thanks a million... My biggest problem was that i understood exactly why it wasn't working, but would never have thought to take your approach. -
Tkinter button command question
What i am doing is creating a set of buttons from strings read from a file. When clicked, the button then adds the string to a listbox using a function i made called "additem(item)" .
code similar to this:
...Code:#global variables root = Tk() myframe = Frame(...) mylist = Listbox(....) myfile = open("myfile.txt", "r") def additem(item): mylist.insert(END,
No activity results to display
Show More
Leave a comment: