rubygoo
1970-01-01
0 0 0
暂无评分
其他
如何获取积分?
A GUI library for use with rubygame.
Sample code: ``` require 'rubygems' $: << './lib' $: << File.dirname(FILE) require 'rubygoo' require 'rubygame' include Rubygame include Rubygoo
if $0 == FILE
screen = Screen.new [600,480] screen.show_cursor = false
factory = AdapterFactory.new renderadapter = factory.rendererfor :rubygame, screen icon = Surface.load File.dirname(FILE) + "/icon.png"
app = App.new :renderer => renderer
label = Label.new "click the button to set the time", :x=>20, :y=>30
button = Button.new "Click Me!", :x=>70, :y=>80, :xpad=>20, :ypad=>20, :icon => icon button.on :pressed do |*opts| label.settext(Time.now.tos) end
gui
ruby
rubygame
相关源码推荐
py管理系统
0
0
暂无评分
脑电信号SSVEP的目标识别
0
0
暂无评分
信号产生、分析和滤波的Matlab-GUI界面实现
0
0
暂无评分
基于gui的飞行器仿真
0
0
暂无评分
Tkinter GUI示例
0
0
暂无评分
暂无评论