Date: Tue, 13 Apr 2004 17:16:07 +0900 (JST) Message-Id: <20040413.171607.63225763.garrigue at kurims.kyoto-u.ac.jp> To: briand at aracnet.com Cc: lablgtk at kaba.or.jp Subject: Re: as_widget or coerce with pack ? From: Jacques GARRIGUE In-Reply-To: <16507.26284.797755.358642 at soggy.deldotd.com> References: <16507.26284.797755.358642 at soggy.deldotd.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: briand at aracnet.com > So I went and found the method definitions: > > method as_widget : Gtk.widget obj > method coerce : widget > > So as I understand it, as_widget is the "raw" Gtk widget, whereas > widget is the widget representation under the lablgtk class scheme. > > More simply, it appears that pack takes and argument of widget, i.e a > "generic" widget under the lablgtk class system and not a "raw widget" > which corresponds to the underlying gtk widget representation. Perfectly right. The README should be corrected to reflect this. The idea is that all methods use wrapped objects rather than the raw ones. #as_widget is only used internally to get to the raw widget when needed. Jacques