WxRunner is a project mainly written in Ruby, it's free.
Easy access wxruby message loop
= WxRunner
Created for use with the following objectives:
== Install
gem install wx_runner
== Useage
2.'s show window class require 'wx' require 'wx_ruuner' WxRunner.run do TextCtrl.show CheckBox.show end
Threading You can use ruby threads as usual.
accessed over the thread require 'wx' require 'wx_ruuner' WxRunner.run do @ text = TextCtrl.show CheckBox.show Thread.new str = WxRunner.on_wx_thread do @ text.label = "sample" @ text.label end end end
Spec automatic test require 'wx' require 'wx_ruuner'
WxRunner.run_thread
describe "WxRunner show textctrl" do it "TextCtrl show" do r = WxRunner.on_wx_thread {Wx:: TextCtrl.show} r.class.should == Wx:: TextCtrl WxRunner.on_wx_thread {r.parent.close} end end
== License
WxRunner is released under the MIT license.
= WxRunner
以下の目的で使用するために作成
== Install
gem install wx_runner
== Useage
ウインドウクラスでの run require 'wx' require 'wx_ruuner' TextCtrl.run
ウインドウクラスでの show require 'wx' require 'wx_ruuner' WxRunner.run do TextCtrl.show CheckBox.show end
スレッド処理 ruby のスレッドを通常通り使えます。
スレッド越しのアクセス require 'wx' require 'wx_ruuner' WxRunner.run do @text = TextCtrl.show CheckBox.show Thread.new str = WxRunner.on_wx_thread do @text.label = "sample" @text.label end end end
spec 自動試験 require 'wx' require 'wx_ruuner'
WxRunner.run_thread
describe "WxRunner show textctrl" do it "TextCtrl show" do r = WxRunner.on_wx_thread { Wx::TextCtrl.show } r.class.should == Wx::TextCtrl WxRunner.on_wx_thread { r.parent.close } end end
== License
WxRunner is released under the MIT license.