Class: RemoteTkIp

Inherits:
MultiTkIp show all
Defined in:
lib/remote-tk.rb,
lib/remote-tk.rb,
lib/remote-tk.rb,
lib/remote-tk.rb

Constant Summary collapse

@@IP_TABLE =
MultiTkIp._IP_TABLE
@@TK_TABLE_LIST =
MultiTkIp._TK_TABLE_LIST

Constants inherited from MultiTkIp

MultiTkIp::BASE_DIR, MultiTkIp::INTERP_MUTEX, MultiTkIp::INTERP_ROOT_CHECK, MultiTkIp::INTERP_THREAD, MultiTkIp::INTERP_THREAD_STATUS, MultiTkIp::RUN_EVENTLOOP_ON_MAIN_THREAD, MultiTkIp::WITH_ENCODING, MultiTkIp::WITH_RUBY_VM

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MultiTkIp

_DEFAULT_MASTER, _IP_TABLE, _TK_TABLE_LIST, #__create_safe_slave_obj, #__create_trusted_slave_obj, __getip, #__pseudo_toplevel, #__pseudo_toplevel=, #__pseudo_toplevel_evaluable=, #__pseudo_toplevel_evaluable?, #_add_new_tables, #_add_tk_procs, _conv_listelement, _create_console, #_create_slave_object, #_default_delete_hook, #_destroy_slaves_of_slaveIP, _eval, _eval_with_enc, _eval_without_enc, _fromUTF8, _get_global_var, _get_global_var2, _get_variable, _get_variable2, #_init_ip_env, #_init_ip_internal, _invoke, _invoke_with_enc, _invoke_without_enc, _ip_id_, #_make_menu_embeddable, _make_menu_embeddable, _merge_tklist, _proc_on_current_safelevel, #_proc_on_current_safelevel, #_proc_on_safelevel, _proc_on_safelevel, #_receiver_mainloop, #_remove_tk_procs, _return_value, _set_global_var, _set_global_var2, _set_variable, _set_variable2, _split_tklist, _thread_tkwait, _thread_vwait, #_tk_cmd_tbl, #_tk_table_list, #_tk_windows, _toUTF8, _unset_global_var, _unset_global_var2, _unset_variable, _unset_variable2, #abort, abort, add_tk_procs, alias_delete, #alias_delete, alias_info, #alias_info, #alias_target, alias_target, aliases, #aliases, #alive?, alive?, allow_ruby_exit=, allow_ruby_exit?, #background_call, #background_eval, #background_eval_proc, #background_eval_str, #background_eval_string, #bg_call, #bg_eval, bg_eval, #bg_eval_proc, bg_eval_proc, #bg_eval_str, #bg_eval_string, bg_eval_string, bgerror, #call, cb_entry_class, #cb_error, #cb_eval, create_table, #def_alias, def_alias, default_encoding, default_encoding=, #default_encoding=, default_master?, delete, #delete_cmd, delete_cmd, #delete_slaves, delete_slaves, deleted?, encoding, encoding=, #encoding=, encoding_convert_from, encoding_convert_to, encoding_convertfrom, #encoding_convertfrom, #encoding_convertto, encoding_convertto, encoding_name, #encoding_name, #encoding_obj, encoding_obj, encoding_table, #encoding_table, #eval, eval, #eval_callback, eval_proc, #eval_proc, #eval_str, eval_string, #eval_string, #exist?, exist?, #exit, exit, #exit!, exit!, #expose_cmd, expose_cmd, force_default_encoding=, #force_default_encoding=, force_default_encoding?, #force_default_encoding?, #get_bgerror_handler, get_cb_entry, get_limit, #get_limit, has_mainwindow?, hidden_cmds, #hidden_cmds, #hide_cmd, hide_cmd, inherited, init_ip_env, init_ip_internal, #inspect, invalid_namespace?, invoke_hidden, #invoke_hidden, invoke_hidden_on_global, #invoke_hidden_on_global, #invoke_hidden_on_namespace, invoke_hidden_on_namespace, ip_name, #ip_name, make_safe, mark_trusted, #mark_trusted, #master?, master?, method_missing, new_master, new_safe_slave, new_slave, #path, path, #recursion_limit, recursion_limit, remove_tk_procs, restart, #running_mainloop?, safe?, safe_base?, #safe_level, safe_level, #safe_level=, safe_level=, #safeip_add_to_access_path, #safeip_configinfo, #safeip_configure, #safeip_delete, #safeip_find_in_access_path, #safeip_set_log_cmd, #set_bgerror_handler, #set_cb_error, set_limit, #set_limit, #set_safe_level, set_safe_level, share_stderr, #share_stderr, #share_stdin, share_stdin, #share_stdio, share_stdio, #share_stdout, share_stdout, slave?, #slave?, #slaves, slaves, #thread_eval_proc, tk_cmd_tbl, tk_object_table, tk_windows, #to_eval, to_eval, #transfer_stderr, transfer_stderr, #transfer_stdin, transfer_stdin, transfer_stdio, #transfer_stdio, transfer_stdout, #transfer_stdout, #wait_on_mainloop=, #wait_on_mainloop?

