from controls import *
from events import *
-import wxp
+import wx
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):
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)
def GetCurrentRect(self):
val = windows2c.wxGrid_GetCurrentRect(self.this)
val = wxRectPtr(val)
+ val.thisown = 1
return val
def GetCursorColumn(self):
val = windows2c.wxGrid_GetCursorColumn(self.this)
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 "<C wxGrid instance>"
class wxGrid(wxGridPtr):
args = tuple(argl)
self.this = apply(windows2c.new_wxGrid,(arg0.this,arg1,)+args)
self.thisown = 1
- wxp._StdWindowCallbacks(self)
- wxp._checkForCallback(self, 'OnSelectCell', wxEVT_GRID_SELECT_CELL)
- wxp._checkForCallback(self, 'OnCreateCell', wxEVT_GRID_CREATE_CELL)
- wxp._checkForCallback(self, 'OnChangeLabels', wxEVT_GRID_CHANGE_LABELS)
- wxp._checkForCallback(self, 'OnChangeSelectionLabel', wxEVT_GRID_CHANGE_SEL_LABEL)
- wxp._checkForCallback(self, 'OnCellChange', wxEVT_GRID_CELL_CHANGE)
- wxp._checkForCallback(self, 'OnCellLeftClick', wxEVT_GRID_CELL_LCLICK)
- wxp._checkForCallback(self, 'OnCellRightClick', wxEVT_GRID_CELL_RCLICK)
- wxp._checkForCallback(self, 'OnLabelLeftClick', wxEVT_GRID_LABEL_LCLICK)
- wxp._checkForCallback(self, 'OnLabelRightClick', wxEVT_GRID_LABEL_RCLICK)
+ wx._StdWindowCallbacks(self)
+ wx._checkForCallback(self, 'OnSelectCell', wxEVT_GRID_SELECT_CELL)
+ wx._checkForCallback(self, 'OnCreateCell', wxEVT_GRID_CREATE_CELL)
+ wx._checkForCallback(self, 'OnChangeLabels', wxEVT_GRID_CHANGE_LABELS)
+ wx._checkForCallback(self, 'OnChangeSelectionLabel', wxEVT_GRID_CHANGE_SEL_LABEL)
+ wx._checkForCallback(self, 'OnCellChange', wxEVT_GRID_CELL_CHANGE)
+ wx._checkForCallback(self, 'OnCellLeftClick', wxEVT_GRID_CELL_LCLICK)
+ wx._checkForCallback(self, 'OnCellRightClick', wxEVT_GRID_CELL_RCLICK)
+ wx._checkForCallback(self, 'OnLabelLeftClick', wxEVT_GRID_LABEL_LCLICK)
+ wx._checkForCallback(self, 'OnLabelRightClick', wxEVT_GRID_LABEL_RCLICK)
-class wxNotebookEventPtr(wxCommandEventPtr):
+class wxNotebookEventPtr(wxNotifyEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
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 "<C wxNotebookEvent instance>"
class wxNotebookEvent(wxNotebookEventPtr):
val = windows2c.wxNotebook_GetPageText(self.this,arg0)
return val
def SetImageList(self,arg0):
- val = windows2c.wxNotebook_SetImageList(self.this,arg0)
+ val = windows2c.wxNotebook_SetImageList(self.this,arg0.this)
return val
def GetImageList(self):
val = windows2c.wxNotebook_GetImageList(self.this)
+ val = wxImageListPtr(val)
return val
def GetPageImage(self,arg0):
val = windows2c.wxNotebook_GetPageImage(self.this,arg0)
def DeletePage(self,arg0):
val = windows2c.wxNotebook_DeletePage(self.this,arg0)
return val
+ def RemovePage(self,arg0):
+ val = windows2c.wxNotebook_RemovePage(self.this,arg0)
+ return val
def DeleteAllPages(self):
val = windows2c.wxNotebook_DeleteAllPages(self.this)
return val
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)
return val
def __repr__(self):
return "<C wxNotebook instance>"
args = tuple(argl)
self.this = apply(windows2c.new_wxNotebook,(arg0.this,arg1,)+args)
self.thisown = 1
- wxp._StdWindowCallbacks(self)
+ wx._StdWindowCallbacks(self)
+
+
+
+
+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 "<C wxSplitterEvent instance>"
+class wxSplitterEvent(wxSplitterEventPtr):
+ def __init__(self,this):
+ self.this = this
args = tuple(argl)
self.this = apply(windows2c.new_wxSplitterWindow,(arg0.this,arg1,)+args)
self.thisown = 1
- wxp._StdWindowCallbacks(self)
+ wx._StdWindowCallbacks(self)
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):
def RemoveIcon(self):
val = windows2c.wxTaskBarIcon_RemoveIcon(self.this)
return val
+ def PopupMenu(self,arg0):
+ val = windows2c.wxTaskBarIcon_PopupMenu(self.this,arg0.this)
+ return val
def __repr__(self):
return "<C wxTaskBarIcon instance>"
class wxTaskBarIcon(wxTaskBarIconPtr):
def __init__(self) :
self.this = windows2c.new_wxTaskBarIcon()
self.thisown = 1
- wxp._checkForCallback(self, 'OnMouseMove', wxEVT_TASKBAR_MOVE)
- wxp._checkForCallback(self, 'OnLButtonDown', wxEVT_TASKBAR_LEFT_DOWN)
- wxp._checkForCallback(self, 'OnLButtonUp', wxEVT_TASKBAR_LEFT_UP)
- wxp._checkForCallback(self, 'OnRButtonDown', wxEVT_TASKBAR_RIGHT_DOWN)
- wxp._checkForCallback(self, 'OnRButtonUp', wxEVT_TASKBAR_RIGHT_UP)
- wxp._checkForCallback(self, 'OnLButtonDClick',wxEVT_TASKBAR_LEFT_DCLICK)
- wxp._checkForCallback(self, 'OnRButtonDClick',wxEVT_TASKBAR_RIGHT_DCLICK)
+ wx._checkForCallback(self, 'OnMouseMove', wxEVT_TASKBAR_MOVE)
+ wx._checkForCallback(self, 'OnLButtonDown', wxEVT_TASKBAR_LEFT_DOWN)
+ wx._checkForCallback(self, 'OnLButtonUp', wxEVT_TASKBAR_LEFT_UP)
+ wx._checkForCallback(self, 'OnRButtonDown', wxEVT_TASKBAR_RIGHT_DOWN)
+ wx._checkForCallback(self, 'OnRButtonUp', wxEVT_TASKBAR_RIGHT_UP)
+ wx._checkForCallback(self, 'OnLButtonDClick',wxEVT_TASKBAR_LEFT_DCLICK)
+ wx._checkForCallback(self, 'OnRButtonDClick',wxEVT_TASKBAR_RIGHT_DCLICK)