out of existing classes into a mix-in that would be useful to others
please send it to me for inclusion in this package.
+Added a few little sample applications to help newbies to get started
+by having smaller functional apps to play with. They can be found in
+wxPython/samples.
+
Or you can send mail directly to the list using this address:
- wxpython-users@lists.sourceforge.net
+ wxpython-users@lists.wxwindows.org
Other Info
shift
set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
+rem "a" --> make all installers
+elseiff "%1" == "a" then
+ shift
+ set CMD=echo Finished!
+ call b.bat 15 c
+ call b.bat 15 f
+ call b.bat 15 r
+ call b.bat 15 c
+ call b.bat 15 h
+ call b.bat 15 r
+
+ call b.bat 20 c
+ call b.bat 20 f
+ call b.bat 20 r
+ call b.bat 20 c
+ call b.bat 20 h
+ call b.bat 20 r
+
+ call b.bat 21 c
+ call b.bat 21 f
+ call b.bat 21 r
+ call b.bat 21 c
+ call b.bat 21 h
+ call b.bat 21 r
+
+
rem (no command arg) --> normal build for development
else
set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9
numColours = len(colours)
if rgn:
- # determine the subset that have been exposed and needs drawn
+ # determine the subset that has been exposed and needs drawn
rect = rgn.GetBox()
pixStart = vs[1]*self.lineHeight + rect.y
pixStop = pixStart + rect.height
EVT_LISTBOX_DCLICK(self, 60, self.EvtListBoxDClick)
lb.SetSelection(0)
+ EVT_RIGHT_UP(self, self.OnDoPopup)
+
def EvtListBox(self, event):
self.log.WriteText('EvtListBox: %s\n' % event.GetString())
def EvtListBoxDClick(self, event):
self.log.WriteText('EvtListBoxDClick:\n')
+ def OnDoPopup(self, evt):
+ menu = wxMenu()
+ # Make this first item bold
+ item = wxMenuItem(menu, 101, "If supported, this is &bold")
+ df = wxSystemSettings_GetSystemFont(wxSYS_DEFAULT_GUI_FONT)
+ nf = wxFont(df.GetPointSize(), df.GetFamily(), df.GetStyle(), wxBOLD,
+ false, df.GetFaceName())
+ item.SetFont(nf)
+ menu.AppendItem(item)
+
+ menu.AppendItem(wxMenuItem(menu, 102, "Normal Item &1"))
+ menu.AppendItem(wxMenuItem(menu, 103, "Normal Item &2"))
+ menu.AppendItem(wxMenuItem(menu, 104, "Normal Item &3"))
+ menu.AppendItem(wxMenuItem(menu, 105, "Normal Item &4"))
+
+ self.PopupMenu(menu, evt.GetPosition())
+ menu.Destroy()
+ evt.Skip()
#----------------------------------------------------------------------
# WDR: methods for JoystickTestPanel
def GetYPositionCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Y_Position_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Y_Position_Ctrl)
def GetXPositionCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_X_Position_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_X_Position_Ctrl)
def GetVMaxCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_V_Max_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_V_Max_Ctrl)
def GetVMinCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_V_Min_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_V_Min_Ctrl)
def GetRudderMaxCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Rudder_Max_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Rudder_Max_Ctrl)
def GetRudderMinCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Rudder_Min_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Rudder_Min_Ctrl)
def GetMaxAxesCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Max_Axes_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Max_Axes_Ctrl)
def GetMaxButtonsCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Max_Buttons_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Max_Buttons_Ctrl)
def GetZMaxCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Z_Max_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Z_Max_Ctrl)
def GetYMaxCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Y_Max_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Y_Max_Ctrl)
def GetYMinCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Y_Min_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Y_Min_Ctrl)
def GetXMinCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_X_Min_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_X_Min_Ctrl)
def GetNumSticksCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Num_Sticks_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Num_Sticks_Ctrl)
def GetHasPovCtsCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Has_POV_CTS_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Has_POV_CTS_Ctrl)
def GetHasVCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Has_V_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Has_V_Ctrl)
def GetHasUCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Has_U_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Has_U_Ctrl)
def GetVPositionCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_V_Position_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_V_Position_Ctrl)
def GetUPositionCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_U_Position_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_U_Position_Ctrl)
def GetPovPositionCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_POV_Position_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_POV_Position_Ctrl)
def GetButtonStateCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Button_State_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Button_State_Ctrl)
def GetUMaxCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_U_Max_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_U_Max_Ctrl)
def GetUMinCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_U_Min_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_U_Min_Ctrl)
def GetPollingMaxCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Polling_Max_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Polling_Max_Ctrl)
def GetPollingMinCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Polling_Min_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Polling_Min_Ctrl)
def GetNumAxesCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Num_Axes_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Num_Axes_Ctrl)
def GetNumButtonsCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Num_Buttons_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Num_Buttons_Ctrl)
def GetXMaxCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_X_Max_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_X_Max_Ctrl)
def GetZMinCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Z_Min_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Z_Min_Ctrl)
def GetProdNameCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Prod_Name_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Prod_Name_Ctrl)
def GetMfgIdCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Mfg_ID_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Mfg_ID_Ctrl)
def GetHasPov4dirCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Has_POV_4DIR_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Has_POV_4DIR_Ctrl)
def GetHasPovCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Has_POV_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Has_POV_Ctrl)
def GetHasZCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Has_Z_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Has_Z_Ctrl)
def GetHasRudderCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Has_Rudder_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Has_Rudder_Ctrl)
def GetRudderPosCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Rudder_Pos_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Rudder_Pos_Ctrl)
def GetPovCtsPosCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_POV_CTS_Pos_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_POV_CTS_Pos_Ctrl)
def GetZPositionCtrl(self):
- return wxPyTypeCast( self.FindWindowById(ID_Z_Position_Ctrl), "wxTextCtrl" )
+ return self.FindWindowById(ID_Z_Position_Ctrl)
# WDR: handler implementations for JoysticktestPanel
# flags and values that affect this script
#----------------------------------------------------------------------
-VERSION = "2.3b4"
+VERSION = "2.3.0"
DESCRIPTION = "Cross platform GUI toolkit for Python"
AUTHOR = "Robin Dunn"
AUTHOR_EMAIL = "robin@alldunn.com"
-ver = '2.3b4'
+ver = '2.3.0'
wxRESIZE_BORDER,
wxDIALOG_MODAL,
wxDIALOG_MODELESS,
+ wxDIALOG_NO_PARENT,
wxDEFAULT_FRAME_STYLE,
wxDEFAULT_DIALOG_STYLE,
~wxColourData();
bool GetChooseFull();
- wxColour& GetColour();
+ wxColour GetColour();
wxColour GetCustomColour(int i);
void SetChooseFull(int flag);
void SetColour(const wxColour& colour);
void EnableEffects(bool enable);
bool GetAllowSymbols();
- wxColour& GetColour();
+ wxColour GetColour();
wxFont GetChosenFont();
bool GetEnableEffects();
wxFont GetInitialFont();
~wxPen();
int GetCap();
- wxColour& GetColour();
+ wxColour GetColour();
int GetJoin();
int GetStyle();
wxBrush(const wxColour& colour, int style=wxSOLID);
~wxBrush();
- wxColour& GetColour();
+ wxColour GetColour();
wxBitmap * GetStipple();
int GetStyle();
bool Ok();
%name(GetSizeTuple)void GetSize(int* OUTPUT, int* OUTPUT);
wxSize GetSize();
wxSize GetSizeMM();
- wxColour& GetTextBackground();
+ wxColour GetTextBackground();
void GetTextExtent(const wxString& string, long *OUTPUT, long *OUTPUT);
%name(GetFullTextExtent)void GetTextExtent(const wxString& string,
long *OUTPUT, long *OUTPUT, long *OUTPUT, long* OUTPUT,
const wxFont* font = NULL);
- wxColour& GetTextForeground();
+ wxColour GetTextForeground();
void GetUserScale(double *OUTPUT, double *OUTPUT);
long LogicalToDeviceX(long x);
long LogicalToDeviceXRel(long x);
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxColourData_GetColour(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxColourData_GetColour(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxFontData_GetColour(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxFontData_GetColour(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
return val
def GetColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_GetColour,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetCustomColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_GetCustomColour,(self,) + _args, _kwargs)
return val
def GetColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_GetColour,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetChosenFont(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs)
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxPen_GetColour(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxPen_GetColour(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxBrush_GetColour(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxBrush_GetColour(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxDC_GetTextBackground(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxDC_GetTextBackground(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxDC_GetTextForeground(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxDC_GetTextForeground(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
return val
def GetColour(self, *_args, **_kwargs):
val = apply(gdic.wxPen_GetColour,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetJoin(self, *_args, **_kwargs):
val = apply(gdic.wxPen_GetJoin,(self,) + _args, _kwargs)
gdic.delete_wxBrush(self)
def GetColour(self, *_args, **_kwargs):
val = apply(gdic.wxBrush_GetColour,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetStipple(self, *_args, **_kwargs):
val = apply(gdic.wxBrush_GetStipple,(self,) + _args, _kwargs)
return val
def GetTextBackground(self, *_args, **_kwargs):
val = apply(gdic.wxDC_GetTextBackground,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetTextExtent(self, *_args, **_kwargs):
val = apply(gdic.wxDC_GetTextExtent,(self,) + _args, _kwargs)
return val
def GetTextForeground(self, *_args, **_kwargs):
val = apply(gdic.wxDC_GetTextForeground,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetUserScale(self, *_args, **_kwargs):
val = apply(gdic.wxDC_GetUserScale,(self,) + _args, _kwargs)
return _resultobj;
}
-static PyObject *_wrap_wxFlushEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- char *_kwnames[] = { NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFlushEvents",_kwnames))
- return NULL;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- wxFlushEvents();
-
- wxPy_END_ALLOW_THREADS;
- if (PyErr_Occurred()) return NULL;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
static PyObject *_wrap_wxGetResource(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
char * _result;
{ "wxGetEmailAddress", (PyCFunction) _wrap_wxGetEmailAddress, METH_VARARGS | METH_KEYWORDS },
{ "wxStripMenuCodes", (PyCFunction) _wrap_wxStripMenuCodes, METH_VARARGS | METH_KEYWORDS },
{ "wxGetResource", (PyCFunction) _wrap_wxGetResource, METH_VARARGS | METH_KEYWORDS },
- { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS },
{ "wxEnableTopLevelWindows", (PyCFunction) _wrap_wxEnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
{ "wxYieldIfNeeded", (PyCFunction) _wrap_wxYieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
{ "wxYield", (PyCFunction) _wrap_wxYield, METH_VARARGS | METH_KEYWORDS },
wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
-wxFlushEvents = miscc.wxFlushEvents
-
wxGetResource = miscc.wxGetResource
wxStripMenuCodes = miscc.wxStripMenuCodes
return _resultobj;
}
+static PyObject *_wrap_wxFlushEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ char *_kwnames[] = { NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFlushEvents",_kwnames))
+ return NULL;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxFlushEvents();
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
bool _result;
{ "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS },
{ "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS },
{ "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS },
+ { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS },
{ "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS },
{ "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
{ "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
wxCheckForInterrupt = misc2c.wxCheckForInterrupt
+wxFlushEvents = misc2c.wxFlushEvents
+
wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier
wxResourceClear = misc2c.wxResourceClear
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxMenuItem_GetTextColour(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxMenuItem_GetTextColour(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxMenuItem_GetBackgroundColour(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
return val
def GetTextColour(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_GetTextColour,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetBackgroundColour(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_SetBackgroundColour,(self,) + _args, _kwargs)
return val
def GetBackgroundColour(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_GetBackgroundColour,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetBitmaps(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_SetBitmaps,(self,) + _args, _kwargs)
void SetFont(const wxFont& font);
wxFont& GetFont();
void SetTextColour(const wxColour& colText);
- wxColour& GetTextColour();
+ wxColour GetTextColour();
void SetBackgroundColour(const wxColour& colBack);
- wxColour& GetBackgroundColour();
+ wxColour GetBackgroundColour();
void SetBitmaps(const wxBitmap& bmpChecked,
const wxBitmap& bmpUnchecked = wxNullBitmap);
void SetBitmap(const wxBitmap& bmpChecked);
void SetTextValue(const wxString& str);
wxFont& GetFont();
void SetFont(wxFont& f);
- wxColour& GetTextColour();
+ wxColour GetTextColour();
void SetTextColour(const wxColour& colour);
- wxColour& GetBackgroundColour();
+ wxColour GetBackgroundColour();
void SetBackgroundColour(const wxColour& colour);
wxBrush& GetBackgroundBrush();
int GetAlignment();
wxGridCell* GetCell(int row, int col);
int GetCellAlignment(int row, int col);
%name(GetDefCellAlignment)int GetCellAlignment();
- wxColour& GetCellBackgroundColour(int row, int col);
+ wxColour GetCellBackgroundColour(int row, int col);
%name(GetDefCellBackgroundColour) wxColour& GetCellBackgroundColour();
//wxGridCell *** GetCells();
return rows;
}
}
- wxColour& GetCellTextColour(int row, int col);
+ wxColour GetCellTextColour(int row, int col);
%name(GetDefCellTextColour)wxColour& GetCellTextColour();
wxFont& GetCellTextFont(int row, int col);
%name(GetDefCellTextFont)wxFont& GetCellTextFont();
bool GetEditable();
wxScrollBar * GetHorizScrollBar();
int GetLabelAlignment(int orientation);
- wxColour& GetLabelBackgroundColour();
+ wxColour GetLabelBackgroundColour();
int GetLabelSize(int orientation);
- wxColour& GetLabelTextColour();
+ wxColour GetLabelTextColour();
wxFont& GetLabelTextFont();
wxString& GetLabelValue(int orientation, int pos);
int GetRowHeight(int row);