Constructor Details

#initialize(remote_ip, displayof = nil, timeout = 5) ⇒ RemoteTkIp

Returns a new instance of RemoteTkIp.


64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/remote-tk.rb', line 64

def initialize(remote_ip, displayof=nil, timeout=5)
  @interp = MultiTkIp.__getip
  if @interp.safe?
    fail SecurityError, "safe-IP cannot create RemoteTkIp"
  end


  @interp.allow_ruby_exit = false
  @appname = @interp._invoke('tk', 'appname')
  @remote = remote_ip.to_s.dup.freeze
  if displayof.kind_of?(TkWindow)
    @displayof = displayof.path.dup.freeze
  else
    @displayof = nil
  end
  if self.deleted?
    fail RuntimeError, "no Tk application named \"#{@remote}\""
  end

  @tk_windows = {}
  @tk_table_list = []
  @slave_ip_tbl = {}
  @slave_ip_top = {}

  @force_default_encoding ||= TkUtil.untrust([false])
  @encoding ||= TkUtil.untrust([nil])
  def @encoding.to_s; self.join(nil); end

  TkUtil.untrust(@tk_windows)    unless @tk_windows.tainted?
  TkUtil.untrust(@tk_table_list) unless @tk_table_list.tainted?
  TkUtil.untrust(@slave_ip_tbl)  unless @slave_ip_tbl.tainted?
  TkUtil.untrust(@slave_ip_top)  unless @slave_ip_top.tainted?

  @system = Object.new

  @threadgroup  = ThreadGroup.new

  @safe_level = [$SAFE]

  @wait_on_mainloop = [true, 0]

  @cmd_queue = Queue.new

=begin
  @cmd_receiver, @receiver_watchdog = _create_receiver_and_watchdog()

  @threadgroup.add @cmd_receiver
  @threadgroup.add @receiver_watchdog

  @threadgroup.enclose
=end
  @@DEFAULT_MASTER.assign_receiver_and_watchdog(self)

  @@IP_TABLE[@threadgroup] = self
  @@TK_TABLE_LIST.size.times{
    (tbl = {}).tainted? || TkUtil.untrust(tbl)
    @tk_table_list << tbl
  }

  @ret_val = TkVariable.new
  if timeout > 0 && ! _available_check(timeout)
    fail RuntimeError, "cannot create connection"
  end
  @ip_id = _create_connection

  class << self
    undef :instance_eval
  end

  self.freeze  # defend against modification
end

Class Method Details

.do_one_event(flag = nil) ⇒ Object


498
499
500
# File 'lib/remote-tk.rb', line 498

def do_one_event(flag = nil)
  fail RuntimeError, 'not support "do_one_event" on the remote interpreter'
end

.get_eventloop_tickObject


510
511
512
# File 'lib/remote-tk.rb', line 510

def get_eventloop_tick
  fail RuntimeError, 'not support "get_eventloop_tick" on the remote interpreter'
end

.get_eventloop_weightObject


522
523
524
# File 'lib/remote-tk.rb', line 522

def get_eventloop_weight
  fail RuntimeError, 'not support "get_eventloop_weight" on the remote interpreter'
end

.get_no_event_waitObject


516
517
518
# File 'lib/remote-tk.rb', line 516

def get_no_event_wait
  fail RuntimeError, 'not support "get_no_event_wait" on the remote interpreter'
end

.mainloop(*args) ⇒ Object


492
493
494
# File 'lib/remote-tk.rb', line 492

def mainloop(*args)
  fail RuntimeError, 'not support "mainloop" on the remote interpreter'
