Title: Signature.html
Very good. Thanks.
(I posted this about 20 hours ago with an image of my screen output. It appears it's waiting for moderator approval, so I'm posting it again w/o the image. Maybe the image will show up later. I think some progress can be made with out it. )

Well, the idea of using Entry1,2 logic hit a snag. First,  the program has an oddity that I do not understand. Here's the problem area. See the highlighted code stuff in purple and bold at the bottom.  Above that code, it's forming buttons and so on with no return object from anywhere, then "entry = Entry(master, width=10,  ..." appears. I put some debug code in there, and ended it wih a return of entry before 20-30 lines of code using Label, etc. that use no assignment to any object. After that is the original return entry. It's puzzling why it returns just entry. I suspect that should cause the return to be a OperationalSettingsDialog object; however, when I print the object and its type, they are None, and type 'NoneType'.

REMOVED IMAGE HERE. It shows the None-NoneType msg and other Python msgs.

class OperationalSettingsDialog(tkSimpleDialog.Dialog):

    def __init__(self, parent, sdict):
        self.sdict = sdict
        print "Set OSDiag sdict"
        print
        tkSimpleDialog.Dialog.__init__(self, parent)
       
    def body(self,master):
        self.title("Operational Settings")

        print "body from OSDialog, self =", self, "type =", type(self)
        self.colorVar = IntVar()
        Radiobutton( master, text="Gray Scale",
                     value=1, variable=self.colorVar).grid(row=0, sticky=W)
        Radiobutton( master, text="Pseudo Color",
                     value=2, variable=self.colorVar).grid(row=1, sticky=W)
        self.colorVar.set( self.sdict["color"] )

        self.post_event_stackVar = IntVar()
        Checkbutton( master, text="Make long exposure after each event",
                     variable=self.post_event_stackVar).grid(row=2, sticky=W)
        self.post_event_stackVar.set( self.sdict["post_event_stack"] )

        self.show_real_timeVar = IntVar()
        Checkbutton( master, text="Show event as it is being received",
                     variable=self.show_real_timeVar).grid(row=3, sticky=W)
        self.show_real_timeVar.set( self.sdict["show_real_time"] )

        Label( master, text="Playback Slowdown: ").grid(row=4, stick=W)
        self.slowdownVar = StringVar()

#        entry = Entry(master, width=10, textvariable=self.slowdownVar).grid(row=4, column=1)
        entry = Entry(master, width=10).grid(row=4, column=1)
        print "entry, entry type:", entry,type(entry)
        entry.insert(0,self.slowdown)
        slowdown = entry
        print "holly cow: ",slowdown
        #self.slowdownVar.set( "%d" % self.sdict["slowdown"] )
        return entry


Alan Gauld wrote:

"Alan Gauld" <alan.ga...@btinternet.com> wrote
Yep, when I bowed of programming long ago, I had Ousterhout's
It was a good book in its day but is now well overdue an update.

And lo and behold, listed on Amazon is the 2nd edition due in August 2009!

How's that for service :-)

BTW I also noticed that there is also now an O'Reilly pocket reference which might be even more useful to Python Tkinter users than the Nutshell - smaller and cheaper and even more terse! Although it doesn't appear to cover Tix...

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