Method: Tk::BWidget::MessageDlg#cget

Defined in:
lib/tkextlib/bwidget/messagedlg.rb

#cget(slot) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
# File 'lib/tkextlib/bwidget/messagedlg.rb', line 58

def cget(slot)
  slot = slot.to_s
  if slot == 'relative'
    slot = 'parent'
  end
  if winfo_exist?
    val = super(slot)
    @keys[slot] = val
  end
  @keys[slot]
end