X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf694132f1c28509a9f84377ce8d374bae4177ad..849949b13fa19002da52333e760ebfecd00c60d9:/utils/wxPython/src/msw/windows2.py diff --git a/utils/wxPython/src/msw/windows2.py b/utils/wxPython/src/msw/windows2.py index 25ed395296..9af0e32ba9 100644 --- a/utils/wxPython/src/msw/windows2.py +++ b/utils/wxPython/src/msw/windows2.py @@ -15,7 +15,7 @@ class wxGridCellPtr : def __init__(self,this): self.this = this self.thisown = 0 - def __del__(self): + def __del__(self, windows2c=windows2c): if self.thisown == 1 : windows2c.delete_wxGridCell(self.this) def GetTextValue(self): @@ -127,6 +127,9 @@ class wxGridPtr(wxPanelPtr): val = windows2c.wxGrid_GetDefCellBackgroundColour(self.this) val = wxColourPtr(val) return val + def GetCells(self): + val = windows2c.wxGrid_GetCells(self.this) + return val def GetCellTextColour(self,arg0,arg1): val = windows2c.wxGrid_GetCellTextColour(self.this,arg0,arg1) val = wxColourPtr(val) @@ -283,6 +286,12 @@ class wxGridPtr(wxPanelPtr): def UpdateDimensions(self): val = windows2c.wxGrid_UpdateDimensions(self.this) return val + def GetEditInPlace(self): + val = windows2c.wxGrid_GetEditInPlace(self.this) + return val + def SetEditInPlace(self,*args): + val = apply(windows2c.wxGrid_SetEditInPlace,(self.this,)+args) + return val def __repr__(self): return "" class wxGrid(wxGridPtr): @@ -361,7 +370,7 @@ class wxGridEvent(wxGridEventPtr): -class wxNotebookEventPtr(wxCommandEventPtr): +class wxNotebookEventPtr(wxNotifyEventPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -371,6 +380,12 @@ class wxNotebookEventPtr(wxCommandEventPtr): def GetOldSelection(self): val = windows2c.wxNotebookEvent_GetOldSelection(self.this) return val + def SetOldSelection(self,arg0): + val = windows2c.wxNotebookEvent_SetOldSelection(self.this,arg0) + return val + def SetSelection(self,arg0): + val = windows2c.wxNotebookEvent_SetSelection(self.this,arg0) + return val def __repr__(self): return "" class wxNotebookEvent(wxNotebookEventPtr): @@ -435,6 +450,7 @@ class wxNotebookPtr(wxControlPtr): return val def GetPage(self,arg0): val = windows2c.wxNotebook_GetPage(self.this,arg0) + val = wxWindowPtr(val) return val def ResizeChildren(self): val = windows2c.wxNotebook_ResizeChildren(self.this) @@ -456,6 +472,35 @@ class wxNotebook(wxNotebookPtr): +class wxSplitterEventPtr(wxCommandEventPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetSashPosition(self): + val = windows2c.wxSplitterEvent_GetSashPosition(self.this) + return val + def GetX(self): + val = windows2c.wxSplitterEvent_GetX(self.this) + return val + def GetY(self): + val = windows2c.wxSplitterEvent_GetY(self.this) + return val + def GetWindowBeingRemoved(self): + val = windows2c.wxSplitterEvent_GetWindowBeingRemoved(self.this) + val = wxWindowPtr(val) + return val + def SetSashPosition(self,arg0): + val = windows2c.wxSplitterEvent_SetSashPosition(self.this,arg0) + return val + def __repr__(self): + return "" +class wxSplitterEvent(wxSplitterEventPtr): + def __init__(self,this): + self.this = this + + + + class wxSplitterWindowPtr(wxWindowPtr): def __init__(self,this): self.this = this @@ -538,7 +583,7 @@ class wxTaskBarIconPtr(wxEvtHandlerPtr): def __init__(self,this): self.this = this self.thisown = 0 - def __del__(self): + def __del__(self, windows2c=windows2c): if self.thisown == 1 : windows2c.delete_wxTaskBarIcon(self.this) def SetIcon(self,arg0,*args):