You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Go言語でGUIしたいかー?! おー!! とまあ、そんなノリで始まります。 Go言語でGUIするには? Go言語でGUIするライブラリは意外と色々あります。 go-ui 「Go言語 GUI」でググった時に、おそらく一番情報の多いライブラリ。ただ情報はあるけど大して気合の入ったライブラリではない模様。 go-uiなんて大層な名前をしてるけど、その実態はQtバインディングだったりする。 開発はもう終わったみたいで、 GoQt というのが後継らしいけど、 GoQt の方はまだリポジトリを作っただけのような状態だった。 Windowsで導入するのがほぼ無理ゲー。(最重要事案) go-gtk mattn氏が開発の中心となっているGo言語のGtk+バインディング。多分Go言語のGUIライブラリで一番開発が活発。 Windowsでも動くらしいけれど、Win64な環境ではしったこっちゃないし、そもそもGt
実行に時間のかかる処理を GUI をブロックせずに行いたい場合、通常はタイマかスレッドを使ってバックグラウンドで処理を実行します。wxRuby でも Wx::Timer.every を使って擬似的な並列処理をさせることが可能ですが、この場合プログラマがタイマイベントにあわせて処理を分割しなければならず、面倒です。 そこでスレッドを使うことになるわけですが、 require 'rubygems' require 'wx' Wx::App.run do frame = Wx::Frame.new(nil, :title => "Thread.new #{RUBY_VERSION}") frame.set_sizer(Wx::VBoxSizer.new) frame.get_sizer.add_item(text = Wx::TextCtrl.new(frame)) Thread.new(0)
wxRuby Documentation: Class Reference This is the class reference for WxRuby. The classes listed below are those currently available in WxRuby2. This documentation was seeded by converting the WxWidgets C++ documentation, so it has some shortcomings. A small number of methods have inaccurate descriptions of the parameters they accept Some of the example code is still in C++ There are links to C++
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く