wxEditableListBox.GetListCtrl() return wxControl

I think there is a bug in wxEditableListBox. I cannot get the list
control from wxEditableListBox, it returns the control. It looks from
the code like it should work but it doesn't:

print self.editableListBoxBookmarks.GetListCtrl()

Gives:

<C wxControl instance at _c9d2d0_wxControl_p>

Am I supposed to downcast the result?! I don't think I am. Have I missed
something?

Nick

Nick Trout wrote:

I think there is a bug in wxEditableListBox. I cannot get the list
control from wxEditableListBox, it returns the control. It looks from
the code like it should work but it doesn't:

print self.editableListBoxBookmarks.GetListCtrl()

Gives:

<C wxControl instance at _c9d2d0_wxControl_p>

Am I supposed to downcast the result?! I don't think I am. Have I missed
something?

What version of wxPython are you using? That should be fixed in the current release.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!