Method: Tk::Iwidgets::Messagebox#type_add

Defined in:
lib/tkextlib/iwidgets/messagebox.rb

#type_add(tag = nil, keys = {}) ⇒ Object



67
68
69
70
71
72
73
74
75
76
77
# File 'lib/tkextlib/iwidgets/messagebox.rb', line 67

def type_add(tag=nil, keys={})
  if tag.kind_of?(Hash)
    keys = tag
    tag = nil
  end
  unless tag
    tag = Tk::Itk::Component.new(self)
  end
  tk_call(@path, 'type', 'add', tagid(tag), *hash_kv(keys))
  tag
end