StringVar() IntVar() vs. Dictionary of same

Bob Greschke bob at
Tue Jan 17 00:20:53 CET 2006

Let's say I have a program with roughly 1 bazillion StringVars and IntVars 
(a lot of tkinter forms).  Can anyone guess what the performance hit may or 
may not be by going from "global" StringVars and IntVars and accessing them 
directly (like barcode = StringVar()) to putting all of the StringVars and 
IntVars into a dictionary (like Vars = {"barcode":StringVar()...}) and 
accessing them that way?  Just roughly what do you think the effect would 



More information about the Python-list mailing list