On Thu, Dec 8, 2011 at 11:51 AM, Ryan Davis <ryand-ruby / zenspider.com> wrote:
>
> On Dec 8, 2011, at 0:06, Marc Heiler <shevegen / linuxmail.org> wrote:
>
>> My first attempt was to do something like:
>>
>>  >>
>> And convert the Button to the specific toolkit in
>> question - i.e. GTK Button, QT Button and so on.
>
> Don't convert the button instance. Change the class.

Road to perdition.

> Button = QT::Button
>
> Button.new

Cheers

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/