class MimeTypesTestPanel(wxPanel):
     def __init__(self, parent, id,
-        pos = wxPyDefaultPosition, size = wxPyDefaultSize,
+        pos = wxDefaultPosition, size = wxDefaultSize,
         style = wxTAB_TRAVERSAL ):
         wxPanel.__init__(self, parent, id, pos, size, style)
 
     # WDR: methods for MimeTypesTestPanel
 
     def GetListbox(self):
-        return wxPyTypeCast( self.FindWindowById(ID_LISTBOX), "wxListBox" )
+        return self.FindWindowById(ID_LISTBOX)
 
     def GetIconIndexTxt(self):
         return self.FindWindowById(ID_ICON_INDEX_TXT)