end

.mainloop_abort_on_exceptionObject


501
502
503
# File 'lib/remote-tk.rb', line 501

def mainloop_abort_on_exception
  fail RuntimeError, 'not support "mainloop_abort_on_exception" on the remote interpreter'
end

.mainloop_abort_on_exception=(mode) ⇒ Object


504
505
506
# File 'lib/remote-tk.rb', line 504

def mainloop_abort_on_exception=(mode)
  fail RuntimeError, 'not support "mainloop_abort_on_exception=" on the remote interpreter'
end

.mainloop_watchdog(*args) ⇒ Object


495
496
497
# File 'lib/remote-tk.rb', line 495

def mainloop_watchdog(*args)
  fail RuntimeError, 'not support "mainloop_watchdog" on the remote interpreter'
end

.manipulable?Boolean

Returns:

  • (Boolean)

140
141
142
# File 'lib/remote-tk.rb', line 140

def self.manipulable?
  true
end

.new(*args, &b) ⇒ Object


56
57
58
59
60
# File 'lib/remote-tk.rb', line 56

def new(*args, &b)
  ip = __new(*args)
  ip.eval_proc(&b) if b
  ip
end

.set_eventloop_tick(*args) ⇒ Object


507
508
509
# File 'lib/remote-tk.rb', line 507

def set_eventloop_tick(*args)
  fail RuntimeError, 'not support "set_eventloop_tick" on the remote interpreter'
end

.set_eventloop_weight(*args) ⇒ Object


519
520
521
# File 'lib/remote-tk.rb', line 519

def set_eventloop_weight(*args)
  fail RuntimeError, 'not support "set_eventloop_weight" on the remote interpreter'
end

.set_no_event_wait(*args) ⇒ Object


513
514
515
# File 'lib/remote-tk.rb', line 513

def set_no_event_wait(*args)
  fail RuntimeError, 'not support "set_no_event_wait" on the remote interpreter'
end

.to_sObject


90
# File 'lib/remote-tk.rb', line 90

def @encoding.to_s; self.join(nil); end

Instance Method Details

#__eval(str) ⇒ Object


336
337
338
# File 'lib/remote-tk.rb', line 336

def __eval(str)
  _appsend(false, false, str)
end

#__invoke(*args) ⇒ Object


353
354
355
# File 'lib/remote-tk.rb', line 353

def __invoke(*args)
  _appsend(false, false, *args)
end

#_conv_listelement(str) ⇒ Object

Raises:

  • (SecurityError)

447
448
449
450
# File 'lib/remote-tk.rb', line 447

def _conv_listelement(str)
  raise SecurityError, "no permission to manipulate" unless self.manipulable?
  @interp._conv_listelement(str)
end

#_create_consoleObject


452
453
454
# File 'lib/remote-tk.rb', line 452

def _create_console
  fail RuntimeError, 'not support "_create_console" on the remote interpreter'
end

#_eval(str) ⇒ Object


339
340
341
# File 'lib/remote-tk.rb', line 339

def _eval(str)
  _appsend(nil, false, str)
end

#_eval_with_enc(str) ⇒ Object


345
346
347
# File 'lib/remote-tk.rb', line 345

def _eval_with_enc(str)
  _appsend(true, false, str)
end

#_eval_without_enc(str) ⇒ Object


342
343
344
# File 'lib/remote-tk.rb', line 342

def _eval_without_enc(str)
  _appsend(false, false, str)
end

#_fromUTF8(str, encoding = nil) ⇒ Object

Raises:

  • (SecurityError)

371
372
373
374
# File 'lib/remote-tk.rb', line 371

def _fromUTF8(str, encoding=nil)
  raise SecurityError, "no permission to manipulate" unless self.manipulable?
  @interp._fromUTF8(str, encoding)
end

#_get_global_var(var_name) ⇒ Object


416
417
418
# File 'lib/remote-tk.rb', line 416

def _get_global_var(var_name)
  _appsend(false, 'set', TkComm::_get_eval_string(var_name))
end

#_get_global_var2(var_name, index_name) ⇒ Object


419
420
421
# File 'lib/remote-tk.rb', line 419

def _get_global_var2(var_name, index_name)
  _appsend(false, 'set', "#{TkComm::_get_eval_string(var_name)}(#{TkComm::_get_eval_string(index_name)})")
