Module: Tk::Tcllib::Widget

Defined in:
lib/tkextlib/tcllib/ruler.rb,
lib/tkextlib/tcllib/widget.rb,
lib/tkextlib/tcllib/widget.rb,
lib/tkextlib/tcllib/dialog.rb,
lib/tkextlib/tcllib/toolbar.rb,
lib/tkextlib/tcllib/calendar.rb,
lib/tkextlib/tcllib/scrollwin.rb,
lib/tkextlib/tcllib/dateentry.rb,
lib/tkextlib/tcllib/menuentry.rb,
lib/tkextlib/tcllib/statusbar.rb,
lib/tkextlib/tcllib/superframe.rb,
lib/tkextlib/tcllib/panelframe.rb,
lib/tkextlib/tcllib/canvas_zoom.rb,
lib/tkextlib/tcllib/screenruler.rb,
lib/tkextlib/tcllib/canvas_sqmap.rb,
lib/tkextlib/tcllib/scrolledwindow.rb

Defined Under Namespace

Modules: ToolbarItemConfig Classes: Calendar, Canvas_Sqmap, Canvas_Zoom, Dateentry, Dialog, Menuentry, PanelFrame, Ruler, ScreenRuler, ScrolledWindow, Statusbar, SuperFrame, Toolbar, ToolbarItem

Constant Summary collapse

PACKAGE_NAME =
'widget'.freeze
Scrolledwindow =
ScrolledWindow
DateEntry =
Dateentry
Menuentry
Superframe =
SuperlFrame
Panelframe =
PanelFrame
Screenruler =
ScreenRuler

Class Method Summary collapse

Class Method Details

.isa(compare_as, *args) ⇒ Object

— followings may be private functions of tklib



31
32
33
34
35
36
37
38
39
40
41
# File 'lib/tkextlib/tcllib/widget.rb', line 31

def self.isa(compare_as, *args)
  begin
    return Tk.tk_call('::widget::isa', compare_as, *args)
  rescue => e
    if TkComm.bool(Tk.tk_call('info','command','::widget::isa')) ||
        ! TkComm.bool(Tk.tk_call('info','command','::widget::validate'))
      fail e
    end
  end
  Tk.tk_call('::widget::validate', compare_as, *args)
end

.package_nameObject



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

def self.package_name
  PACKAGE_NAME
end

.package_versionObject



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

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

.validate(compare_as, *args) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/tkextlib/tcllib/widget.rb', line 42

def self.validate(compare_as, *args)
  begin
    return Tk.tk_call('::widget::validate', compare_as, *args)
  rescue => e
    if TkComm.bool(Tk.tk_call('info','command','::widget::validate')) ||
        ! TkComm.bool(Tk.tk_call('info','command','::widget::isa'))
      fail e
    end
  end
  Tk.tk_call('::widget::isa', compare_as, *args)
end