Its like the widgets are only avaible from within the main Shoes.app
class, and not in any of its functions.
Shoes.app do
@f = flow
button 'clickme' { @f.append {my_para '123'} }
end
That works too.
Thanks!
El 26-07-2009, a las 20:28, Krzysztof B. Wicher escribió:
Hi,
I know it is only work around but seems to do what you want:
class My_Para < Widget
def initialize(txt)
@text=txt
end
def show_text
para @text
end
end
Shoes.app do
mypara('432').show_text
@t=mypara('123')
button 'clickme' do
@t.show_text
end
end
regards
Krzys
On Mon, Jul 27, 2009 at 12:54 AM, Phillip
Neumann<[email protected]> wrote:
Hi all.
Im wondering how to make this work:
class MyPara < Widget
def initialize(txt)
para txt
end
end
Shoes.app do
my_para '432'
button 'clickme' do
my_para '123'
end
end
Its failing for my_para '123'
Thanks!