end

#_get_variable(var_name, flag) ⇒ Object


389
390
391
392
# File 'lib/remote-tk.rb', line 389

def _get_variable(var_name, flag)
  # ignore flag
  _appsend(false, 'set', TkComm::_get_eval_string(var_name))
end

#_get_variable2(var_name, index_name, flag) ⇒ Object


393
394
395
396
# File 'lib/remote-tk.rb', line 393

def _get_variable2(var_name, index_name, flag)
  # ignore flag
  _appsend(false, 'set', "#{TkComm::_get_eval_string(var_name)}(#{TkComm::_get_eval_string(index_name)})")
end

#_invoke(*args) ⇒ Object


349
350
351
# File 'lib/remote-tk.rb', line 349

def _invoke(*args)
  _appsend(nil, false, *args)
end

#_invoke_with_enc(*args) ⇒ Object


362
363
364
# File 'lib/remote-tk.rb', line 362

def _invoke_with_enc(*args)
  _appsend(true, false, *args)
end

#_invoke_without_enc(*args) ⇒ Object


359
360
361
# File 'lib/remote-tk.rb', line 359

def _invoke_without_enc(*args)
  _appsend(false, false, *args)
end

#_ip_id_Object


149
150
151
# File 'lib/remote-tk.rb', line 149

def _ip_id_
  @ip_id
end

#_merge_tklist(*args) ⇒ Object

Raises:

  • (SecurityError)

442
443
444
445
# File 'lib/remote-tk.rb', line 442

def _merge_tklist(*args)
  raise SecurityError, "no permission to manipulate" unless self.manipulable?
  @interp._merge_tklist(*args)
end

#_return_valueObject

Raises:

  • (SecurityError)

384
385
386
387
# File 'lib/remote-tk.rb', line 384

def _return_value
  raise SecurityError, "no permission to manipulate" unless self.manipulable?
  @interp._return_value
end

#_set_global_var(var_name, value) ⇒ Object


423
424
425
# File 'lib/remote-tk.rb', line 423

def _set_global_var(var_name, value)
  _appsend(false, 'set', TkComm::_get_eval_string(var_name), TkComm::_get_eval_string(value))
end

#_set_global_var2(var_name, index_name, value) ⇒ Object


426
427
428
# File 'lib/remote-tk.rb', line 426

def _set_global_var2(var_name, index_name, value)
  _appsend(false, 'set', "#{TkComm::_get_eval_string(var_name)}(#{TkComm::_get_eval_string(index_name)})", TkComm::_get_eval_string(value))
end

#_set_variable(var_name, value, flag) ⇒ Object


398
399
400
401
# File 'lib/remote-tk.rb', line 398

def _set_variable(var_name, value, flag)
  # ignore flag
  _appsend(false, 'set', TkComm::_get_eval_string(var_name), TkComm::_get_eval_string(value))
end

#_set_variable2(var_name, index_name, value, flag) ⇒ Object


402
403
404
405
# File 'lib/remote-tk.rb', line 402

def _set_variable2(var_name, index_name, value, flag)
  # ignore flag
  _appsend(false, 'set', "#{TkComm::_get_eval_string(var_name)}(#{TkComm::_get_eval_string(index_name)})", TkComm::_get_eval_string(value))
end

#_split_tklist(str) ⇒ Object

Raises:

  • (SecurityError)

437
438
439
440
# File 'lib/remote-tk.rb', line 437

def _split_tklist(str)
  raise SecurityError, "no permission to manipulate" unless self.manipulable?
  @interp._split_tklist(str)
end

#_thread_tkwait(mode, target) ⇒ Object


380
381
382
# File 'lib/remote-tk.rb', line 380

def _thread_tkwait(mode, target)
  _appsend(false, 'thread_tkwait', mode, target)
end

#_thread_vwait(var_name) ⇒ Object


376
377
378
# File 'lib/remote-tk.rb', line 376

def _thread_vwait(var_name)
  _appsend(false, 'thread_vwait', varname)
end

#_toUTF8(str, encoding = nil) ⇒ Object

Raises:

  • (SecurityError)

366
367
368
369
# File 'lib/remote-tk.rb', line 366

def _toUTF8(str, encoding=nil)
  raise SecurityError, "no permission to manipulate" unless self.manipulable?
  @interp._toUTF8(str, encoding)
