X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d0918205aae1b1a45267ad7ddfab8eb00185dce..c5fb56c07a3718798459a69c74b3124ab58c65b5:/utils/wxPython/src/gtk/windows.py diff --git a/utils/wxPython/src/gtk/windows.py b/utils/wxPython/src/gtk/windows.py index be4e354305..e496e1ce4a 100644 --- a/utils/wxPython/src/gtk/windows.py +++ b/utils/wxPython/src/gtk/windows.py @@ -25,6 +25,26 @@ class wxEvtHandlerPtr : def ProcessEvent(self, *_args, **_kwargs): val = apply(windowsc.wxEvtHandler_ProcessEvent,(self,) + _args, _kwargs) return val + def GetEvtHandlerEnabled(self, *_args, **_kwargs): + val = apply(windowsc.wxEvtHandler_GetEvtHandlerEnabled,(self,) + _args, _kwargs) + return val + def SetEvtHandlerEnabled(self, *_args, **_kwargs): + val = apply(windowsc.wxEvtHandler_SetEvtHandlerEnabled,(self,) + _args, _kwargs) + return val + def GetNextHandler(self, *_args, **_kwargs): + val = apply(windowsc.wxEvtHandler_GetNextHandler,(self,) + _args, _kwargs) + if val: val = wxEvtHandlerPtr(val) + return val + def GetPreviousHandler(self, *_args, **_kwargs): + val = apply(windowsc.wxEvtHandler_GetPreviousHandler,(self,) + _args, _kwargs) + if val: val = wxEvtHandlerPtr(val) + return val + def SetNextHandler(self, *_args, **_kwargs): + val = apply(windowsc.wxEvtHandler_SetNextHandler,(self,) + _args, _kwargs) + return val + def SetPreviousHandler(self, *_args, **_kwargs): + val = apply(windowsc.wxEvtHandler_SetPreviousHandler,(self,) + _args, _kwargs) + return val def Connect(self, *_args, **_kwargs): val = apply(windowsc.wxEvtHandler_Connect,(self,) + _args, _kwargs) return val @@ -37,6 +57,52 @@ class wxEvtHandler(wxEvtHandlerPtr): +class wxValidatorPtr(wxEvtHandlerPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def Clone(self, *_args, **_kwargs): + val = apply(windowsc.wxValidator_Clone,(self,) + _args, _kwargs) + if val: val = wxValidatorPtr(val) + return val + def GetWindow(self, *_args, **_kwargs): + val = apply(windowsc.wxValidator_GetWindow,(self,) + _args, _kwargs) + if val: val = wxWindowPtr(val) + return val + def SetWindow(self, *_args, **_kwargs): + val = apply(windowsc.wxValidator_SetWindow,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxValidator(wxValidatorPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(windowsc.new_wxValidator,_args,_kwargs) + self.thisown = 1 + + + + +class wxPyValidatorPtr(wxValidatorPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def Destroy(self, *_args, **_kwargs): + val = apply(windowsc.wxPyValidator_Destroy,(self,) + _args, _kwargs) + return val + def _setSelf(self, *_args, **_kwargs): + val = apply(windowsc.wxPyValidator__setSelf,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxPyValidator(wxPyValidatorPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(windowsc.new_wxPyValidator,_args,_kwargs) + self.thisown = 1 + self._setSelf(self, 0) + + + + class wxWindowPtr(wxEvtHandlerPtr): def __init__(self,this): self.this = this @@ -90,6 +156,9 @@ class wxWindowPtr(wxEvtHandlerPtr): val = apply(windowsc.wxWindow_GetBackgroundColour,(self,) + _args, _kwargs) if val: val = wxColourPtr(val) ; val.thisown = 1 return val + def GetChildren(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_GetChildren,(self,) + _args, _kwargs) + return val def GetCharHeight(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_GetCharHeight,(self,) + _args, _kwargs) return val @@ -107,6 +176,10 @@ class wxWindowPtr(wxEvtHandlerPtr): val = apply(windowsc.wxWindow_GetConstraints,(self,) + _args, _kwargs) if val: val = wxLayoutConstraintsPtr(val) return val + def GetEventHandler(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_GetEventHandler,(self,) + _args, _kwargs) + if val: val = wxEvtHandlerPtr(val) + return val def GetFont(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_GetFont,(self,) + _args, _kwargs) if val: val = wxFontPtr(val) @@ -214,6 +287,13 @@ class wxWindowPtr(wxEvtHandlerPtr): def Move(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_Move,(self,) + _args, _kwargs) return val + def PopEventHandler(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_PopEventHandler,(self,) + _args, _kwargs) + if val: val = wxEvtHandlerPtr(val) + return val + def PushEventHandler(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_PushEventHandler,(self,) + _args, _kwargs) + return val def PopupMenuXY(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_PopupMenuXY,(self,) + _args, _kwargs) return val @@ -248,15 +328,24 @@ class wxWindowPtr(wxEvtHandlerPtr): def SetAutoLayout(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_SetAutoLayout,(self,) + _args, _kwargs) return val + def GetAutoLayout(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_GetAutoLayout,(self,) + _args, _kwargs) + return val def SetBackgroundColour(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_SetBackgroundColour,(self,) + _args, _kwargs) return val def SetConstraints(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_SetConstraints,(self,) + _args, _kwargs) return val + def UnsetConstraints(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_UnsetConstraints,(self,) + _args, _kwargs) + return val def SetFocus(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_SetFocus,(self,) + _args, _kwargs) return val + def AcceptsFocus(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_AcceptsFocus,(self,) + _args, _kwargs) + return val def SetFont(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_SetFont,(self,) + _args, _kwargs) return val @@ -296,6 +385,9 @@ class wxWindowPtr(wxEvtHandlerPtr): def SetCursor(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_SetCursor,(self,) + _args, _kwargs) return val + def SetEventHandler(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_SetEventHandler,(self,) + _args, _kwargs) + return val def SetTitle(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_SetTitle,(self,) + _args, _kwargs) return val @@ -348,6 +440,16 @@ class wxWindowPtr(wxEvtHandlerPtr): val = apply(windowsc.wxWindow_GetToolTip,(self,) + _args, _kwargs) if val: val = wxToolTipPtr(val) return val + def SetSizer(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_SetSizer,(self,) + _args, _kwargs) + return val + def GetValidator(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_GetValidator,(self,) + _args, _kwargs) + if val: val = wxValidatorPtr(val) + return val + def SetValidator(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_SetValidator,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxWindow(wxWindowPtr): @@ -470,6 +572,12 @@ class wxScrolledWindowPtr(wxPanelPtr): def ViewStart(self, *_args, **_kwargs): val = apply(windowsc.wxScrolledWindow_ViewStart,(self,) + _args, _kwargs) return val + def CalcScrolledPosition(self, *_args, **_kwargs): + val = apply(windowsc.wxScrolledWindow_CalcScrolledPosition,(self,) + _args, _kwargs) + return val + def CalcUnscrolledPosition(self, *_args, **_kwargs): + val = apply(windowsc.wxScrolledWindow_CalcUnscrolledPosition,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxScrolledWindow(wxScrolledWindowPtr): @@ -492,6 +600,9 @@ class wxMenuPtr(wxEvtHandlerPtr): def AppendMenu(self, *_args, **_kwargs): val = apply(windowsc.wxMenu_AppendMenu,(self,) + _args, _kwargs) return val + def AppendItem(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_AppendItem,(self,) + _args, _kwargs) + return val def AppendSeparator(self, *_args, **_kwargs): val = apply(windowsc.wxMenu_AppendSeparator,(self,) + _args, _kwargs) return val @@ -538,6 +649,9 @@ class wxMenuPtr(wxEvtHandlerPtr): def UpdateUI(self, *_args, **_kwargs): val = apply(windowsc.wxMenu_UpdateUI,(self,) + _args, _kwargs) return val + def Destroy(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_Destroy,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxMenu(wxMenuPtr): @@ -574,6 +688,27 @@ class wxMenuBarPtr(wxEvtHandlerPtr): val = apply(windowsc.wxMenuBar_FindItemForId,(self,) + _args, _kwargs) if val: val = wxMenuItemPtr(val) return val + def SetLabel(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_SetLabel,(self,) + _args, _kwargs) + return val + def EnableTop(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_EnableTop,(self,) + _args, _kwargs) + return val + def GetHelpString(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_GetHelpString,(self,) + _args, _kwargs) + return val + def GetLabel(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_GetLabel,(self,) + _args, _kwargs) + return val + def SetHelpString(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_SetHelpString,(self,) + _args, _kwargs) + return val + def GetLabelTop(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_GetLabelTop,(self,) + _args, _kwargs) + return val + def SetLabelTop(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_SetLabelTop,(self,) + _args, _kwargs) + return val def GetMenuCount(self, *_args, **_kwargs): val = apply(windowsc.wxMenuBar_GetMenuCount,(self,) + _args, _kwargs) return val @@ -581,6 +716,9 @@ class wxMenuBarPtr(wxEvtHandlerPtr): val = apply(windowsc.wxMenuBar_GetMenu,(self,) + _args, _kwargs) if val: val = wxMenuPtr(val) return val + def Refresh(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_Refresh,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxMenuBar(wxMenuBarPtr): @@ -646,6 +784,10 @@ class wxMenuItem(wxMenuItemPtr): #-------------- FUNCTION WRAPPERS ------------------ +wxValidator_IsSilent = windowsc.wxValidator_IsSilent + +wxValidator_SetBellOnError = windowsc.wxValidator_SetBellOnError + #-------------- VARIABLE WRAPPERS ------------------