Class: Tk::Tcllib::KHIM

Inherits:
TkToplevel
  • Object
show all
Defined in:
lib/tkextlib/tcllib/khim.rb,
lib/tkextlib/tcllib/khim.rb

Defined Under Namespace

Classes: Help

Constant Summary collapse

PACKAGE_NAME =
'khim'.freeze
TkCommandNames =
['::khim::getOptions'.freeze].freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.get_configObject

> cmd_string



40
41
42
# File 'lib/tkextlib/tcllib/khim.rb', line 40

def self.get_config #=> cmd_string
  Tk.tk_call_without_enc('::khim::getConfig')
end

.get_options(parent = '') ⇒ Object



35
36
37
38
# File 'lib/tkextlib/tcllib/khim.rb', line 35

def self.get_options(parent='')
  path = parent + '.tcllib_widget_khim_dialog'
  self.new(:widgetname => path)
end

.package_nameObject



18
19
20
# File 'lib/tkextlib/tcllib/khim.rb', line 18

def self.package_name
  PACKAGE_NAME
end

.package_versionObject



22
23
24
25
26
27
28
# File 'lib/tkextlib/tcllib/khim.rb', line 22

def self.package_version
  begin
    TkPackage.require('khim')
  rescue
    ''
  end
end

.set_config(*args) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
# File 'lib/tkextlib/tcllib/khim.rb', line 44

def self.set_config(*args)
  if args.length == 1
    # cmd_string generated by
    #Tk.ip_eval_without_enc(cmd_string)
    Tk.ip_eval(cmd_string)
  else
    # args for setConfig command
    #Tk.tk_call_without_enc('::khim::setConfig', *args)
    Tk.tk_call('::khim::setConfig', *args)
  end
end

.showHelpObject



56
57
58
# File 'lib/tkextlib/tcllib/khim.rb', line 56

def self.showHelp
  Tk::Tcllib::KHIM::Help.new
end

Instance Method Details

#create_self(keys = None) ⇒ Object



60
61
62
63
# File 'lib/tkextlib/tcllib/khim.rb', line 60

def create_self(keys=None)
  @db_class = @classname = nil
  super(None) # ignore keys
end