Fixed name clash in wxIEHtmlWin, other minor tweaks.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3587,9 +3587,17 @@ static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kw
|
||||
|
||||
static PyObject * wxColour_Get(wxColour *self) {
|
||||
PyObject* rv = PyTuple_New(3);
|
||||
PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
|
||||
PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
|
||||
PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
|
||||
int red = -1;
|
||||
int green = -1;
|
||||
int blue = -1;
|
||||
if (self->Ok()) {
|
||||
red = self->Red();
|
||||
green = self->Green();
|
||||
blue = self->Blue();
|
||||
}
|
||||
PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
|
||||
PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
|
||||
PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
|
||||
return rv;
|
||||
}
|
||||
static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
|
Reference in New Issue
Block a user