changed version number

A few final twaeks and fixes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-05-22 05:59:09 +00:00
parent 6d5b2a57cf
commit 25832b3f2b
23 changed files with 158 additions and 156 deletions

View File

@@ -118,6 +118,10 @@ from Mike Fletcher. If you have any custom code that can be factored
out of existing classes into a mix-in that would be useful to others out of existing classes into a mix-in that would be useful to others
please send it to me for inclusion in this package. 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.

View File

@@ -54,7 +54,7 @@ mail list. You can view the archive or subscribe by going to
Or you can send mail directly to the list using this address: Or you can send mail directly to the list using this address:
wxpython-users@lists.sourceforge.net wxpython-users@lists.wxwindows.org
Other Info Other Info

View File

@@ -60,6 +60,32 @@ elseiff "%1" == "h" then
shift shift
set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9 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 rem (no command arg) --> normal build for development
else else
set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9 set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9

View File

@@ -78,7 +78,7 @@ class TestWindow(wxScrolledWindow):
numColours = len(colours) numColours = len(colours)
if rgn: 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() rect = rgn.GetBox()
pixStart = vs[1]*self.lineHeight + rect.y pixStart = vs[1]*self.lineHeight + rect.y
pixStop = pixStart + rect.height pixStop = pixStart + rect.height

View File

@@ -21,6 +21,8 @@ class TestPanel(wxPanel):
EVT_LISTBOX_DCLICK(self, 60, self.EvtListBoxDClick) EVT_LISTBOX_DCLICK(self, 60, self.EvtListBoxDClick)
lb.SetSelection(0) lb.SetSelection(0)
EVT_RIGHT_UP(self, self.OnDoPopup)
def EvtListBox(self, event): def EvtListBox(self, event):
self.log.WriteText('EvtListBox: %s\n' % event.GetString()) self.log.WriteText('EvtListBox: %s\n' % event.GetString())
@@ -28,6 +30,24 @@ class TestPanel(wxPanel):
def EvtListBoxDClick(self, event): def EvtListBoxDClick(self, event):
self.log.WriteText('EvtListBoxDClick:\n') 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()
#---------------------------------------------------------------------- #----------------------------------------------------------------------

View File

