Returns a reference to the list of the window's children.
I take this to mean that wxWindow::GetChildren returns a wxList.
However, it seems to me that under wxPython, GetChildren() returns a
plain-old Python list object.
I take this to mean that wxWindow::GetChildren returns a wxList.
However, it seems to me that under wxPython, GetChildren() returns a
plain-old Python list object.
Is that correct?
Yes. The wrapper traverses the wxList and creates a PyList from its
contents. The only downside to this is that since you get a copy it may not
truly reflect the window's children if you add or remove windows.
I've been contemplating changing it to return a list-like object that wraps
the real wxList so the contents would always be "live" but I havn't gotten
to it yet. (And probably won't for some time so patches are welcome.)
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!