MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16507.26284.797755.358642 at soggy.deldotd.com> Date: Mon, 12 Apr 2004 21:03:56 -0700 To: lablgtk at kaba.or.jp Subject: as_widget or coerce with pack ? From: briand at aracnet.com For various reasons which are probably related to poor design I find myself having to delay the packing of widgets. So eventually I got to the point where the following worked : vb#pack(gl_area#coerce); However the README says : * an as_widget method, returning the raw Gtk widget used for packing, etc... So I would have expected gl_area#as_widget to work, which it does not. 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. Am I right ? Thanks Brian