From: Hidetoshi NAGAI Date: 2007-04-03T19:13:07+09:00 Subject: Re: Problem with Tk::Tile::Dialog#client_frame From: Christian Surlykke Subject: Re: Problem with Tk::Tile::Dialog#client_frame Date: Mon, 26 Mar 2007 03:51:19 +0900 Message-ID: <200703252051.15413.christian@surlykke.dk> > Still trying to call Tk::Tile::Dialog#client_frame and still having problems. (snip) > - but then I get: > > /usr/local/lib/ruby/1.8/tk.rb:1694:in `_invoke_without_enc': bad window path > name ".w00000.f" (RuntimeError) > from /usr/local/lib/ruby/1.8/tk.rb:1694:in `_ip_invoke_core' > from /usr/local/lib/ruby/1.8/tk.rb:1730:in `_tk_call_core' > from /usr/local/lib/ruby/1.8/tk.rb:1758:in `tk_call_without_enc' > from ./dialogtst.rb:32:in `client_frame' > from ./dialogtst.rb:37 The real widget of Tk::Tile::Dialog is generated when "show" method is called. Before that, "client_frame" method returns an invalid widget path. It is the specificaion of the widget. But, I can understand that it is inconvenient. I'll consider better ways. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)