[wxPython-dev] wx.Controls without parents
Robin Dunn
robin at alldunn.com
Thu Jul 19 11:24:56 PDT 2007
Chris Mellon wrote:
> I assume that the wxGtk implementation doesn't perform the assert and
> that Gtk does magical parent escalation even for controls similar to
> what Qt does (you can show any control in Qt without a parent and it
> will magically get a frame).
Not quite. I think that GTK requires that a widget have a parent, it
just doesn't have to have one at creation time like the other platforms
do. I think this fact is used internally in wxWidgets in a few places,
which is probably why there isn't an assert, but I would just consider
that an implementation detail. wxWidgets does require that non
top-level windows have a parent, it's just not enforced in debug mode on
wxGTK like the others do.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-dev
mailing list