Sha256: dbe2921451b6ebe232b006357d0a78ef503ab01ec9a5e3a26c8761d25e1148d7
Contents?: true
Size: 1.27 KB
Versions: 3
Compression:
Stored size: 1.27 KB
Contents
# # tk/console.rb : control the console on system without a real console # require 'tk' module TkConsole include Tk extend Tk TkCommandNames = ['console'.freeze, 'consoleinterp'.freeze].freeze def self.create TkCore::INTERP._create_console end self.create # initialize console def self.title(str=None) tk_call 'console', str end def self.hide tk_call_without_enc('console', 'hide') end def self.show tk_call_without_enc('console', 'show') end def self.eval(tcl_script) # # supports a Tcl script only # I have no idea to support a Ruby script seamlessly. # _fromUTF8(tk_call_without_enc('console', 'eval', _get_eval_enc_str(tcl_script))) end def self.maininterp_eval(tcl_script) # # supports a Tcl script only # I have no idea to support a Ruby script seamlessly. # _fromUTF8(tk_call_without_enc('consoleinterp', 'eval', _get_eval_enc_str(tcl_script))) end def self.maininterp_record(tcl_script) # # supports a Tcl script only # I have no idea to support a Ruby script seamlessly. # _fromUTF8(tk_call_without_enc('consoleinterp', 'record', _get_eval_enc_str(tcl_script))) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tk_as_gem-0.1.0 | ext/lib/tk/console.rb |
tk_as_gem-0.0.1 | ext/lib/tk/console.rb |
tk_as_gem-0.0.0 | ext/lib/tk/console.rb |