@@ -70,116 +70,116 @@ class JoystickTestPanel(wxPanel):
# WDR: methods for JoystickTestPanel # WDR: methods for JoystickTestPanel
def GetYPositionCtrl(self): def GetYPositionCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Y_Position_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Y_Position_Ctrl)
def GetXPositionCtrl(self): def GetXPositionCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_X_Position_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_X_Position_Ctrl)
def GetVMaxCtrl(self): def GetVMaxCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_V_Max_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_V_Max_Ctrl)
def GetVMinCtrl(self): def GetVMinCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_V_Min_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_V_Min_Ctrl)
def GetRudderMaxCtrl(self): def GetRudderMaxCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Rudder_Max_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Rudder_Max_Ctrl)
def GetRudderMinCtrl(self): def GetRudderMinCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Rudder_Min_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Rudder_Min_Ctrl)
def GetMaxAxesCtrl(self): def GetMaxAxesCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Max_Axes_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Max_Axes_Ctrl)
def GetMaxButtonsCtrl(self): def GetMaxButtonsCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Max_Buttons_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Max_Buttons_Ctrl)
def GetZMaxCtrl(self): def GetZMaxCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Z_Max_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Z_Max_Ctrl)
def GetYMaxCtrl(self): def GetYMaxCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Y_Max_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Y_Max_Ctrl)
def GetYMinCtrl(self): def GetYMinCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Y_Min_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Y_Min_Ctrl)
def GetXMinCtrl(self): def GetXMinCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_X_Min_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_X_Min_Ctrl)
def GetNumSticksCtrl(self): def GetNumSticksCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Num_Sticks_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Num_Sticks_Ctrl)
def GetHasPovCtsCtrl(self): def GetHasPovCtsCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Has_POV_CTS_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Has_POV_CTS_Ctrl)
def GetHasVCtrl(self): def GetHasVCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Has_V_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Has_V_Ctrl)
def GetHasUCtrl(self): def GetHasUCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Has_U_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Has_U_Ctrl)
def GetVPositionCtrl(self): def GetVPositionCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_V_Position_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_V_Position_Ctrl)
def GetUPositionCtrl(self): def GetUPositionCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_U_Position_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_U_Position_Ctrl)
def GetPovPositionCtrl(self): def GetPovPositionCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_POV_Position_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_POV_Position_Ctrl)
def GetButtonStateCtrl(self): def GetButtonStateCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Button_State_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Button_State_Ctrl)
def GetUMaxCtrl(self): def GetUMaxCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_U_Max_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_U_Max_Ctrl)
def GetUMinCtrl(self): def GetUMinCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_U_Min_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_U_Min_Ctrl)
def GetPollingMaxCtrl(self): def GetPollingMaxCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Polling_Max_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Polling_Max_Ctrl)
def GetPollingMinCtrl(self): def GetPollingMinCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Polling_Min_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Polling_Min_Ctrl)
def GetNumAxesCtrl(self): def GetNumAxesCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Num_Axes_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Num_Axes_Ctrl)
def GetNumButtonsCtrl(self): def GetNumButtonsCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Num_Buttons_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Num_Buttons_Ctrl)
def GetXMaxCtrl(self): def GetXMaxCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_X_Max_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_X_Max_Ctrl)
def GetZMinCtrl(self): def GetZMinCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Z_Min_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Z_Min_Ctrl)
def GetProdNameCtrl(self): def GetProdNameCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Prod_Name_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Prod_Name_Ctrl)
def GetMfgIdCtrl(self): def GetMfgIdCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Mfg_ID_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Mfg_ID_Ctrl)
def GetHasPov4dirCtrl(self): def GetHasPov4dirCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Has_POV_4DIR_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Has_POV_4DIR_Ctrl)
def GetHasPovCtrl(self): def GetHasPovCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Has_POV_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Has_POV_Ctrl)
def GetHasZCtrl(self): def GetHasZCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Has_Z_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Has_Z_Ctrl)
def GetHasRudderCtrl(self): def GetHasRudderCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Has_Rudder_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Has_Rudder_Ctrl)
def GetRudderPosCtrl(self): def GetRudderPosCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Rudder_Pos_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Rudder_Pos_Ctrl)
def GetPovCtsPosCtrl(self): def GetPovCtsPosCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_POV_CTS_Pos_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_POV_CTS_Pos_Ctrl)
def GetZPositionCtrl(self): def GetZPositionCtrl(self):
return wxPyTypeCast( self.FindWindowById(ID_Z_Position_Ctrl), "wxTextCtrl" ) return self.FindWindowById(ID_Z_Position_Ctrl)
# WDR: handler implementations for JoysticktestPanel # WDR: handler implementations for JoysticktestPanel

View File

@@ -13,7 +13,7 @@ from my_distutils import run_swig, contrib_copy_tree
# flags and values that affect this script # flags and values that affect this script
#---------------------------------------------------------------------- #----------------------------------------------------------------------
VERSION = "2.3b4" VERSION = "2.3.0"
DESCRIPTION = "Cross platform GUI toolkit for Python" DESCRIPTION = "Cross platform GUI toolkit for Python"
AUTHOR = "Robin Dunn" AUTHOR = "Robin Dunn"
AUTHOR_EMAIL = "robin@alldunn.com" AUTHOR_EMAIL = "robin@alldunn.com"

View File

@@ -1 +1 @@
ver = '2.3b4' ver = '2.3.0'

View File

