Module: Tk::TclX

Defined in:
lib/tkextlib/tclx/tclx.rb

Defined Under Namespace

Classes: XPG3_MsgCat

Constant Summary collapse

PACKAGE_NAME =
'Tclx'.freeze

Class Method Summary collapse

Class Method Details

.infox(*args) ⇒ Object



31
32
33
# File 'lib/tkextlib/tclx/tclx.rb', line 31

def self.infox(*args)
  Tk.tk_call('infox', *args)
end

.package_nameObject



19
20
21
# File 'lib/tkextlib/tclx/tclx.rb', line 19

def self.package_name
  PACKAGE_NAME
end

.package_versionObject



23
24
25
26
27
28
29
# File 'lib/tkextlib/tclx/tclx.rb', line 23

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

.signal(*args) ⇒ Object



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

def self.signal(*args)
  warn("Warning: Don't recommend to use TclX's 'signal' command. Please use Ruby's 'Signal.trap' method")
  Tk.tk_call('signal', *args)
end

.signal_restart(*args) ⇒ Object



40
41
42
43
# File 'lib/tkextlib/tclx/tclx.rb', line 40

def self.signal_restart(*args)
  warn("Warning: Don't recommend to use TclX's 'signal' command. Please use Ruby's 'Signal.trap' method")
  Tk.tk_call('signal', '-restart', *args)
end