Method: Tk::Iwidgets::Radiobox#insert
- Defined in:
- ext/lib/tkextlib/iwidgets/radiobox.rb
#insert(idx, tag = nil, keys = {}) ⇒ Object
102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'ext/lib/tkextlib/iwidgets/radiobox.rb', line 102 def insert(idx, tag=nil, keys={}) if tag.kind_of?(Hash) keys = tag tag = nil end if tag tag = Tk::Itk::Component.new(self, tagid(tag)) else tag = Tk::Itk::Component.new(self) end tk_call(@path, 'insert', index(idx), tagid(tag), *hash_kv(keys)) tag end |