[Tkinter-discuss] Re: Storing structured, 'widget-specific-data', then loading it back in la ter

Martin Franklin mfranklin1 at gatwick.westerngeco.slb.com
Wed Oct 6 08:58:40 CEST 2004

On Tue, 05 Oct 2004 09:50:50 -0600, <stewart at midtoad.homelinux.org> wrote:

> Quoting Chris Nethery <clnethery at juno.com>:
>> 3) Lambda.  This may be more of a 'How does Lambda work?' question than


> class PrintOne:
>     def __init__(self, text):
>         self.text = text
>     def __call__(self):
>         '''this method will be automatically called when an instance of  
> the
> PrintOne object is created'''


I don't want to be pedantic ;-) but..... the __call__ method gets called  
when the instance of PrintOne is - called - not created.  It's the  
__init__ method that gets called when the instance is created.


Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

More information about the Tkinter-discuss mailing list