reSWIGged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-07-16 00:13:17 +00:00
parent 1fa4b13e1c
commit 0dcf9a749f
4 changed files with 39 additions and 3 deletions

View File

@@ -746,11 +746,17 @@ IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEnc
PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
wxArrayString* arr = self->GetEncodings(); wxArrayString* arr = self->GetEncodings();
return wxArrayString2PyList_helper(*arr); if (arr)
return wxArrayString2PyList_helper(*arr);
else
return PyList_New(0);
} }
PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
wxArrayString* arr = self->GetFacenames(); wxArrayString* arr = self->GetFacenames();
return wxArrayString2PyList_helper(*arr); if (arr)
return wxArrayString2PyList_helper(*arr);
else
return PyList_New(0);
} }
@@ -8666,7 +8672,7 @@ static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, Py
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
{ {
PyThreadState* __tstate = wxPyBeginAllowThreads(); PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)(arg1)->GetNoAntiAliasing(); result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
wxPyEndAllowThreads(__tstate); wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail; if (PyErr_Occurred()) SWIG_fail;

View File

@@ -20,6 +20,16 @@ GRID_VALUE_TEXT = _grid.GRID_VALUE_TEXT
GRID_VALUE_LONG = _grid.GRID_VALUE_LONG GRID_VALUE_LONG = _grid.GRID_VALUE_LONG
GRID_VALUE_CHOICEINT = _grid.GRID_VALUE_CHOICEINT GRID_VALUE_CHOICEINT = _grid.GRID_VALUE_CHOICEINT
GRID_VALUE_DATETIME = _grid.GRID_VALUE_DATETIME GRID_VALUE_DATETIME = _grid.GRID_VALUE_DATETIME
GRID_DEFAULT_NUMBER_ROWS = _grid.GRID_DEFAULT_NUMBER_ROWS
GRID_DEFAULT_NUMBER_COLS = _grid.GRID_DEFAULT_NUMBER_COLS
GRID_DEFAULT_ROW_HEIGHT = _grid.GRID_DEFAULT_ROW_HEIGHT
GRID_DEFAULT_COL_WIDTH = _grid.GRID_DEFAULT_COL_WIDTH
GRID_DEFAULT_COL_LABEL_HEIGHT = _grid.GRID_DEFAULT_COL_LABEL_HEIGHT
GRID_DEFAULT_ROW_LABEL_WIDTH = _grid.GRID_DEFAULT_ROW_LABEL_WIDTH
GRID_LABEL_EDGE_ZONE = _grid.GRID_LABEL_EDGE_ZONE
GRID_MIN_ROW_HEIGHT = _grid.GRID_MIN_ROW_HEIGHT
GRID_MIN_COL_WIDTH = _grid.GRID_MIN_COL_WIDTH
GRID_DEFAULT_SCROLLBAR_WIDTH = _grid.GRID_DEFAULT_SCROLLBAR_WIDTH
class GridCellRenderer(object): class GridCellRenderer(object):
def __init__(self): raise RuntimeError, "No constructor defined" def __init__(self): raise RuntimeError, "No constructor defined"
def __repr__(self): def __repr__(self):

View File

@@ -17269,6 +17269,16 @@ SWIGEXPORT(void) SWIG_init(void) {
PyDict_SetItemString(d,"GRID_VALUE_DATETIME", SWIG_FromCharPtr("datetime")); PyDict_SetItemString(d,"GRID_VALUE_DATETIME", SWIG_FromCharPtr("datetime"));
SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set); SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set);
SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set); SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set);
PyDict_SetItemString(d,"GRID_DEFAULT_NUMBER_ROWS", SWIG_FromInt((int)WXGRID_DEFAULT_NUMBER_ROWS));
PyDict_SetItemString(d,"GRID_DEFAULT_NUMBER_COLS", SWIG_FromInt((int)WXGRID_DEFAULT_NUMBER_COLS));
PyDict_SetItemString(d,"GRID_DEFAULT_ROW_HEIGHT", SWIG_FromInt((int)WXGRID_DEFAULT_ROW_HEIGHT));
PyDict_SetItemString(d,"GRID_DEFAULT_COL_WIDTH", SWIG_FromInt((int)WXGRID_DEFAULT_COL_WIDTH));
PyDict_SetItemString(d,"GRID_DEFAULT_COL_LABEL_HEIGHT", SWIG_FromInt((int)WXGRID_DEFAULT_COL_LABEL_HEIGHT));
PyDict_SetItemString(d,"GRID_DEFAULT_ROW_LABEL_WIDTH", SWIG_FromInt((int)WXGRID_DEFAULT_ROW_LABEL_WIDTH));
PyDict_SetItemString(d,"GRID_LABEL_EDGE_ZONE", SWIG_FromInt((int)WXGRID_LABEL_EDGE_ZONE));
PyDict_SetItemString(d,"GRID_MIN_ROW_HEIGHT", SWIG_FromInt((int)WXGRID_MIN_ROW_HEIGHT));
PyDict_SetItemString(d,"GRID_MIN_COL_WIDTH", SWIG_FromInt((int)WXGRID_MIN_COL_WIDTH));
PyDict_SetItemString(d,"GRID_DEFAULT_SCROLLBAR_WIDTH", SWIG_FromInt((int)WXGRID_DEFAULT_SCROLLBAR_WIDTH));
PyDict_SetItemString(d,"GridCellAttr_Any", SWIG_FromInt((int)wxGridCellAttr::Any)); PyDict_SetItemString(d,"GridCellAttr_Any", SWIG_FromInt((int)wxGridCellAttr::Any));
PyDict_SetItemString(d,"GridCellAttr_Default", SWIG_FromInt((int)wxGridCellAttr::Default)); PyDict_SetItemString(d,"GridCellAttr_Default", SWIG_FromInt((int)wxGridCellAttr::Default));
PyDict_SetItemString(d,"GridCellAttr_Cell", SWIG_FromInt((int)wxGridCellAttr::Cell)); PyDict_SetItemString(d,"GridCellAttr_Cell", SWIG_FromInt((int)wxGridCellAttr::Cell));

