wxComboBox does not derive from wxChoice in wxGTK so it can't in

wxPython either.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-11-14 18:34:26 +00:00
parent 742fc581e4
commit c70fd24fa8
4 changed files with 516 additions and 19 deletions

View File

@@ -260,7 +260,7 @@ def wxPreChoice(*_args,**_kwargs):
return val
class wxComboBoxPtr(wxChoicePtr):
class wxComboBoxPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
@@ -309,8 +309,40 @@ class wxComboBoxPtr(wxChoicePtr):
def SetEditable(self, *_args, **_kwargs):
val = apply(controlsc.wxComboBox_SetEditable,(self,) + _args, _kwargs)
return val
def Clear(self, *_args, **_kwargs):
val = apply(controlsc.wxComboBox_Clear,(self,) + _args, _kwargs)
return val
def Delete(self, *_args, **_kwargs):
val = apply(controlsc.wxComboBox_Delete,(self,) + _args, _kwargs)
return val
def GetCount(self, *_args, **_kwargs):
val = apply(controlsc.wxComboBox_GetCount,(self,) + _args, _kwargs)
return val
def GetString(self, *_args, **_kwargs):
val = apply(controlsc.wxComboBox_GetString,(self,) + _args, _kwargs)
return val
def FindString(self, *_args, **_kwargs):
val = apply(controlsc.wxComboBox_FindString,(self,) + _args, _kwargs)
return val
def GetSelection(self, *_args, **_kwargs):
val = apply(controlsc.wxComboBox_GetSelection,(self,) + _args, _kwargs)
return val
def GetStringSelection(self, *_args, **_kwargs):
val = apply(controlsc.wxComboBox_GetStringSelection,(self,) + _args, _kwargs)
return val
def Append(self, *_args, **_kwargs):
val = apply(controlsc.wxComboBox_Append,(self,) + _args, _kwargs)
return val
def GetClientData(self, *_args, **_kwargs):
val = apply(controlsc.wxComboBox_GetClientData,(self,) + _args, _kwargs)
return val
def SetClientData(self, *_args, **_kwargs):
val = apply(controlsc.wxComboBox_SetClientData,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxComboBox instance at %s>" % (self.this,)
Number = GetCount
Select = SetSelection
class wxComboBox(wxComboBoxPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(controlsc.new_wxComboBox,_args,_kwargs)