StringVar() IntVar() vs. Dictionary of same
Bob Greschke
bob at passcal.nmt.edu
Mon Jan 16 18:20:53 EST 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
be?
Thanks!
Bob
More information about the Python-list
mailing list