From: Hidetoshi NAGAI Date: 2005-06-29T15:28:41+09:00 Subject: Re: Problem in binding IWidget combobox to event From: Hidetoshi NAGAI Subject: Re: Problem in binding IWidget combobox to event Date: Wed, 29 Jun 2005 00:52:32 +0900 Message-ID: <20050629.005230.74739987.nagai@ai.kyutech.ac.jp> > TkVariable#trace will be able to help you. Possibly, that is more > simple than getting the listbox component and binding to it. If you need to bind to the listbox for any reason, you can get the target widget by 'component_widget' method. --------------------------------------------------------------- cb1.component_widget(:list).component_widget(:listbox).bind('Return'){ puts cb1.get_curselection; $stdout.flush } --------------------------------------------------------------- Note: That is not enough because there is no selection at the first time of showing the listbox. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)