start Tk which depends on MultiTkIp
- CLASS MultiTkIp
- CLASS TkCore::Tk_OBJECT_TABLE
- C
- I
- N
- T
| INTERP_THREAD | = | MultiTkIp::INTERP_THREAD |
| INTERP_THREAD_STATUS | = | MultiTkIp::INTERP_THREAD_STATUS |
| INTERP_MUTEX | = | MultiTkIp::INTERP_MUTEX |
| INTERP_ROOT_CHECK | = | MultiTkIp::INTERP_ROOT_CHECK |
| INTERP | = | MultiTkIp |
#<RDoc::Comment:0x007fedb7625c80> #<RDoc::Comment:0x007fedb181a4b0> #<RDoc::Comment:0x007fedb1556008> #<RDoc::Comment:0x007fedafaa23b0> #<RDoc::Comment:0x007fedaf723bd0> #<RDoc::Comment:0x007fedaefa5520> #<RDoc::Comment:0x007feda916b6d0> #<RDoc::Comment:0x007feda8f43420> #<RDoc::Comment:0x007feda8629740> #<RDoc::Comment:0x007feda9810580> #<RDoc::Comment:0x007fedba7dd1b0> #<RDoc::Comment:0x007fedb1dcb8f0> #<RDoc::Comment:0x007fedb5665dc8> |
||
| WITH_RUBY_VM | = | Object.const_defined?(:RubyVM) && ::RubyVM.class == Class |
| WITH_ENCODING | = | defined?(::Encoding.default_external) && true |
| RUN_EVENTLOOP_ON_MAIN_THREAD | = | true |
*** KNOWN BUG ***
*** ADD (2009/05/10) ***
*** ADD (2010/07/05) *** |
||
| WIDGET_DESTROY_HOOK | = | '<WIDGET_DESTROY_HOOK>' |
| EventFlag | = | TclTkLib::EventFlag |
Source: show
# File ext/tk/lib/tk.rb, line 1588 def TkCore.callback(*arg) begin if TkCore::INTERP.tk_cmd_tbl.kind_of?(Hash) #TkCore::INTERP.tk_cmd_tbl[arg.shift].call(*arg) normal_ret = false ret = catch(:IRB_EXIT) do # IRB hack retval = TkCore::INTERP.tk_cmd_tbl[arg.shift].call(*arg) normal_ret = true retval end unless normal_ret # catch IRB_EXIT exit(ret) end ret end rescue SystemExit=>e exit(e.status) rescue Interrupt=>e fail(e) rescue Exception => e begin msg = _toUTF8(e.class.inspect) + ': ' + _toUTF8(e.message) + "\n" + "\n---< backtrace of Ruby side >-----\n" + _toUTF8(e.backtrace.join("\n")) + "\n---< backtrace of Tk side >-------" if TkCore::WITH_ENCODING msg.force_encoding('utf-8') else msg.instance_variable_set(:@encoding, 'utf-8') end rescue Exception msg = e.class.inspect + ': ' + e.message + "\n" + "\n---< backtrace of Ruby side >-----\n" + e.backtrace.join("\n") + "\n---< backtrace of Tk side >-------" end # TkCore::INTERP._set_global_var('errorInfo', msg) # fail(e) fail(e, msg) end end
Source: show
# File ext/tk/lib/tk.rb, line 1392 def initialize(ip, cmd) @ip = ip @cmd = cmd end
Source: show
# File ext/tk/lib/tk.rb, line 1397 def call(*args) @ip.cb_eval(@cmd, *args) end
Source: show
# File ext/tk/lib/tk.rb, line 1576 def callback_break fail TkCallbackBreak, "Tk callback returns 'break' status" end
Source: show
# File ext/tk/lib/tk.rb, line 1580 def callback_continue fail TkCallbackContinue, "Tk callback returns 'continue' status" end
Source: show
# File ext/tk/lib/tk.rb, line 1584 def callback_return fail TkCallbackReturn, "Tk callback returns 'return' status" end