Josiah opened this issue on Nov 17, 2002 ยท 7 posts
Josiah posted Sun, 17 November 2002 at 12:18 PM
Using Bushi's example of writing poser friendly script, I would like to keep the dialog ontop the poser window. I understand his example script below runs the function "Repeater" every 250 ms and calls "lift()". This keeps the window ontop by lifting it every 250 ms. However, I get "AttributeError: master" on the line; self.master.after(250, self.Repeater) Why is this? How can I fix it? ####################################### from Tkinter import * import poser scene = poser.Scene() class App: ~def init(self, master): ~~~frame = Frame(master) ~~~frame.grid() ~def Repeater(self): ~~~try: ~~~~self.master.lift() ~~~except: ~~~~pass ~~~scene.DrawAll() ~~~scene.ProcessSomeEvents() ~~~self.master.after(250, self.Repeater) root = Tk() app = App(root) app.Repeater() root.mainloop() ####################################### Thanks! Josiah