X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93283355d33818e142877b884df0821336e16105..e8788ed0c675708ff488032b4697fa2455e9fc41:/wxPython/src/gtk/controls.py?ds=sidebyside diff --git a/wxPython/src/gtk/controls.py b/wxPython/src/gtk/controls.py index 6992e70d94..23817922c2 100644 --- a/wxPython/src/gtk/controls.py +++ b/wxPython/src/gtk/controls.py @@ -133,19 +133,19 @@ class wxBitmapButtonPtr(wxButtonPtr): return val def GetBitmapLabel(self, *_args, **_kwargs): val = apply(controlsc.wxBitmapButton_GetBitmapLabel,(self,) + _args, _kwargs) - if val: val = wxBitmapPtr(val) + if val: val = wxBitmapPtr(val) ; val.thisown = 1 return val def GetBitmapDisabled(self, *_args, **_kwargs): val = apply(controlsc.wxBitmapButton_GetBitmapDisabled,(self,) + _args, _kwargs) - if val: val = wxBitmapPtr(val) + if val: val = wxBitmapPtr(val) ; val.thisown = 1 return val def GetBitmapFocus(self, *_args, **_kwargs): val = apply(controlsc.wxBitmapButton_GetBitmapFocus,(self,) + _args, _kwargs) - if val: val = wxBitmapPtr(val) + if val: val = wxBitmapPtr(val) ; val.thisown = 1 return val def GetBitmapSelected(self, *_args, **_kwargs): val = apply(controlsc.wxBitmapButton_GetBitmapSelected,(self,) + _args, _kwargs) - if val: val = wxBitmapPtr(val) + if val: val = wxBitmapPtr(val) ; val.thisown = 1 return val def SetBitmapDisabled(self, *_args, **_kwargs): val = apply(controlsc.wxBitmapButton_SetBitmapDisabled,(self,) + _args, _kwargs) @@ -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) @@ -575,15 +607,15 @@ class wxTextAttrPtr : return val def GetTextColour(self, *_args, **_kwargs): val = apply(controlsc.wxTextAttr_GetTextColour,(self,) + _args, _kwargs) - if val: val = wxColourPtr(val) + if val: val = wxColourPtr(val) ; val.thisown = 1 return val def GetBackgroundColour(self, *_args, **_kwargs): val = apply(controlsc.wxTextAttr_GetBackgroundColour,(self,) + _args, _kwargs) - if val: val = wxColourPtr(val) + if val: val = wxColourPtr(val) ; val.thisown = 1 return val def GetFont(self, *_args, **_kwargs): val = apply(controlsc.wxTextAttr_GetFont,(self,) + _args, _kwargs) - if val: val = wxFontPtr(val) + if val: val = wxFontPtr(val) ; val.thisown = 1 return val def IsDefault(self, *_args, **_kwargs): val = apply(controlsc.wxTextAttr_IsDefault,(self,) + _args, _kwargs) @@ -732,6 +764,9 @@ class wxTextCtrlPtr(wxControlPtr): def write(self, *_args, **_kwargs): val = apply(controlsc.wxTextCtrl_write,(self,) + _args, _kwargs) return val + def GetString(self, *_args, **_kwargs): + val = apply(controlsc.wxTextCtrl_GetString,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxTextCtrl(wxTextCtrlPtr): @@ -771,6 +806,9 @@ class wxScrollBarPtr(wxControlPtr): def GetThumbLength(self, *_args, **_kwargs): val = apply(controlsc.wxScrollBar_GetThumbLength,(self,) + _args, _kwargs) return val + def IsVertical(self, *_args, **_kwargs): + val = apply(controlsc.wxScrollBar_IsVertical,(self,) + _args, _kwargs) + return val def SetThumbPosition(self, *_args, **_kwargs): val = apply(controlsc.wxScrollBar_SetThumbPosition,(self,) + _args, _kwargs) return val @@ -842,7 +880,7 @@ class wxStaticBitmapPtr(wxControlPtr): return val def GetBitmap(self, *_args, **_kwargs): val = apply(controlsc.wxStaticBitmap_GetBitmap,(self,) + _args, _kwargs) - if val: val = wxBitmapPtr(val) + if val: val = wxBitmapPtr(val) ; val.thisown = 1 return val def SetBitmap(self, *_args, **_kwargs): val = apply(controlsc.wxStaticBitmap_SetBitmap,(self,) + _args, _kwargs) @@ -1123,6 +1161,11 @@ def wxButton_GetDefaultSize(*_args, **_kwargs): if val: val = wxSizePtr(val); val.thisown = 1 return val +def wxTextAttr_Combine(*_args, **_kwargs): + val = apply(controlsc.wxTextAttr_Combine,_args,_kwargs) + if val: val = wxTextAttrPtr(val); val.thisown = 1 + return val + #-------------- VARIABLE WRAPPERS ------------------