tkinter - get button name?
You are almost there. You simply need to pass the name via lambda or functools.partial:
newbuttonname = username newbuttonname = Tkinter.Button(win, text = newbuttonname, command = lambda name=username:click_one(name))
You can use this same technique to pass in the actual wodget, or any other data.