@@ -212,6 +212,7 @@ enum {
wxRESIZE_BORDER, wxRESIZE_BORDER,
wxDIALOG_MODAL, wxDIALOG_MODAL,
wxDIALOG_MODELESS, wxDIALOG_MODELESS,
wxDIALOG_NO_PARENT,
wxDEFAULT_FRAME_STYLE, wxDEFAULT_FRAME_STYLE,
wxDEFAULT_DIALOG_STYLE, wxDEFAULT_DIALOG_STYLE,

View File

@@ -42,7 +42,7 @@ public:
~wxColourData(); ~wxColourData();
bool GetChooseFull(); bool GetChooseFull();
wxColour& GetColour(); wxColour GetColour();
wxColour GetCustomColour(int i); wxColour GetCustomColour(int i);
void SetChooseFull(int flag); void SetChooseFull(int flag);
void SetColour(const wxColour& colour); void SetColour(const wxColour& colour);
@@ -198,7 +198,7 @@ public:
void EnableEffects(bool enable); void EnableEffects(bool enable);
bool GetAllowSymbols(); bool GetAllowSymbols();
wxColour& GetColour(); wxColour GetColour();
wxFont GetChosenFont(); wxFont GetChosenFont();
bool GetEnableEffects(); bool GetEnableEffects();
wxFont GetInitialFont(); wxFont GetInitialFont();

View File

@@ -442,7 +442,7 @@ public:
~wxPen(); ~wxPen();
int GetCap(); int GetCap();
wxColour& GetColour(); wxColour GetColour();
int GetJoin(); int GetJoin();
int GetStyle(); int GetStyle();
@@ -482,7 +482,7 @@ public:
wxBrush(const wxColour& colour, int style=wxSOLID); wxBrush(const wxColour& colour, int style=wxSOLID);
~wxBrush(); ~wxBrush();
wxColour& GetColour(); wxColour GetColour();
wxBitmap * GetStipple(); wxBitmap * GetStipple();
int GetStyle(); int GetStyle();
bool Ok(); bool Ok();
@@ -567,12 +567,12 @@ public:
%name(GetSizeTuple)void GetSize(int* OUTPUT, int* OUTPUT); %name(GetSizeTuple)void GetSize(int* OUTPUT, int* OUTPUT);
wxSize GetSize(); wxSize GetSize();
wxSize GetSizeMM(); wxSize GetSizeMM();
wxColour& GetTextBackground(); wxColour GetTextBackground();
void GetTextExtent(const wxString& string, long *OUTPUT, long *OUTPUT); void GetTextExtent(const wxString& string, long *OUTPUT, long *OUTPUT);
%name(GetFullTextExtent)void GetTextExtent(const wxString& string, %name(GetFullTextExtent)void GetTextExtent(const wxString& string,
long *OUTPUT, long *OUTPUT, long *OUTPUT, long* OUTPUT, long *OUTPUT, long *OUTPUT, long *OUTPUT, long* OUTPUT,
const wxFont* font = NULL); const wxFont* font = NULL);
wxColour& GetTextForeground(); wxColour GetTextForeground();
void GetUserScale(double *OUTPUT, double *OUTPUT); void GetUserScale(double *OUTPUT, double *OUTPUT);
long LogicalToDeviceX(long x); long LogicalToDeviceX(long x);
long LogicalToDeviceXRel(long x); long LogicalToDeviceXRel(long x);

View File

@@ -207,18 +207,12 @@ static PyObject *_wrap_wxColourData_GetColour(PyObject *self, PyObject *args, Py
} }
{ {
wxPy_BEGIN_ALLOW_THREADS; wxPy_BEGIN_ALLOW_THREADS;
wxColour & _result_ref = wxColourData_GetColour(_arg0); _result = new wxColour (wxColourData_GetColour(_arg0));
_result = (wxColour *) &_result_ref;
wxPy_END_ALLOW_THREADS; wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL; if (PyErr_Occurred()) return NULL;
} if (_result) { } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); _resultobj = Py_BuildValue("s",_ptemp);
_resultobj = Py_BuildValue("s",_ptemp);
} else {
Py_INCREF(Py_None);
_resultobj = Py_None;
}
return _resultobj; return _resultobj;
} }
@@ -2171,18 +2165,12 @@ static PyObject *_wrap_wxFontData_GetColour(PyObject *self, PyObject *args, PyOb
} }
{ {
wxPy_BEGIN_ALLOW_THREADS; wxPy_BEGIN_ALLOW_THREADS;
wxColour & _result_ref = wxFontData_GetColour(_arg0); _result = new wxColour (wxFontData_GetColour(_arg0));
_result = (wxColour *) &_result_ref;
wxPy_END_ALLOW_THREADS; wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL; if (PyErr_Occurred()) return NULL;
} if (_result) { } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); _resultobj = Py_BuildValue("s",_ptemp);
_resultobj = Py_BuildValue("s",_ptemp);
} else {
Py_INCREF(Py_None);
_resultobj = Py_None;
}
return _resultobj; return _resultobj;
} }

