X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/105e45b9d02d7e9ed10923957ae1ce60c037273d..c47d0f2eb1fa40b287ad8bd16b593e3f6daa96e4:/utils/wxPython/src/gtk/controls.py diff --git a/utils/wxPython/src/gtk/controls.py b/utils/wxPython/src/gtk/controls.py index 9d9947e2b3..852aef02bd 100644 --- a/utils/wxPython/src/gtk/controls.py +++ b/utils/wxPython/src/gtk/controls.py @@ -63,6 +63,27 @@ class wxBitmapButtonPtr(wxButtonPtr): val = controlsc.wxBitmapButton_GetBitmapLabel(self.this) val = wxBitmapPtr(val) return val + def GetBitmapDisabled(self): + val = controlsc.wxBitmapButton_GetBitmapDisabled(self.this) + val = wxBitmapPtr(val) + return val + def GetBitmapFocus(self): + val = controlsc.wxBitmapButton_GetBitmapFocus(self.this) + val = wxBitmapPtr(val) + return val + def GetBitmapSelected(self): + val = controlsc.wxBitmapButton_GetBitmapSelected(self.this) + val = wxBitmapPtr(val) + return val + def SetBitmapDisabled(self,arg0): + val = controlsc.wxBitmapButton_SetBitmapDisabled(self.this,arg0.this) + return val + def SetBitmapFocus(self,arg0): + val = controlsc.wxBitmapButton_SetBitmapFocus(self.this,arg0.this) + return val + def SetBitmapSelected(self,arg0): + val = controlsc.wxBitmapButton_SetBitmapSelected(self.this,arg0.this) + return val def SetBitmapLabel(self,arg0): val = controlsc.wxBitmapButton_SetBitmapLabel(self.this,arg0.this) return val @@ -362,6 +383,9 @@ class wxListBoxPtr(wxControlPtr): def GetSelection(self): val = controlsc.wxListBox_GetSelection(self.this) return val + def GetSelections(self): + val = controlsc.wxListBox_GetSelections(self.this) + return val def GetString(self,arg0): val = controlsc.wxListBox_GetString(self.this,arg0) return val @@ -409,6 +433,36 @@ class wxListBox(wxListBoxPtr): +class wxCheckListBoxPtr(wxListBoxPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def IsChecked(self,arg0): + val = controlsc.wxCheckListBox_IsChecked(self.this,arg0) + return val + def Check(self,arg0,*args): + val = apply(controlsc.wxCheckListBox_Check,(self.this,arg0,)+args) + return val + def GetItemHeight(self): + val = controlsc.wxCheckListBox_GetItemHeight(self.this) + return val + def __repr__(self): + return "" +class wxCheckListBox(wxCheckListBoxPtr): + 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_wxCheckListBox,(arg0.this,arg1,)+args) + self.thisown = 1 + wx._StdWindowCallbacks(self) + + + + class wxTextCtrlPtr(wxControlPtr): def __init__(self,this): self.this = this @@ -485,9 +539,33 @@ class wxTextCtrlPtr(wxControlPtr): def WriteText(self,arg0): val = controlsc.wxTextCtrl_WriteText(self.this,arg0) return val + def AppendText(self,arg0): + val = controlsc.wxTextCtrl_AppendText(self.this,arg0) + return val def XYToPosition(self,arg0,arg1): val = controlsc.wxTextCtrl_XYToPosition(self.this,arg0,arg1) return val + def CanCopy(self): + val = controlsc.wxTextCtrl_CanCopy(self.this) + return val + def CanCut(self): + val = controlsc.wxTextCtrl_CanCut(self.this) + return val + def CanPaste(self): + val = controlsc.wxTextCtrl_CanPaste(self.this) + return val + def CanRedo(self): + val = controlsc.wxTextCtrl_CanRedo(self.this) + return val + def CanUndo(self): + val = controlsc.wxTextCtrl_CanUndo(self.this) + return val + def GetSelection(self): + val = controlsc.wxTextCtrl_GetSelection(self.this) + return val + def IsEditable(self): + val = controlsc.wxTextCtrl_IsEditable(self.this) + return val def __repr__(self): return "" class wxTextCtrl(wxTextCtrlPtr): @@ -611,17 +689,17 @@ class wxRadioBoxPtr(wxControlPtr): def __init__(self,this): self.this = this self.thisown = 0 - def EnableBox(self,arg0): - val = controlsc.wxRadioBox_EnableBox(self.this,arg0) + def Enable(self,arg0): + val = controlsc.wxRadioBox_Enable(self.this,arg0) return val - def Enable(self,arg0,arg1): - val = controlsc.wxRadioBox_Enable(self.this,arg0,arg1) + def EnableItem(self,arg0,arg1): + val = controlsc.wxRadioBox_EnableItem(self.this,arg0,arg1) return val def FindString(self,arg0): val = controlsc.wxRadioBox_FindString(self.this,arg0) return val - def GetLabel(self,arg0): - val = controlsc.wxRadioBox_GetLabel(self.this,arg0) + def GetItemLabel(self,arg0): + val = controlsc.wxRadioBox_GetItemLabel(self.this,arg0) return val def GetSelection(self): val = controlsc.wxRadioBox_GetSelection(self.this) @@ -635,11 +713,11 @@ class wxRadioBoxPtr(wxControlPtr): def Number(self): val = controlsc.wxRadioBox_Number(self.this) return val - def SetBoxLabel(self,arg0): - val = controlsc.wxRadioBox_SetBoxLabel(self.this,arg0) + def SetLabel(self,arg0): + val = controlsc.wxRadioBox_SetLabel(self.this,arg0) return val - def SetLabel(self,arg0,arg1): - val = controlsc.wxRadioBox_SetLabel(self.this,arg0,arg1) + def SetItemLabel(self,arg0,arg1): + val = controlsc.wxRadioBox_SetItemLabel(self.this,arg0,arg1) return val def SetSelection(self,arg0): val = controlsc.wxRadioBox_SetSelection(self.this,arg0)