Hatena::Grouprubyist

ayucat.chのRuby/Rails日記 (新) このページをアンテナに追加 RSSフィード

ayucatのRuby/Rails日記 ( rubyist.g.hatena.ne.jp/ayucat_on_t@be10g/ )からこちらに移行中

2008年分(冬)まで移行済み

ブログ本家はこちら

 | 

2009-10-06

(解決編) Ruby 1.9.1 (p129) で Ruby/Tk が使えない

|  (解決編) Ruby 1.9.1 (p129) で Ruby/Tk が使えない - ayucat.chのRuby/Rails日記 (新) を含むブックマーク はてなブックマーク -  (解決編) Ruby 1.9.1 (p129) で Ruby/Tk が使えない - ayucat.chのRuby/Rails日記 (新)

普通のスクリプトだと頭に

module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = true; end

を持ってくると動きます。

[ruby-list:45712] Re: ruby-1.9.1-preview2のruby-tk on OSX

らしい。

module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = true; end

FA

経緯

結果

\ruby19\bin\ruby -v -e 'module TkCore; RUN_EVENTLOOP_
ON_MAIN_THREAD = true; end; require "tk"; p Tk::TCL_VERSION, Tk::TK_VERSION, Tk:
:JAPANIZED_TK'
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mswin32]
C:/ruby19/lib/ruby/1.9.1/tk.rb:3282: warning: shadowing outer local variable - key
C:/ruby19/lib/ruby/1.9.1/tk.rb:3410: warning: shadowing outer local variable - key
C:/ruby19/lib/ruby/1.9.1/tk.rb:3470: warning: shadowing outer local variable - key
C:/ruby19/lib/ruby/1.9.1/tk.rb:3710: warning: mismatched indentations at 'end' with 'if' at 3708
C:/ruby19/lib/ruby/1.9.1/tk.rb:4299: warning: shadowing outer local variable - method
C:/ruby19/lib/ruby/1.9.1/tk.rb:4338: warning: shadowing outer local variable - v
C:/ruby19/lib/ruby/1.9.1/tk.rb:4685: warning: shadowing outer local variable - method
C:/ruby19/lib/ruby/1.9.1/tk.rb:4724: warning: shadowing outer local variable - conf
C:/ruby19/lib/ruby/1.9.1/tk.rb:4734: warning: shadowing outer local variable - conf
C:/ruby19/lib/ruby/1.9.1/tk.rb:29: warning: Inconsistency.`tcltklib' is enabled nativethread-support. But loaded Tcl/Tk libraries are not. (Probably, the inconsistency doesn't cause any troubles.)
C:/ruby19/lib/ruby/1.9.1/tk.rb:1233: warning: method redefined; discarding old to_s
C:/ruby19/lib/ruby/1.9.1/tk.rb:843: warning: instance variable @cmdtbl not initialized
C:/ruby19/lib/ruby/1.9.1/tk.rb:2437: warning: instance variable encoding_table not initialized
"8.4"
"8.4"
false
C:/ruby19/lib/ruby/1.9.1/tk.rb:2759: warning: instance variable @encoding not initialized
C:/ruby19/lib/ruby/1.9.1/tk.rb:2759: warning: instance variable @encoding not initialized
C:/ruby19/lib/ruby/1.9.1/tk.rb:2759: warning: instance variable @encoding not initialized

とな。

KaylinKaylin2012/05/23 07:08Enlightening the world, one helpufl article at a time.

npjjphwqzbnpjjphwqzb2012/05/23 15:26fGhPPp <a href="http://tcrerkxvsrcg.com/">tcrerkxvsrcg</a>

uegvvqofuegvvqof2012/05/23 19:43YAfmQb , [url=http://wydtcpvtxrme.com/]wydtcpvtxrme[/url], [link=http://ohmwedgrtsau.com/]ohmwedgrtsau[/link], http://myegmbveynyp.com/

lgazxhplgazxhp2012/05/25 22:20sBpdlD <a href="http://ohetxsnvmgul.com/">ohetxsnvmgul</a>

bfyrxigortbfyrxigort2012/05/26 20:39t4GUmS , [url=http://vukxubpxbfeu.com/]vukxubpxbfeu[/url], [link=http://fagmsrrtiplj.com/]fagmsrrtiplj[/link], http://ciphaktkftuq.com/

 |