I'm translating a Tk system that does alot of this: set b ".mybutton" ... button $b ... What is a good way to do this in Python? There is, of course, b = "mybutton" ... exec( b + "= Button(...)" ) Is there a better way?