From: Andrew Thompson Date: 2006-09-07T03:23:04+09:00 Subject: Re: TkDialogBox missing? Hidetoshi NAGAI wrote: > > Great! Please post here or send to me. Okay, it's been a while since I wrote these, so I'm not entirely sure what I ended up changing... if you have any questions, please ask... This was all minor tweaks I believe... #add the 'tab' method so we can do per-tab configuration class Tk::Tile::TNotebook def tab(idx, keys=nil) if keys and keys != None tk_send('tab', idx, *hash_kv(keys)) else tk_send('tab', idx) end end def select(idx=nil) if idx tk_send('select', idx) else tk_send('select') end self end end class Tk::Tile::TCombobox def current number(tk_send_without_enc('current')) end end #insert should return the rowid class Tk::Tile::Treeview def insert(parent, idx, keys={}) keys = _symbolkey2str(keys) id = keys.delete('id') if id tk_send('insert', parent, idx, '-id', id, *hash_kv(keys)) else tk_send('insert', parent, idx, *hash_kv(keys)) end end end Andrew -- Posted via http://www.ruby-forum.com/.