View File

@@ -29,7 +29,7 @@ class wxColourDataPtr(wxObjectPtr):
return val return val
def GetColour(self, *_args, **_kwargs): def GetColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_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 return val
def GetCustomColour(self, *_args, **_kwargs): def GetCustomColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_GetCustomColour,(self,) + _args, _kwargs) val = apply(cmndlgsc.wxColourData_GetCustomColour,(self,) + _args, _kwargs)
@@ -241,7 +241,7 @@ class wxFontDataPtr(wxObjectPtr):
return val return val
def GetColour(self, *_args, **_kwargs): def GetColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_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 return val
def GetChosenFont(self, *_args, **_kwargs): def GetChosenFont(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs) val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs)

View File

@@ -4523,18 +4523,12 @@ static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject
} }
{ {
wxPy_BEGIN_ALLOW_THREADS; wxPy_BEGIN_ALLOW_THREADS;
wxColour & _result_ref = wxPen_GetColour(_arg0); _result = new wxColour (wxPen_GetColour(_arg0));
_result = (wxColour *) &_result_ref;
wxPy_END_ALLOW_THREADS; wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL; if (PyErr_Occurred()) return NULL;
} if (_result) { } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); _resultobj = Py_BuildValue("s",_ptemp);
_resultobj = Py_BuildValue("s",_ptemp);
} else {
Py_INCREF(Py_None);
_resultobj = Py_None;
}
return _resultobj; return _resultobj;
} }
@@ -5187,18 +5181,12 @@ static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObjec
} }
{ {
wxPy_BEGIN_ALLOW_THREADS; wxPy_BEGIN_ALLOW_THREADS;
wxColour & _result_ref = wxBrush_GetColour(_arg0); _result = new wxColour (wxBrush_GetColour(_arg0));
_result = (wxColour *) &_result_ref;
wxPy_END_ALLOW_THREADS; wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL; if (PyErr_Occurred()) return NULL;
} if (_result) { } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); _resultobj = Py_BuildValue("s",_ptemp);
_resultobj = Py_BuildValue("s",_ptemp);
} else {
Py_INCREF(Py_None);
_resultobj = Py_None;
}
return _resultobj; return _resultobj;
} }
@@ -7063,18 +7051,12 @@ static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, Py
} }
{ {
wxPy_BEGIN_ALLOW_THREADS; wxPy_BEGIN_ALLOW_THREADS;
wxColour & _result_ref = wxDC_GetTextBackground(_arg0); _result = new wxColour (wxDC_GetTextBackground(_arg0));
_result = (wxColour *) &_result_ref;
wxPy_END_ALLOW_THREADS; wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL; if (PyErr_Occurred()) return NULL;
} if (_result) { } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); _resultobj = Py_BuildValue("s",_ptemp);
_resultobj = Py_BuildValue("s",_ptemp);
} else {
Py_INCREF(Py_None);
_resultobj = Py_None;
}
return _resultobj; return _resultobj;
} }
@@ -7272,18 +7254,12 @@ static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, Py
} }
{ {
wxPy_BEGIN_ALLOW_THREADS; wxPy_BEGIN_ALLOW_THREADS;
wxColour & _result_ref = wxDC_GetTextForeground(_arg0); _result = new wxColour (wxDC_GetTextForeground(_arg0));
_result = (wxColour *) &_result_ref;
wxPy_END_ALLOW_THREADS; wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL; if (PyErr_Occurred()) return NULL;
} if (_result) { } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); _resultobj = Py_BuildValue("s",_ptemp);
_resultobj = Py_BuildValue("s",_ptemp);
} else {
Py_INCREF(Py_None);
_resultobj = Py_None;
}
return _resultobj; return _resultobj;
} }

