[Tutor] Configuration File, Tkinter, IntVars--Manufacturing Variables

Alan Gauld alan.gauld at btinternet.com
Wed Mar 4 00:26:09 CET 2009


"Wayne Watson" <sierra_mtnview at sbcglobal.net> wrote

> Comments?

> class IntVar_GUI:

I just noticed the name of the class. This kind of implies that you 
are
intending writing GUIs for each data type? That shouldn't be necessary
since the inputs will be strings in each case. You only need to call
the appropriate conversion function when you pull the data back
from the input dialog.

The exception might be if you want a different inpuit mechanism - like
a drop down list or radio button. In that case the number of GUIs you
write is determined by the number of input mechanisms used not
the number of data types... Hopefully the mechanism list is shorter
than the data type list!

Just a thought.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/ 




More information about the Tutor mailing list