View File

@@ -31,6 +31,16 @@ wxGRID_VALUE_CHOICEINT = wx.grid.GRID_VALUE_CHOICEINT
wxGRID_VALUE_DATETIME = wx.grid.GRID_VALUE_DATETIME wxGRID_VALUE_DATETIME = wx.grid.GRID_VALUE_DATETIME
wxGridNoCellCoords = wx.grid.GridNoCellCoords wxGridNoCellCoords = wx.grid.GridNoCellCoords
wxGridNoCellRect = wx.grid.GridNoCellRect wxGridNoCellRect = wx.grid.GridNoCellRect
WXGRID_DEFAULT_NUMBER_ROWS = wx.grid.WXGRID_DEFAULT_NUMBER_ROWS
WXGRID_DEFAULT_NUMBER_COLS = wx.grid.WXGRID_DEFAULT_NUMBER_COLS
WXGRID_DEFAULT_ROW_HEIGHT = wx.grid.WXGRID_DEFAULT_ROW_HEIGHT
WXGRID_DEFAULT_COL_WIDTH = wx.grid.WXGRID_DEFAULT_COL_WIDTH
WXGRID_DEFAULT_COL_LABEL_HEIGHT = wx.grid.WXGRID_DEFAULT_COL_LABEL_HEIGHT
WXGRID_DEFAULT_ROW_LABEL_WIDTH = wx.grid.WXGRID_DEFAULT_ROW_LABEL_WIDTH
WXGRID_LABEL_EDGE_ZONE = wx.grid.WXGRID_LABEL_EDGE_ZONE
WXGRID_MIN_ROW_HEIGHT = wx.grid.WXGRID_MIN_ROW_HEIGHT
WXGRID_MIN_COL_WIDTH = wx.grid.WXGRID_MIN_COL_WIDTH
WXGRID_DEFAULT_SCROLLBAR_WIDTH = wx.grid.WXGRID_DEFAULT_SCROLLBAR_WIDTH
wxGridCellRenderer = wx.grid.GridCellRenderer wxGridCellRenderer = wx.grid.GridCellRenderer
wxGridCellRendererPtr = wx.grid.GridCellRendererPtr wxGridCellRendererPtr = wx.grid.GridCellRendererPtr
wxPyGridCellRenderer = wx.grid.PyGridCellRenderer wxPyGridCellRenderer = wx.grid.PyGridCellRenderer