Joel VanderWerf wrote:
>      @btn = TkButton.new(btn_frame).then { |w|
>        w.text "My Button"      # w must be referred to explicitly
>        w.background get_color  # calls method in expected scope
>        w.state 'normal'
>        w.command proc {
>          @btn.configure 'state'=>'disabled'
>                                # @btn has expected scope
>        }
>        w.pack('side'=>'left', 'padx'=>10, 'pady'=>10)
>      }

Is it possible to do 'w.configure ...' instead of '@btn.configure ...'?
Why did you choose the latter?
-- 
Posted via http://www.ruby-forum.com/.