View File

@@ -414,7 +414,7 @@ class wxPenPtr(wxGDIObjectPtr):
return val return val
def GetColour(self, *_args, **_kwargs): def GetColour(self, *_args, **_kwargs):
val = apply(gdic.wxPen_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 return val
def GetJoin(self, *_args, **_kwargs): def GetJoin(self, *_args, **_kwargs):
val = apply(gdic.wxPen_GetJoin,(self,) + _args, _kwargs) val = apply(gdic.wxPen_GetJoin,(self,) + _args, _kwargs)
@@ -498,7 +498,7 @@ class wxBrushPtr(wxGDIObjectPtr):
gdic.delete_wxBrush(self) gdic.delete_wxBrush(self)
def GetColour(self, *_args, **_kwargs): def GetColour(self, *_args, **_kwargs):
val = apply(gdic.wxBrush_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 return val
def GetStipple(self, *_args, **_kwargs): def GetStipple(self, *_args, **_kwargs):
val = apply(gdic.wxBrush_GetStipple,(self,) + _args, _kwargs) val = apply(gdic.wxBrush_GetStipple,(self,) + _args, _kwargs)
@@ -694,7 +694,7 @@ class wxDCPtr(wxObjectPtr):
return val return val
def GetTextBackground(self, *_args, **_kwargs): def GetTextBackground(self, *_args, **_kwargs):
val = apply(gdic.wxDC_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 return val
def GetTextExtent(self, *_args, **_kwargs): def GetTextExtent(self, *_args, **_kwargs):
val = apply(gdic.wxDC_GetTextExtent,(self,) + _args, _kwargs) val = apply(gdic.wxDC_GetTextExtent,(self,) + _args, _kwargs)
@@ -704,7 +704,7 @@ class wxDCPtr(wxObjectPtr):
return val return val
def GetTextForeground(self, *_args, **_kwargs): def GetTextForeground(self, *_args, **_kwargs):
val = apply(gdic.wxDC_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 return val
def GetUserScale(self, *_args, **_kwargs): def GetUserScale(self, *_args, **_kwargs):
val = apply(gdic.wxDC_GetUserScale,(self,) + _args, _kwargs) val = apply(gdic.wxDC_GetUserScale,(self,) + _args, _kwargs)

View File

@@ -631,24 +631,6 @@ static PyObject *_wrap_wxEnableTopLevelWindows(PyObject *self, PyObject *args, P
return _resultobj; 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) { static PyObject *_wrap_wxGetResource(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj; PyObject * _resultobj;
char * _result; char * _result;
@@ -4192,7 +4174,6 @@ static PyMethodDef misccMethods[] = {
{ "wxGetEmailAddress", (PyCFunction) _wrap_wxGetEmailAddress, METH_VARARGS | METH_KEYWORDS }, { "wxGetEmailAddress", (PyCFunction) _wrap_wxGetEmailAddress, METH_VARARGS | METH_KEYWORDS },
{ "wxStripMenuCodes", (PyCFunction) _wrap_wxStripMenuCodes, METH_VARARGS | METH_KEYWORDS }, { "wxStripMenuCodes", (PyCFunction) _wrap_wxStripMenuCodes, METH_VARARGS | METH_KEYWORDS },
{ "wxGetResource", (PyCFunction) _wrap_wxGetResource, 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 }, { "wxEnableTopLevelWindows", (PyCFunction) _wrap_wxEnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
{ "wxYieldIfNeeded", (PyCFunction) _wrap_wxYieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, { "wxYieldIfNeeded", (PyCFunction) _wrap_wxYieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
{ "wxYield", (PyCFunction) _wrap_wxYield, METH_VARARGS | METH_KEYWORDS }, { "wxYield", (PyCFunction) _wrap_wxYield, METH_VARARGS | METH_KEYWORDS },

View File

@@ -587,8 +587,6 @@ wxYieldIfNeeded = miscc.wxYieldIfNeeded
wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
wxFlushEvents = miscc.wxFlushEvents
wxGetResource = miscc.wxGetResource wxGetResource = miscc.wxGetResource
wxStripMenuCodes = miscc.wxStripMenuCodes wxStripMenuCodes = miscc.wxStripMenuCodes

View File

@@ -1425,6 +1425,23 @@ static PyObject *_wrap_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObj
return _resultobj; 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) { static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj; PyObject * _resultobj;
bool _result; bool _result;
@@ -7234,6 +7251,7 @@ static PyMethodDef misc2cMethods[] = {
{ "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS },
{ "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS },
{ "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, 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 }, { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS },
{ "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
{ "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },

View File

@@ -726,6 +726,8 @@ def wxFindWindowAtPoint(*_args, **_kwargs):
wxCheckForInterrupt = misc2c.wxCheckForInterrupt wxCheckForInterrupt = misc2c.wxCheckForInterrupt
wxFlushEvents = misc2c.wxFlushEvents
wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier
wxResourceClear = misc2c.wxResourceClear wxResourceClear = misc2c.wxResourceClear

View File

@@ -9976,18 +9976,12 @@ static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args,
} }
{ {
wxPy_BEGIN_ALLOW_THREADS; wxPy_BEGIN_ALLOW_THREADS;
wxColour & _result_ref = wxMenuItem_GetTextColour(_arg0); _result = new wxColour (wxMenuItem_GetTextColour(_arg0));
_result = (wxColour *) &_result_ref;
wxPy_END_ALLOW_THREADS; wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL; if (PyErr_Occurred()) return NULL;
} if (_result) { } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); _resultobj = Py_BuildValue("s",_ptemp);
_resultobj = Py_BuildValue("s",_ptemp);
} else {
Py_INCREF(Py_None);
_resultobj = Py_None;
}
return _resultobj; return _resultobj;
} }
@@ -10048,18 +10042,12 @@ static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *
} }
{ {
wxPy_BEGIN_ALLOW_THREADS; wxPy_BEGIN_ALLOW_THREADS;
wxColour & _result_ref = wxMenuItem_GetBackgroundColour(_arg0); _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0));
_result = (wxColour *) &_result_ref;
wxPy_END_ALLOW_THREADS; wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL; if (PyErr_Occurred()) return NULL;
} if (_result) { } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); _resultobj = Py_BuildValue("s",_ptemp);
_resultobj = Py_BuildValue("s",_ptemp);
} else {
Py_INCREF(Py_None);
_resultobj = Py_None;
}
return _resultobj; return _resultobj;
} }

View File

@@ -950,14 +950,14 @@ class wxMenuItemPtr(wxObjectPtr):
return val return val
def GetTextColour(self, *_args, **_kwargs): def GetTextColour(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_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 return val
def SetBackgroundColour(self, *_args, **_kwargs): def SetBackgroundColour(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_SetBackgroundColour,(self,) + _args, _kwargs) val = apply(windowsc.wxMenuItem_SetBackgroundColour,(self,) + _args, _kwargs)
return val return val
def GetBackgroundColour(self, *_args, **_kwargs): def GetBackgroundColour(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_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 return val
def SetBitmaps(self, *_args, **_kwargs): def SetBitmaps(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_SetBitmaps,(self,) + _args, _kwargs) val = apply(windowsc.wxMenuItem_SetBitmaps,(self,) + _args, _kwargs)

View File

@@ -696,9 +696,9 @@ public:
void SetFont(const wxFont& font); void SetFont(const wxFont& font);
wxFont& GetFont(); wxFont& GetFont();
void SetTextColour(const wxColour& colText); void SetTextColour(const wxColour& colText);
wxColour& GetTextColour(); wxColour GetTextColour();
void SetBackgroundColour(const wxColour& colBack); void SetBackgroundColour(const wxColour& colBack);
wxColour& GetBackgroundColour(); wxColour GetBackgroundColour();
void SetBitmaps(const wxBitmap& bmpChecked, void SetBitmaps(const wxBitmap& bmpChecked,
const wxBitmap& bmpUnchecked = wxNullBitmap); const wxBitmap& bmpUnchecked = wxNullBitmap);
void SetBitmap(const wxBitmap& bmpChecked); void SetBitmap(const wxBitmap& bmpChecked);

View File

@@ -59,9 +59,9 @@ public:
void SetTextValue(const wxString& str); void SetTextValue(const wxString& str);
wxFont& GetFont(); wxFont& GetFont();
void SetFont(wxFont& f); void SetFont(wxFont& f);
wxColour& GetTextColour(); wxColour GetTextColour();
void SetTextColour(const wxColour& colour); void SetTextColour(const wxColour& colour);
wxColour& GetBackgroundColour(); wxColour GetBackgroundColour();
void SetBackgroundColour(const wxColour& colour); void SetBackgroundColour(const wxColour& colour);
wxBrush& GetBackgroundBrush(); wxBrush& GetBackgroundBrush();
int GetAlignment(); int GetAlignment();
@@ -122,7 +122,7 @@ public:
wxGridCell* GetCell(int row, int col); wxGridCell* GetCell(int row, int col);
int GetCellAlignment(int row, int col); int GetCellAlignment(int row, int col);
%name(GetDefCellAlignment)int GetCellAlignment(); %name(GetDefCellAlignment)int GetCellAlignment();
wxColour& GetCellBackgroundColour(int row, int col); wxColour GetCellBackgroundColour(int row, int col);
%name(GetDefCellBackgroundColour) wxColour& GetCellBackgroundColour(); %name(GetDefCellBackgroundColour) wxColour& GetCellBackgroundColour();
//wxGridCell *** GetCells(); //wxGridCell *** GetCells();
@@ -148,7 +148,7 @@ public:
return rows; return rows;
} }
} }
wxColour& GetCellTextColour(int row, int col); wxColour GetCellTextColour(int row, int col);
%name(GetDefCellTextColour)wxColour& GetCellTextColour(); %name(GetDefCellTextColour)wxColour& GetCellTextColour();
wxFont& GetCellTextFont(int row, int col); wxFont& GetCellTextFont(int row, int col);
%name(GetDefCellTextFont)wxFont& GetCellTextFont(); %name(GetDefCellTextFont)wxFont& GetCellTextFont();
@@ -161,9 +161,9 @@ public:
bool GetEditable(); bool GetEditable();
wxScrollBar * GetHorizScrollBar(); wxScrollBar * GetHorizScrollBar();
int GetLabelAlignment(int orientation); int GetLabelAlignment(int orientation);
wxColour& GetLabelBackgroundColour(); wxColour GetLabelBackgroundColour();
int GetLabelSize(int orientation); int GetLabelSize(int orientation);
wxColour& GetLabelTextColour(); wxColour GetLabelTextColour();
wxFont& GetLabelTextFont(); wxFont& GetLabelTextFont();
wxString& GetLabelValue(int orientation, int pos); wxString& GetLabelValue(int orientation, int pos);
int GetRowHeight(int row); int GetRowHeight(int row);