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


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

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

.package_nameObject


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

def self.package_name
  PACKAGE_NAME
end

.package_versionObject


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

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

.signal(*args) ⇒ Object


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

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


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

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