Re: What is the significance of after() in this code?

2009-12-07 Thread Neil Cerutti
On 2009-12-07, Neil Cerutti wrote: > On 2009-12-07, W. eWatson wrote: >> See Subject. >> def StackImages(self): >> self.Upload("P") >> self.after_id = self.master.after(1,self.GetFrameOne) > > It's a violation of the Law of Demeter. Actually, I take that back. Dur. --

Re: What is the significance of after() in this code?

2009-12-07 Thread Neil Cerutti
On 2009-12-07, W. eWatson wrote: > See Subject. > def StackImages(self): > self.Upload("P") > self.after_id = self.master.after(1,self.GetFrameOne) It's a violation of the Law of Demeter. -- Neil Cerutti -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the significance of after() in this code?

2009-12-07 Thread W. eWatson
Martin P. Hellwig wrote: W. eWatson wrote: See Subject. def StackImages(self): self.Upload("P") self.after_id = self.master.after(1,self.GetFrameOne) If you are talking tkinter here, it is an alarm callback. See http://effbot.org/tkinterbook/widget.htm Very good. I rec

Re: What is the significance of after() in this code?

2009-12-07 Thread Martin P. Hellwig
W. eWatson wrote: See Subject. def StackImages(self): self.Upload("P") self.after_id = self.master.after(1,self.GetFrameOne) If you are talking tkinter here, it is an alarm callback. See http://effbot.org/tkinterbook/widget.htm -- MPH http://blog.dcuktec.com 'If consume

Re: What is the significance of after() in this code?

2009-12-06 Thread alex23
zeph wrote: > True, though by *context* the after method looks like it takes a time > (probably in milliseconds, given its size), and a method, and calls > the method after that amount of time, and returning some process/ > thread id to self.after_id.  Though if that's right, we still don't > know

Re: What is the significance of after() in this code?

2009-12-06 Thread zeph
On Dec 6, 8:46 pm, Benjamin Kaplan wrote: > On Sun, Dec 6, 2009 at 10:29 PM, W. eWatson wrote: > > See Subject. > >    def StackImages(self): > >        self.Upload("P") > >        self.after_id = self.master.after(1,self.GetFrameOne) > > -- > >http://mail.python.org/mailman/listinfo/python-l

Re: What is the significance of after() in this code?

2009-12-06 Thread Benjamin Kaplan
On Sun, Dec 6, 2009 at 10:29 PM, W. eWatson wrote: > See Subject. >    def StackImages(self): >        self.Upload("P") >        self.after_id = self.master.after(1,self.GetFrameOne) > -- > http://mail.python.org/mailman/listinfo/python-list > I think this is close to winning an award for "le

Re: What is the significance of after() in this code?

2009-12-06 Thread Carl Banks
On Dec 6, 7:29 pm, "W. eWatson" wrote: > See Subject. >      def StackImages(self): >          self.Upload("P") >          self.after_id = self.master.after(1,self.GetFrameOne) It's a "method" of the object that is bound to "self.master". It's return value is then bound to the attribute "aft

What is the significance of after() in this code?

2009-12-06 Thread W. eWatson
See Subject. def StackImages(self): self.Upload("P") self.after_id = self.master.after(1,self.GetFrameOne) -- http://mail.python.org/mailman/listinfo/python-list