StringVar() IntVar() vs. Dictionary of same

B

Bob Greschke

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top