X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a57d56d66294799d6d36e64fa7aed6ff42a4d1e9..08da19d737fcb12a19a2746b438b3a3610214e6d:/wxPython/src/gtk/controls.py?ds=inline diff --git a/wxPython/src/gtk/controls.py b/wxPython/src/gtk/controls.py index 34eefa73f7..fc568d21bf 100644 --- a/wxPython/src/gtk/controls.py +++ b/wxPython/src/gtk/controls.py @@ -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 "" % (self.this,) + Number = GetCount + Select = SetSelection class wxComboBox(wxComboBoxPtr): def __init__(self,*_args,**_kwargs): self.this = apply(controlsc.new_wxComboBox,_args,_kwargs) @@ -629,6 +661,9 @@ class wxTextCtrlPtr(wxControlPtr): def GetSelection(self, *_args, **_kwargs): val = apply(controlsc.wxTextCtrl_GetSelection,(self,) + _args, _kwargs) return val + def GetStringSelection(self, *_args, **_kwargs): + val = apply(controlsc.wxTextCtrl_GetStringSelection,(self,) + _args, _kwargs) + return val def Clear(self, *_args, **_kwargs): val = apply(controlsc.wxTextCtrl_Clear,(self,) + _args, _kwargs) return val