X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53920141b504db01a5af56b5b16fd0b4a251031b..c980c992630e94e71139660631a77ffbca8ed958:/utils/wxPython/src/gtk/controls.py diff --git a/utils/wxPython/src/gtk/controls.py b/utils/wxPython/src/gtk/controls.py index 852aef02bd..1c6ec4a5f5 100644 --- a/utils/wxPython/src/gtk/controls.py +++ b/utils/wxPython/src/gtk/controls.py @@ -185,7 +185,7 @@ class wxChoice(wxChoicePtr): -class wxComboBoxPtr(wxControlPtr): +class wxComboBoxPtr(wxChoicePtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -243,9 +243,6 @@ class wxComboBoxPtr(wxControlPtr): def SetInsertionPointEnd(self): val = controlsc.wxComboBox_SetInsertionPointEnd(self.this) return val - def SetSelection(self,arg0,*args): - val = apply(controlsc.wxComboBox_SetSelection,(self.this,arg0,)+args) - return val def SetMark(self,arg0,arg1): val = controlsc.wxComboBox_SetMark(self.this,arg0,arg1) return val @@ -334,6 +331,26 @@ class wxStaticBox(wxStaticBoxPtr): +class wxStaticLinePtr(wxControlPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def __repr__(self): + return "" +class wxStaticLine(wxStaticLinePtr): + def __init__(self,arg0,arg1,*args) : + argl = map(None,args) + try: argl[0] = argl[0].this + except: pass + try: argl[1] = argl[1].this + except: pass + args = tuple(argl) + self.this = apply(controlsc.new_wxStaticLine,(arg0.this,arg1,)+args) + self.thisown = 1 + + + + class wxStaticTextPtr(wxControlPtr): def __init__(self,this): self.this = this @@ -713,9 +730,6 @@ class wxRadioBoxPtr(wxControlPtr): def Number(self): val = controlsc.wxRadioBox_Number(self.this) return val - def SetLabel(self,arg0): - val = controlsc.wxRadioBox_SetLabel(self.this,arg0) - return val def SetItemLabel(self,arg0,arg1): val = controlsc.wxRadioBox_SetItemLabel(self.this,arg0,arg1) return val