From: Hidetoshi NAGAI Date: 2006-09-15T12:27:18+09:00 Subject: Re: TkDialogBox missing? I'm sorry for the belated reply to your old mail. From: Andrew Thompson Subject: Re: TkDialogBox missing? Date: Fri, 15 Sep 2006 06:24:33 +0900 Message-ID: <5d368c27986870ce918b5bd06c1055c7@ruby-forum.com> > I'm having issues with using 'itemconfigure' on a tab: > > irb(main):007:0> tabs.itemconfigure(0, :compound=>:text) > ArgumentError: wrong number of arguments (1 for 0) > from /usr/local/lib/ruby/1.8/tk/itemconfig.rb:232:in > `__item_methodcall_optkeys' > from /usr/local/lib/ruby/1.8/tk/itemconfig.rb:232:in > `itemconfigure' > from (irb):7 > irb(main):008:0> Very sorry. That's a disgraceful bug. Please try this patch. --- tnotebook.rb.~1.1.2.7.~ 2005-12-08 17:03:25.000000000 +0900 +++ tnotebook.rb 2006-09-15 12:19:56.000000000 +0900 @@ -27,15 +27,15 @@ end private :__item_config_cmd - def __item_listval_optkeys + def __item_listval_optkeys(id) [] end private :__item_listval_optkeys - def __item_methodcall_optkeys # { key=>method, ... } + def __item_methodcall_optkeys(id) # { key=>method, ... } {} end - private :__item_listval_optkeys + private :__item_methodcall_optkeys #alias tabcget itemcget alias tabconfigure itemconfigure -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)