end

#_unset_global_var(var_name) ⇒ Object


430
431
432
# File 'lib/remote-tk.rb', line 430

def _unset_global_var(var_name)
  _appsend(false, 'unset', TkComm::_get_eval_string(var_name))
end

#_unset_global_var2(var_name, index_name) ⇒ Object


433
434
435
# File 'lib/remote-tk.rb', line 433

def _unset_global_var2(var_name, index_name)
  _appsend(false, 'unset', "#{var_name}(#{index_name})")
end

#_unset_variable(var_name, flag) ⇒ Object


407
408
409
410
# File 'lib/remote-tk.rb', line 407

def _unset_variable(var_name, flag)
  # ignore flag
  _appsend(false, 'unset', TkComm::_get_eval_string(var_name))
end

#_unset_variable2(var_name, index_name, flag) ⇒ Object


411
412
413
414
# File 'lib/remote-tk.rb', line 411

def _unset_variable2(var_name, index_name, flag)
  # ignore flag
  _appsend(false, 'unset', "#{var_name}(#{index_name})")
end

#allow_ruby_exit=(mode) ⇒ Object


288
289
290
# File 'lib/remote-tk.rb', line 288

def allow_ruby_exit= (mode)
  fail RuntimeError, 'cannot change mode of the remote interpreter'
end

#allow_ruby_exit?Boolean

Returns:

  • (Boolean)

284
285
286
# File 'lib/remote-tk.rb', line 284

def allow_ruby_exit?
  false
end

#appsend(async, *args) ⇒ Object

Raises:

  • (SecurityError)

235
236
237
238
239
240
241
242
243
244
245
246
247
# File 'lib/remote-tk.rb', line 235

def appsend(async, *args)
  raise SecurityError, "no permission to manipulate" unless self.manipulable?

  if async != true && async != false && async != nil
    args.unshift(async)
    async = false
  end
  if @displayof
    Tk.appsend_displayof(@remote, @displayof, async, *args)
  else
    Tk.appsend(@remote, async, *args)
  end
end

#create_slave(name, safe = false) ⇒ Object


263
264
265
266
267
268
269
270
# File 'lib/remote-tk.rb', line 263

def create_slave(name, safe=false)
  if safe
    safe_opt = ''
  else
    safe_opt = '-safe'
  end
  _appsend(false, false, "interp create #{safe_opt} -- #{name}")
end

#deleteObject


292
293
294
# File 'lib/remote-tk.rb', line 292

def delete
  _appsend(false, true, 'exit')
end

#deleted?Boolean

Returns:

  • (Boolean)

Raises:

  • (SecurityError)

296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
# File 'lib/remote-tk.rb', line 296

def deleted?
  raise SecurityError, "no permission to manipulate" unless self.manipulable?

  if @displayof
    lst = @interp._invoke_without_enc('winfo', 'interps',
                                      '-displayof', @displayof)
  else
    lst = @interp._invoke_without_enc('winfo', 'interps')
  end
  # unless @interp._split_tklist(lst).index(@remote)
  unless @interp._split_tklist(lst).index(_toUTF8(@remote))
    true
  else
    false
  end
end

#do_one_event(flag = nil) ⇒ Object


462
463
464
# File 'lib/remote-tk.rb', line 462

def do_one_event(flag = nil)
  fail RuntimeError, 'not support "do_one_event" on the remote interpreter'
end

#get_eventloop_tickObject


474
475
476
# File 'lib/remote-tk.rb', line 474

def get_eventloop_tick
  fail RuntimeError, 'not support "get_eventloop_tick" on the remote interpreter'
end

#get_eventloop_weightObject


486
487
488
# File 'lib/remote-tk.rb', line 486

def get_eventloop_weight
  fail RuntimeError, 'not support "get_eventloop_weight" on the remote interpreter'
end

#get_no_event_waitObject


480
481
482
# File 'lib/remote-tk.rb', line 480

def get_no_event_wait
  fail RuntimeError, 'not support "get_no_event_wait" on the remote interpreter'
end

#has_mainwindow?Boolean

Returns:

  • (Boolean)

Raises:

  • (SecurityError)

313
314
315
316
317
318
319
320
321
322
323
324
325
326
# File 'lib/remote-tk.rb', line 313

