Title: Signature.html
Thanks. Your statement is reassuring. Without trying to give my self a pat on the back, exactly written as I figured. It seems so very obvious, but the lack of attention to using that style makes one wonder why it isn't commonly found anywhere in the discussion of more complex collection of widgets (see my other comments below). In my case, really following the author's (of 2000 lines of code I have) makes me wonder why he didn't do it that way.  I suspect the answer is he had recently taken a Python class before writing it, and was following what simply was taught to get this program completed. (It is not a classroom program.) I know he put it together quickly, and did quite a spectacular job of writing the code and interfacing it to some complex h/w.

Alan Gauld wrote:

"Wayne Watson" <sierra_mtnv...@sbcglobal.net> wrote

Signature.htmlAnother thought occurred to me about this situation.
Suppose I have a dialog with two Entry objects in a dialog object called TwoEntries:
   entry1 = Entry(master, width=10).grid(row=4, column=1)
   entry2 = Entry(master, width=10).grid(row=5, column=1)
and I do not use a StringVar to return the values entered.
Is it possible to reach inside TwoEntries, after returning from it,
and grab entry1 and 2? It would seem so if the call was dialog=TwoEntries(...).

Sure, just use

x = dialog.entry1.get()
y = dialog.entry2.get()

There really is nothing special going on.

 I have no idea of the history of these variables, but they have
very limited descriptions and examples.

I assume because they have a very simple and specific purpose.
There is probably more on them if you look at the original Tcl/Tk
documentation. Remember Tkinter is just a wrapper arpund Tcl/Tkl
and Tk has been around for a long time (20 years now)
Yep, when I bowed of programming long ago, I had Ousterhout's (something like that) book, and finally sold it on Amazom 5 years ago with the thought I have no plan to use it. Ha! The same thing with Linux/Unix. Five years ago, I marginally used it, and swore off it after having it heavily 10 years before. Two weeks ago, I found a meteor analysis program written in C and to uncover it was of use have (temporarily) climbed back on Linux.  I manged to get a clunky old PC back that I gave a friend 3 years ago to put RH on. He had since gone on to a laptop, and put the PC in his garage. Just can't shake the computer habit. :-)

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