wxRubyを使用してGUIアプリケーションを作る

rubyコード:
#!/usr/bin/ruby -w
require 'wxruby’
class TroutApp < Wx::App
def on_init
frame = Wx::Frame.new(nil, -1, ' wxRubyアプリケーション’)
panel = Wx::StaticText.new(frame, -1, 'テストアプリケーション!’,
Wx::Point.new(-1,1), Wx::DEFAULT_SIZE,
Wx::ALIGN_CENTER)
frame.show
end
end

TroutApp.new.main_loop

Development

Posted by arkgame