Method: Tk::Iwidgets::Dialogshell#insert
- Defined in:
- lib/tkextlib/iwidgets/dialogshell.rb
#insert(idx, tag = nil, keys = {}) ⇒ Object
95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/tkextlib/iwidgets/dialogshell.rb', line 95 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 |