X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b26e2dc41d9f5b387897a6cc6fba58d6957fd5cd..9f06bcb3b8aea7aa709754a217c26e94fe2d5954:/utils/wxPython/src/gtk/controls.py?ds=sidebyside diff --git a/utils/wxPython/src/gtk/controls.py b/utils/wxPython/src/gtk/controls.py index 7e70aae9fa..5b1b0c78bb 100644 --- a/utils/wxPython/src/gtk/controls.py +++ b/utils/wxPython/src/gtk/controls.py @@ -8,7 +8,7 @@ from windows import * from gdi import * from events import * -import wxp +import wx class wxControlPtr(wxWindowPtr): def __init__(self,this): self.this = this @@ -50,7 +50,7 @@ class wxButton(wxButtonPtr): args = tuple(argl) self.this = apply(controlsc.new_wxButton,(arg0.this,arg1,arg2,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) @@ -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 @@ -78,7 +99,7 @@ class wxBitmapButton(wxBitmapButtonPtr): args = tuple(argl) self.this = apply(controlsc.new_wxBitmapButton,(arg0.this,arg1,arg2.this,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) @@ -105,7 +126,7 @@ class wxCheckBox(wxCheckBoxPtr): args = tuple(argl) self.this = apply(controlsc.new_wxCheckBox,(arg0.this,arg1,arg2,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) @@ -159,7 +180,7 @@ class wxChoice(wxChoicePtr): args = tuple(argl) self.this = apply(controlsc.new_wxChoice,(arg0.this,arg1,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) @@ -243,7 +264,7 @@ class wxComboBox(wxComboBoxPtr): args = tuple(argl) self.this = apply(controlsc.new_wxComboBox,(arg0.this,arg1,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) @@ -288,7 +309,7 @@ class wxGauge(wxGaugePtr): args = tuple(argl) self.this = apply(controlsc.new_wxGauge,(arg0.this,arg1,arg2,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) @@ -335,7 +356,7 @@ class wxStaticText(wxStaticTextPtr): args = tuple(argl) self.this = apply(controlsc.new_wxStaticText,(arg0.this,arg1,arg2,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) @@ -404,7 +425,37 @@ class wxListBox(wxListBoxPtr): args = tuple(argl) self.this = apply(controlsc.new_wxListBox,(arg0.this,arg1,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) + + + + +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) @@ -431,6 +482,15 @@ class wxTextCtrlPtr(wxControlPtr): def GetLastPosition(self): val = controlsc.wxTextCtrl_GetLastPosition(self.this) return val + def GetLineLength(self,arg0): + val = controlsc.wxTextCtrl_GetLineLength(self.this,arg0) + return val + def GetLineText(self,arg0): + val = controlsc.wxTextCtrl_GetLineText(self.this,arg0) + return val + def GetNumberOfLines(self): + val = controlsc.wxTextCtrl_GetNumberOfLines(self.this) + return val def GetValue(self): val = controlsc.wxTextCtrl_GetValue(self.this) return val @@ -443,6 +503,9 @@ class wxTextCtrlPtr(wxControlPtr): def Paste(self): val = controlsc.wxTextCtrl_Paste(self.this) return val + def PositionToXY(self,arg0): + val = controlsc.wxTextCtrl_PositionToXY(self.this,arg0) + return val def Remove(self,arg0,arg1): val = controlsc.wxTextCtrl_Remove(self.this,arg0,arg1) return val @@ -473,6 +536,9 @@ class wxTextCtrlPtr(wxControlPtr): def WriteText(self,arg0): val = controlsc.wxTextCtrl_WriteText(self.this,arg0) return val + def XYToPosition(self,arg0,arg1): + val = controlsc.wxTextCtrl_XYToPosition(self.this,arg0,arg1) + return val def __repr__(self): return "" class wxTextCtrl(wxTextCtrlPtr): @@ -485,7 +551,7 @@ class wxTextCtrl(wxTextCtrlPtr): args = tuple(argl) self.this = apply(controlsc.new_wxTextCtrl,(arg0.this,arg1,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) @@ -500,14 +566,14 @@ class wxScrollBarPtr(wxControlPtr): def GetPageSize(self): val = controlsc.wxScrollBar_GetPageSize(self.this) return val - def GetPosition(self): - val = controlsc.wxScrollBar_GetPosition(self.this) + def GetThumbPosition(self): + val = controlsc.wxScrollBar_GetThumbPosition(self.this) return val def GetThumbSize(self): val = controlsc.wxScrollBar_GetThumbSize(self.this) return val - def SetPosition(self,arg0): - val = controlsc.wxScrollBar_SetPosition(self.this,arg0) + def SetThumbPosition(self,arg0): + val = controlsc.wxScrollBar_SetThumbPosition(self.this,arg0) return val def SetScrollbar(self,arg0,arg1,arg2,arg3,*args): val = apply(controlsc.wxScrollBar_SetScrollbar,(self.this,arg0,arg1,arg2,arg3,)+args) @@ -524,7 +590,42 @@ class wxScrollBar(wxScrollBarPtr): args = tuple(argl) self.this = apply(controlsc.new_wxScrollBar,(arg0.this,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) + + + + +class wxSpinButtonPtr(wxControlPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetMax(self): + val = controlsc.wxSpinButton_GetMax(self.this) + return val + def GetMin(self): + val = controlsc.wxSpinButton_GetMin(self.this) + return val + def GetValue(self): + val = controlsc.wxSpinButton_GetValue(self.this) + return val + def SetRange(self,arg0,arg1): + val = controlsc.wxSpinButton_SetRange(self.this,arg0,arg1) + return val + def SetValue(self,arg0): + val = controlsc.wxSpinButton_SetValue(self.this,arg0) + return val + def __repr__(self): + return "" +class wxSpinButton(wxSpinButtonPtr): + def __init__(self,arg0,*args) : + argl = map(None,args) + try: argl[1] = argl[1].this + except: pass + try: argl[2] = argl[2].this + except: pass + args = tuple(argl) + self.this = apply(controlsc.new_wxSpinButton,(arg0.this,)+args) + self.thisown = 1 @@ -552,7 +653,7 @@ class wxStaticBitmap(wxStaticBitmapPtr): args = tuple(argl) self.this = apply(controlsc.new_wxStaticBitmap,(arg0.this,arg1,arg2.this,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) @@ -561,17 +662,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) @@ -585,11 +686,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) @@ -615,7 +716,7 @@ class wxRadioBox(wxRadioBoxPtr): args = tuple(argl) self.this = apply(controlsc.new_wxRadioBox,(arg0.this,arg1,arg2,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) @@ -642,7 +743,7 @@ class wxRadioButton(wxRadioButtonPtr): args = tuple(argl) self.this = apply(controlsc.new_wxRadioButton,(arg0.this,arg1,arg2,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self) @@ -720,7 +821,7 @@ class wxSlider(wxSliderPtr): args = tuple(argl) self.this = apply(controlsc.new_wxSlider,(arg0.this,arg1,arg2,arg3,arg4,)+args) self.thisown = 1 - wxp._StdWindowCallbacks(self) + wx._StdWindowCallbacks(self)