def has_mainwindow?
  raise SecurityError, "no permission to manipulate" unless self.manipulable?

  begin
    inf = @interp._invoke_without_enc('info', 'command', '.')
  rescue Exception
    return nil
  end
  if !inf.kind_of?(String) || inf != '.'
    false
  else
    true
  end
end

#invalid_namespace?Boolean

Returns:

  • (Boolean)

328
329
330
# File 'lib/remote-tk.rb', line 328

def invalid_namespace?
  false
end

#is_rubytk?Boolean

Returns:

  • (Boolean)

229
230
231
232
233
# File 'lib/remote-tk.rb', line 229

def is_rubytk?
  return false if _appsend(false, false, 'info', 'command', 'ruby') == ""
  [ _appsend(false, false, 'ruby', 'RUBY_VERSION'),
    _appsend(false, false, 'set', 'tk_patchLevel') ]
end

#mainloopObject


456
457
458
# File 'lib/remote-tk.rb', line 456

def mainloop
  fail RuntimeError, 'not support "mainloop" on the remote interpreter'
end

#mainloop_abort_on_exceptionObject


465
466
467
# File 'lib/remote-tk.rb', line 465

def mainloop_abort_on_exception
  fail RuntimeError, 'not support "mainloop_abort_on_exception" on the remote interpreter'
end

#mainloop_abort_on_exception=(mode) ⇒ Object


468
469
470
# File 'lib/remote-tk.rb', line 468

def mainloop_abort_on_exception=(mode)
  fail RuntimeError, 'not support "mainloop_abort_on_exception=" on the remote interpreter'
end

#mainloop_watchdogObject


459
460
461
# File 'lib/remote-tk.rb', line 459

def mainloop_watchdog
  fail RuntimeError, 'not support "mainloop_watchdog" on the remote interpreter'
end

#make_safeObject


272
273
274
# File 'lib/remote-tk.rb', line 272

def make_safe
  fail RuntimeError, 'cannot change safe mode of the remote interpreter'
end

#manipulable?Boolean

Returns:

  • (Boolean)

136
137
138
139
# File 'lib/remote-tk.rb', line 136

def manipulable?
  return true if (Thread.current.group == ThreadGroup::Default)
  MultiTkIp.__getip == @interp && ! @interp.safe?
end

#rb_appsend(async, *args) ⇒ Object

Raises:

  • (SecurityError)

249
250
251
252
253
254
255
256
257
258
259
260
261
# File 'lib/remote-tk.rb', line 249

def rb_appsend(async, *args)
  raise SecurityError, "no permission to manipulate" unless self.manipulable?

  if async != true && async != false && async != nil
    args.unshift(async)
    async = false
  end
  if @displayof
    Tk.rb_appsend_displayof(@remote, @displayof, async, *args)
  else
    Tk.rb_appsend(@remote, async, *args)
  end
end

#ready?(timeout = 5) ⇒ Boolean

Returns:

  • (Boolean)

222
223
224
225
226
227
# File 'lib/remote-tk.rb', line 222

def ready?(timeout=5)
  if timeout < 0
    fail ArgumentError, "timeout must be positive number"
  end
  _available_check(timeout)
end

#restartObject


332
333
334
# File 'lib/remote-tk.rb', line 332

def restart
  fail RuntimeError, 'cannot restart the remote interpreter'
end

#safe?Boolean

Returns:

  • (Boolean)

276
277
278
# File 'lib/remote-tk.rb', line 276

def safe?
  _appsend(false, false, 'interp issafe')
end

#safe_base?Boolean

Returns:

  • (Boolean)

280
281
282
# File 'lib/remote-tk.rb', line 280

def safe_base?
  false
end

#set_eventloop_tick(*args) ⇒ Object


471
472
473
# File 'lib/remote-tk.rb', line 471

def set_eventloop_tick(*args)
  fail RuntimeError, 'not support "set_eventloop_tick" on the remote interpreter'
end

#set_eventloop_weight(*args) ⇒ Object


483
484
485
# File 'lib/remote-tk.rb', line 483

def set_eventloop_weight(*args)
  fail RuntimeError, 'not support "set_eventloop_weight" on the remote interpreter'
end

#set_no_event_wait(*args) ⇒ Object


477
478
479
# File 'lib/remote-tk.rb', line 477

def set_no_event_wait(*args)
  fail RuntimeError, 'not support "set_no_event_wait" on the remote interpreter'
end