#!/usr/bin/ruby -w
require 'wxruby'
class TroutApp < Wx::App
def on_init
frame = Wx::Frame.new(nil, -1, 'Tiny wxRuby Application')
panel = Wx::StaticText.new(frame, -1, 'You are a trout!',
Wx::Point.new(-1,1), Wx::DEFAULT_SIZE,
Wx::ALIGN_CENTER)
frame.show
end
end
TroutApp.new.main_loop
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....
玩儿转测试题