Title: Signature.html
I have yet to really use Tkinter to put together any widgets, so I'm not sure what normal is. Do you have an example, or could you construct an example to replace the one in the 80 line program?  My plan is to get this config interface working, and later to worry about constructing new widgets. 

Is this what you have in mind <http://effbot.org/tkinterbook/entry.htm>?
=================start
from Tkinter import *
master = Tk()
e = Entry(master)
e.pack()
e.focus_set()

def callback():
    print e.get()

b = Button(master, text="get", width=10, command=callback)
b.pack()

mainloop()
========================end
This begs the question as to why one would use control variables at all? From a light reading of the subject, it seems as though they may help in certain circumstances of coupling.

>From Tkinter reference: a GUI for Python
One special quality of a control variable is that it can be shared by a number of different widgets, and the control variable can remember all the widgets that are currently sharing it. This means, in particular, that if your program stores a value v into a control variable c with its c.set(v) method, any widgets that are linked to that control variable are automatically updated on the screen..

Alan Gauld wrote:

"Wayne Watson" <sierra_mtnv...@sbcglobal.net> wrote
There's another way?

Sure, just create normal Entry widgets and capture the input string and convert/assign it as you would a string captured from raw_input() in a console. No magic required.

Its slightly more code but I find the auto assignment of values to variables catches me out sometimes so I prefer to keep it explicit.

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
            

                In mathematics you don't understand things. 
                 You just get used to them.” -- John Von Neumann
                    (P.S. The same is true in life.)

                    Web Page: <www.speckledwithstars.net/>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to