From: Bart Masschelein <bart.masschelein / skynet.be> Subject: Re: Tk Label and instance variables Date: Wed, 31 Aug 2005 03:53:02 +0900 Message-ID: <4314AAFD.3040900 / skynet.be> > Oh, and of course I could get around with the following, but I would > like to know why the instance variable appears to be not initialized > inside the TkLabel initialization. Maybe, that is a FAQ. :-) The block given to 'new' method is evaluated by 'instance_eval'. That is, in the block, self is the created widget object. So, you can abbreviate the receiver widget object to configure widget options or to call instance methods of the widget objcet. In your test script, @value in the block is not an instance variable of the LabelTest object but an uninitialized instance variable of the widget object. -- Hidetoshi NAGAI (nagai / ai.kyutech.ac.jp)