wxPyEmptyStr --> wxEmptyString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
faf82e9bd3
commit
23bed52041
@ -846,6 +846,33 @@ typedef enum {
|
||||
|
||||
|
||||
|
||||
enum wxHitTest
|
||||
{
|
||||
wxHT_NOWHERE,
|
||||
|
||||
// scrollbar
|
||||
wxHT_SCROLLBAR_FIRST = wxHT_NOWHERE,
|
||||
wxHT_SCROLLBAR_ARROW_LINE_1, // left or upper arrow to scroll by line
|
||||
wxHT_SCROLLBAR_ARROW_LINE_2, // right or down
|
||||
wxHT_SCROLLBAR_ARROW_PAGE_1, // left or upper arrow to scroll by page
|
||||
wxHT_SCROLLBAR_ARROW_PAGE_2, // right or down
|
||||
wxHT_SCROLLBAR_THUMB, // on the thumb
|
||||
wxHT_SCROLLBAR_BAR_1, // bar to the left/above the thumb
|
||||
wxHT_SCROLLBAR_BAR_2, // bar to the right/below the thumb
|
||||
wxHT_SCROLLBAR_LAST,
|
||||
|
||||
// window
|
||||
wxHT_WINDOW_OUTSIDE, // not in this window at all
|
||||
wxHT_WINDOW_INSIDE, // in the client area
|
||||
wxHT_WINDOW_VERT_SCROLLBAR, // on the vertical scrollbar
|
||||
wxHT_WINDOW_HORZ_SCROLLBAR, // on the horizontal scrollbar
|
||||
wxHT_WINDOW_CORNER, // on the corner between 2 scrollbars
|
||||
|
||||
wxHT_MAX
|
||||
};
|
||||
|
||||
|
||||
|
||||
#define FALSE 0
|
||||
#define false 0
|
||||
#define TRUE 1
|
||||
|
@ -31,9 +31,6 @@
|
||||
%import _defs.i
|
||||
%import misc.i
|
||||
|
||||
%{
|
||||
static wxString wxPyEmptyStr("");
|
||||
%}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
@ -797,6 +794,23 @@ public:
|
||||
void DrawEllipse(long x, long y, long width, long height);
|
||||
void DrawEllipticArc(long x, long y, long width, long height, long start, long end);
|
||||
void DrawIcon(const wxIcon& icon, long x, long y);
|
||||
|
||||
void DrawLabel(const wxString& text, const wxRect& rect,
|
||||
int alignment = wxALIGN_LEFT | wxALIGN_TOP,
|
||||
int indexAccel = -1);
|
||||
|
||||
%addmethods {
|
||||
wxRect DrawImageLabel(const wxString& text,
|
||||
const wxBitmap& image,
|
||||
const wxRect& rect,
|
||||
int alignment = wxALIGN_LEFT | wxALIGN_TOP,
|
||||
int indexAccel = -1) {
|
||||
wxRect rv;
|
||||
self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
|
||||
void DrawLine(long x1, long y1, long x2, long y2);
|
||||
void DrawLines(int PCOUNT, wxPoint* points, long xoffset=0, long yoffset=0);
|
||||
void DrawPolygon(int PCOUNT, wxPoint* points, long xoffset=0, long yoffset=0,
|
||||
@ -1142,7 +1156,7 @@ public:
|
||||
|
||||
class wxMetaFile : public wxObject {
|
||||
public:
|
||||
wxMetaFile(const wxString& filename = wxPyEmptyStr);
|
||||
wxMetaFile(const wxString& filename = wxEmptyString);
|
||||
~wxMetaFile();
|
||||
|
||||
bool Ok();
|
||||
@ -1162,9 +1176,9 @@ public:
|
||||
|
||||
class wxMetaFileDC : public wxDC {
|
||||
public:
|
||||
wxMetaFileDC(const wxString& filename = wxPyEmptyStr,
|
||||
wxMetaFileDC(const wxString& filename = wxEmptyString,
|
||||
int width = 0, int height = 0,
|
||||
const wxString& description = wxPyEmptyStr);
|
||||
const wxString& description = wxEmptyString);
|
||||
wxMetaFile* Close();
|
||||
};
|
||||
|
||||
@ -1234,6 +1248,8 @@ public:
|
||||
~wxRegion();
|
||||
|
||||
void Clear();
|
||||
bool Offset(wxCoord x, wxCoord y);
|
||||
|
||||
wxRegionContain Contains(long x, long y);
|
||||
%name(ContainsPoint)wxRegionContain Contains(const wxPoint& pt);
|
||||
%name(ContainsRect)wxRegionContain Contains(const wxRect& rect);
|
||||
|
@ -28,10 +28,6 @@
|
||||
%import _defs.i
|
||||
|
||||
|
||||
%{
|
||||
static wxString wxPyEmptyStr("");
|
||||
%}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
@ -349,7 +345,7 @@ long wxGetFreeMemory();
|
||||
void wxGetMousePosition(int* OUTPUT, int* OUTPUT);
|
||||
bool wxIsBusy();
|
||||
wxString wxNow();
|
||||
bool wxShell(const wxString& command = wxPyEmptyStr);
|
||||
bool wxShell(const wxString& command = wxEmptyString);
|
||||
void wxStartTimer();
|
||||
int wxGetOsVersion(int *OUTPUT, int *OUTPUT);
|
||||
wxString wxGetOsDescription();
|
||||
|
@ -48,9 +48,6 @@
|
||||
%import streams.i
|
||||
%import utils.i
|
||||
|
||||
%{
|
||||
static wxString wxPyEmptyStr("");
|
||||
%}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Dialog Functions
|
||||
@ -65,15 +62,15 @@ wxString wxFileSelector(char* message,
|
||||
int x = -1, int y = -1);
|
||||
|
||||
wxString wxGetTextFromUser(const wxString& message,
|
||||
const wxString& caption = wxPyEmptyStr,
|
||||
const wxString& default_value = wxPyEmptyStr,
|
||||
const wxString& caption = wxEmptyString,
|
||||
const wxString& default_value = wxEmptyString,
|
||||
wxWindow *parent = NULL,
|
||||
int x = -1, int y = -1,
|
||||
bool centre = TRUE);
|
||||
|
||||
wxString wxGetPasswordFromUser(const wxString& message,
|
||||
const wxString& caption = wxPyEmptyStr,
|
||||
const wxString& default_value = wxPyEmptyStr,
|
||||
const wxString& caption = wxEmptyString,
|
||||
const wxString& default_value = wxEmptyString,
|
||||
wxWindow *parent = NULL);
|
||||
|
||||
|
||||
@ -101,7 +98,7 @@ int wxGetSingleChoiceIndex(const wxString& message, const wxString& caption,
|
||||
|
||||
|
||||
int wxMessageBox(const wxString& message,
|
||||
const wxString& caption = wxPyEmptyStr,
|
||||
const wxString& caption = wxEmptyString,
|
||||
int style = wxOK | wxCENTRE,
|
||||
wxWindow *parent = NULL,
|
||||
int x = -1, int y = -1);
|
||||
@ -1039,8 +1036,8 @@ public:
|
||||
{
|
||||
public:
|
||||
// ctors
|
||||
MessageParameters(const wxString& filename=wxPyEmptyStr,
|
||||
const wxString& mimetype=wxPyEmptyStr);
|
||||
MessageParameters(const wxString& filename=wxEmptyString,
|
||||
const wxString& mimetype=wxEmptyString);
|
||||
|
||||
// accessors (called by GetOpenCommand)
|
||||
// filename
|
||||
@ -1136,7 +1133,7 @@ public:
|
||||
// get the command to open/execute the file of given type
|
||||
%addmethods {
|
||||
PyObject* GetOpenCommand(const wxString& filename,
|
||||
const wxString& mimetype=wxPyEmptyStr) {
|
||||
const wxString& mimetype=wxEmptyString) {
|
||||
wxString str;
|
||||
if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
|
||||
return PyString_FromString(str.c_str());
|
||||
@ -1149,7 +1146,7 @@ public:
|
||||
// get the command to print the file of given type
|
||||
%addmethods {
|
||||
PyObject* GetPrintCommand(const wxString& filename,
|
||||
const wxString& mimetype=wxPyEmptyStr) {
|
||||
const wxString& mimetype=wxEmptyString) {
|
||||
wxString str;
|
||||
if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
|
||||
return PyString_FromString(str.c_str());
|
||||
@ -1162,7 +1159,7 @@ public:
|
||||
// Get all commands defined for this file type
|
||||
%addmethods {
|
||||
PyObject* GetAllCommands(const wxString& filename,
|
||||
const wxString& mimetype=wxPyEmptyStr) {
|
||||
const wxString& mimetype=wxEmptyString) {
|
||||
wxArrayString verbs;
|
||||
wxArrayString commands;
|
||||
if (self->GetAllCommands(&verbs, &commands,
|
||||
|
@ -94,8 +94,6 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
#else
|
||||
static char* wxStringErrorMsg = "String type required";
|
||||
#endif
|
||||
|
||||
static wxString wxPyEmptyStr("");
|
||||
// Implementations of some alternate "constructors"
|
||||
|
||||
wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
|
||||
@ -7585,6 +7583,145 @@ static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *k
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
|
||||
static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDC * _arg0;
|
||||
wxString * _arg1;
|
||||
wxRect * _arg2;
|
||||
int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
|
||||
int _arg4 = (int ) -1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
wxRect temp;
|
||||
PyObject * _obj2 = 0;
|
||||
char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
#if PYTHON_API_VERSION >= 1009
|
||||
char* tmpPtr; int tmpSize;
|
||||
if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
|
||||
return NULL;
|
||||
_arg1 = new wxString(tmpPtr, tmpSize);
|
||||
#else
|
||||
if (!PyString_Check(_obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
|
||||
#endif
|
||||
}
|
||||
{
|
||||
_arg2 = &temp;
|
||||
if (! wxRect_helper(_obj2, &_arg2))
|
||||
return NULL;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) {
|
||||
wxRect rv;
|
||||
self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
|
||||
return rv;
|
||||
}
|
||||
static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxRect * _result;
|
||||
wxDC * _arg0;
|
||||
wxString * _arg1;
|
||||
wxBitmap * _arg2;
|
||||
wxRect * _arg3;
|
||||
int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP;
|
||||
int _arg5 = (int ) -1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
PyObject * _argo2 = 0;
|
||||
wxRect temp;
|
||||
PyObject * _obj3 = 0;
|
||||
char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
#if PYTHON_API_VERSION >= 1009
|
||||
char* tmpPtr; int tmpSize;
|
||||
if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
|
||||
return NULL;
|
||||
_arg1 = new wxString(tmpPtr, tmpSize);
|
||||
#else
|
||||
if (!PyString_Check(_obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
|
||||
#endif
|
||||
}
|
||||
if (_argo2) {
|
||||
if (_argo2 == Py_None) { _arg2 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
_arg3 = &temp;
|
||||
if (! wxRect_helper(_obj3, &_arg3))
|
||||
return NULL;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5));
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
|
||||
static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@ -10831,7 +10968,7 @@ static void *SwigwxMetaFileTowxObject(void *ptr) {
|
||||
static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxMetaFile * _result;
|
||||
wxString * _arg0 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg0 = (wxString *) &wxEmptyString;
|
||||
PyObject * _obj0 = 0;
|
||||
char *_kwnames[] = { "filename", NULL };
|
||||
char _ptemp[128];
|
||||
@ -11101,10 +11238,10 @@ static void *SwigwxMetaFileDCTowxObject(void *ptr) {
|
||||
static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxMetaFileDC * _result;
|
||||
wxString * _arg0 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg0 = (wxString *) &wxEmptyString;
|
||||
int _arg1 = (int ) 0;
|
||||
int _arg2 = (int ) 0;
|
||||
wxString * _arg3 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg3 = (wxString *) &wxEmptyString;
|
||||
PyObject * _obj0 = 0;
|
||||
PyObject * _obj3 = 0;
|
||||
char *_kwnames[] = { "filename","width","height","description", NULL };
|
||||
@ -11959,6 +12096,36 @@ static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxRegion * _arg0;
|
||||
wxCoord _arg1;
|
||||
wxCoord _arg2;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","x","y", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@ -12957,6 +13124,7 @@ static PyMethodDef gdicMethods[] = {
|
||||
{ "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -13070,6 +13238,8 @@ static PyMethodDef gdicMethods[] = {
|
||||
{ "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@ -760,6 +760,13 @@ class wxDCPtr(wxObjectPtr):
|
||||
def DrawIcon(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxDC_DrawIcon,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DrawLabel(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxDC_DrawLabel,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DrawImageLabel(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxDC_DrawImageLabel,(self,) + _args, _kwargs)
|
||||
if val: val = wxRectPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def DrawLine(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxDC_DrawLine,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@ -1239,6 +1246,9 @@ class wxRegionPtr(wxGDIObjectPtr):
|
||||
def Clear(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxRegion_Clear,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Offset(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxRegion_Offset,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Contains(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxRegion_Contains,(self,) + _args, _kwargs)
|
||||
return val
|
||||
|
@ -93,8 +93,6 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
static char* wxStringErrorMsg = "String type required";
|
||||
#endif
|
||||
|
||||
static wxString wxPyEmptyStr("");
|
||||
|
||||
PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
|
||||
wxRegion reg1(*r1);
|
||||
wxRegion reg2(*r2);
|
||||
@ -417,7 +415,7 @@ static PyObject *_wrap_wxNow(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_wxShell(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxString * _arg0 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg0 = (wxString *) &wxEmptyString;
|
||||
PyObject * _obj0 = 0;
|
||||
char *_kwnames[] = { "command", NULL };
|
||||
|
||||
|
@ -106,8 +106,6 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
static char* wxStringErrorMsg = "String type required";
|
||||
#endif
|
||||
|
||||
static wxString wxPyEmptyStr("");
|
||||
|
||||
int wxCaret_GetBlinkTime() {
|
||||
return wxCaret::GetBlinkTime();
|
||||
}
|
||||
@ -335,8 +333,8 @@ static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObjec
|
||||
PyObject * _resultobj;
|
||||
wxString * _result;
|
||||
wxString * _arg0;
|
||||
wxString * _arg1 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg2 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg1 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg2 = (wxString *) &wxEmptyString;
|
||||
wxWindow * _arg3 = (wxWindow *) NULL;
|
||||
int _arg4 = (int ) -1;
|
||||
int _arg5 = (int ) -1;
|
||||
@ -446,8 +444,8 @@ static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyO
|
||||
PyObject * _resultobj;
|
||||
wxString * _result;
|
||||
wxString * _arg0;
|
||||
wxString * _arg1 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg2 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg1 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg2 = (wxString *) &wxEmptyString;
|
||||
wxWindow * _arg3 = (wxWindow *) NULL;
|
||||
PyObject * _obj0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
@ -763,7 +761,7 @@ static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
PyObject * _resultobj;
|
||||
int _result;
|
||||
wxString * _arg0;
|
||||
wxString * _arg1 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg1 = (wxString *) &wxEmptyString;
|
||||
int _arg2 = (int ) wxOK|wxCENTRE;
|
||||
wxWindow * _arg3 = (wxWindow *) NULL;
|
||||
int _arg4 = (int ) -1;
|
||||
@ -8633,7 +8631,7 @@ static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args,
|
||||
PyObject * _result;
|
||||
wxFileType * _arg0;
|
||||
wxString * _arg1;
|
||||
wxString * _arg2 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg2 = (wxString *) &wxEmptyString;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
PyObject * _obj2 = 0;
|
||||
@ -8718,7 +8716,7 @@ static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args
|
||||
PyObject * _result;
|
||||
wxFileType * _arg0;
|
||||
wxString * _arg1;
|
||||
wxString * _arg2 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg2 = (wxString *) &wxEmptyString;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
PyObject * _obj2 = 0;
|
||||
@ -8811,7 +8809,7 @@ static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args,
|
||||
PyObject * _result;
|
||||
wxFileType * _arg0;
|
||||
wxString * _arg1;
|
||||
wxString * _arg2 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg2 = (wxString *) &wxEmptyString;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
PyObject * _obj2 = 0;
|
||||
|
@ -91,8 +91,6 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
#else
|
||||
static char* wxStringErrorMsg = "String type required";
|
||||
#endif
|
||||
|
||||
static wxString wxPyEmptyStr("");
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -1472,8 +1470,8 @@ static PyObject *_wrap_wxToolBarBase_AddTool(PyObject *self, PyObject *args, PyO
|
||||
wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
|
||||
int _arg4 = (int ) FALSE;
|
||||
PyObject * _arg5 = (PyObject *) NULL;
|
||||
wxString * _arg6 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg7 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg6 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg7 = (wxString *) &wxEmptyString;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo2 = 0;
|
||||
PyObject * _argo3 = 0;
|
||||
@ -1576,8 +1574,8 @@ static PyObject *_wrap_wxToolBarBase_AddSimpleTool(PyObject *self, PyObject *arg
|
||||
wxToolBarBase * _arg0;
|
||||
int _arg1;
|
||||
wxBitmap * _arg2;
|
||||
wxString * _arg3 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg4 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg3 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg4 = (wxString *) &wxEmptyString;
|
||||
int _arg5 = (int ) FALSE;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo2 = 0;
|
||||
@ -1675,8 +1673,8 @@ static PyObject *_wrap_wxToolBarBase_InsertTool(PyObject *self, PyObject *args,
|
||||
wxBitmap * _arg4 = (wxBitmap *) &wxNullBitmap;
|
||||
int _arg5 = (int ) FALSE;
|
||||
PyObject * _arg6 = (PyObject *) NULL;
|
||||
wxString * _arg7 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg8 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg7 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg8 = (wxString *) &wxEmptyString;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo3 = 0;
|
||||
PyObject * _argo4 = 0;
|
||||
@ -1780,8 +1778,8 @@ static PyObject *_wrap_wxToolBarBase_InsertSimpleTool(PyObject *self, PyObject *
|
||||
size_t _arg1;
|
||||
int _arg2;
|
||||
wxBitmap * _arg3;
|
||||
wxString * _arg4 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg5 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg4 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg5 = (wxString *) &wxEmptyString;
|
||||
int _arg6 = (int ) FALSE;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo3 = 0;
|
||||
|
@ -93,8 +93,6 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
static char* wxStringErrorMsg = "String type required";
|
||||
#endif
|
||||
|
||||
static wxString wxPyEmptyStr("");
|
||||
|
||||
static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
|
||||
PyObject* ret = PyTuple_New(3);
|
||||
if (ret) {
|
||||
@ -1018,7 +1016,7 @@ static PyObject *_wrap_wxConfigBase_Read(PyObject *self, PyObject *args, PyObjec
|
||||
wxString * _result;
|
||||
wxConfigBase * _arg0;
|
||||
wxString * _arg1;
|
||||
wxString * _arg2 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg2 = (wxString *) &wxEmptyString;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
PyObject * _obj2 = 0;
|
||||
@ -2052,10 +2050,10 @@ static void *SwigwxConfigTowxConfigBase(void *ptr) {
|
||||
static PyObject *_wrap_new_wxConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxConfig * _result;
|
||||
wxString * _arg0 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg1 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg2 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg3 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg0 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg1 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg2 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg3 = (wxString *) &wxEmptyString;
|
||||
long _arg4 = (long ) 0;
|
||||
PyObject * _obj0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
@ -2215,10 +2213,10 @@ static void *SwigwxFileConfigTowxConfigBase(void *ptr) {
|
||||
static PyObject *_wrap_new_wxFileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxFileConfig * _result;
|
||||
wxString * _arg0 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg1 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg2 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg3 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg0 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg1 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg2 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg3 = (wxString *) &wxEmptyString;
|
||||
long _arg4 = (long ) 0;
|
||||
PyObject * _obj0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
|
@ -92,8 +92,6 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
static char* wxStringErrorMsg = "String type required";
|
||||
#endif
|
||||
|
||||
static wxString wxPyEmptyStr("");
|
||||
|
||||
class wxPyValidator : public wxValidator {
|
||||
DECLARE_DYNAMIC_CLASS(wxPyValidator);
|
||||
public:
|
||||
@ -1637,6 +1635,34 @@ static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *ar
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder())
|
||||
static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxBorder _result;
|
||||
wxWindow * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (wxBorder )wxWindow_GetBorder(_arg0);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static PyObject * wxWindow_GetChildren(wxWindow *self) {
|
||||
wxWindowList& list = self->GetChildren();
|
||||
return wxPy_ConvertList(&list, "wxWindow");
|
||||
@ -1804,6 +1830,66 @@ static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, Py
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin())
|
||||
static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxPoint * _result;
|
||||
wxWindow * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0));
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect())
|
||||
static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxRect * _result;
|
||||
wxWindow * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = new wxRect (wxWindow_GetClientRect(_arg0));
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
|
||||
static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@ -2754,6 +2840,35 @@ static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, P
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0))
|
||||
static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxWindow * _arg0;
|
||||
int _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","orient", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (bool )wxWindow_HasScrollbar(_arg0,_arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_Hide(_swigobj) (_swigobj->Hide())
|
||||
static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@ -2782,6 +2897,42 @@ static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *k
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0))
|
||||
static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxHitTest _result;
|
||||
wxWindow * _arg0;
|
||||
wxPoint * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
wxPoint temp;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","pt", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
_arg1 = &temp;
|
||||
if (! wxPoint_helper(_obj1, &_arg1))
|
||||
return NULL;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
|
||||
static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@ -3183,17 +3334,18 @@ static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObje
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
|
||||
#define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2))
|
||||
static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxWindow * _arg0;
|
||||
int _arg1;
|
||||
int _arg2;
|
||||
int _arg3 = (int ) wxSIZE_USE_EXISTING;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","x","y", NULL };
|
||||
char *_kwnames[] = { "self","x","y","flags", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2))
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
@ -3204,7 +3356,7 @@ static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxWindow_MoveXY(_arg0,_arg1,_arg2);
|
||||
wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
@ -3213,18 +3365,19 @@ static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
|
||||
#define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxWindow * _arg0;
|
||||
wxPoint * _arg1;
|
||||
int _arg2 = (int ) wxSIZE_USE_EXISTING;
|
||||
PyObject * _argo0 = 0;
|
||||
wxPoint temp;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","point", NULL };
|
||||
char *_kwnames[] = { "self","point","flags", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1))
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
@ -3240,7 +3393,7 @@ static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *k
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxWindow_Move(_arg0,*_arg1);
|
||||
wxWindow_Move(_arg0,*_arg1,_arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
@ -4289,20 +4442,21 @@ static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) {
|
||||
self->Move(pos);
|
||||
static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) {
|
||||
self->Move(pos, flags);
|
||||
}
|
||||
static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxWindow * _arg0;
|
||||
wxPoint * _arg1;
|
||||
int _arg2 = (int ) wxSIZE_USE_EXISTING;
|
||||
PyObject * _argo0 = 0;
|
||||
wxPoint temp;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","pos", NULL };
|
||||
char *_kwnames[] = { "self","pos","flags", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1))
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
@ -4318,7 +4472,7 @@ static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyOb
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxWindow_SetPosition(_arg0,*_arg1);
|
||||
wxWindow_SetPosition(_arg0,*_arg1,_arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
@ -4708,6 +4862,34 @@ static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *a
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI())
|
||||
static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxWindow * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxWindow_UpdateWindowUI(_arg0);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_Validate(_swigobj) (_swigobj->Validate())
|
||||
static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@ -5508,6 +5690,58 @@ static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyOb
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0))
|
||||
static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxWindow * _arg0;
|
||||
wxString * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","text", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
#if PYTHON_API_VERSION >= 1009
|
||||
char* tmpPtr; int tmpSize;
|
||||
if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
|
||||
return NULL;
|
||||
_arg1 = new wxString(tmpPtr, tmpSize);
|
||||
#else
|
||||
if (!PyString_Check(_obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
|
||||
#endif
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxWindow_SetHelpTextForId(_arg0,*_arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
|
||||
static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@ -6956,7 +7190,7 @@ static void *SwigwxMenuTowxObject(void *ptr) {
|
||||
static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxMenu * _result;
|
||||
wxString * _arg0 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg0 = (wxString *) &wxEmptyString;
|
||||
long _arg1 = (long ) 0;
|
||||
PyObject * _obj0 = 0;
|
||||
char *_kwnames[] = { "title","style", NULL };
|
||||
@ -7010,7 +7244,7 @@ static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *k
|
||||
wxMenu * _arg0;
|
||||
int _arg1;
|
||||
wxString * _arg2;
|
||||
wxString * _arg3 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg3 = (wxString *) &wxEmptyString;
|
||||
int _arg4 = (int ) FALSE;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj2 = 0;
|
||||
@ -7090,7 +7324,7 @@ static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObjec
|
||||
int _arg1;
|
||||
wxString * _arg2;
|
||||
wxMenu * _arg3;
|
||||
wxString * _arg4 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg4 = (wxString *) &wxEmptyString;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _obj2 = 0;
|
||||
PyObject * _argo3 = 0;
|
||||
@ -9246,8 +9480,8 @@ static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *
|
||||
wxMenuItem * _result;
|
||||
wxMenu * _arg0 = (wxMenu *) NULL;
|
||||
int _arg1 = (int ) wxID_SEPARATOR;
|
||||
wxString * _arg2 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg3 = (wxString *) &wxPyEmptyStr;
|
||||
wxString * _arg2 = (wxString *) &wxEmptyString;
|
||||
wxString * _arg3 = (wxString *) &wxEmptyString;
|
||||
bool _arg4 = (bool ) FALSE;
|
||||
wxMenu * _arg5 = (wxMenu *) NULL;
|
||||
PyObject * _argo0 = 0;
|
||||
@ -10649,6 +10883,7 @@ static PyMethodDef windowscMethods[] = {
|
||||
{ "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -10674,6 +10909,7 @@ static PyMethodDef windowscMethods[] = {
|
||||
{ "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -10729,7 +10965,9 @@ static PyMethodDef windowscMethods[] = {
|
||||
{ "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
|
||||
@ -10756,11 +10994,14 @@ static PyMethodDef windowscMethods[] = {
|
||||
{ "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@ -179,6 +179,9 @@ class wxWindowPtr(wxEvtHandlerPtr):
|
||||
val = apply(windowsc.wxWindow_GetBackgroundColour,(self,) + _args, _kwargs)
|
||||
if val: val = wxColourPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetBorder(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetBorder,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetChildren(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetChildren,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@ -195,6 +198,14 @@ class wxWindowPtr(wxEvtHandlerPtr):
|
||||
val = apply(windowsc.wxWindow_GetClientSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetClientAreaOrigin(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetClientAreaOrigin,(self,) + _args, _kwargs)
|
||||
if val: val = wxPointPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetClientRect(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetClientRect,(self,) + _args, _kwargs)
|
||||
if val: val = wxRectPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetConstraints(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_GetConstraints,(self,) + _args, _kwargs)
|
||||
if val: val = wxLayoutConstraintsPtr(val)
|
||||
@ -280,9 +291,15 @@ class wxWindowPtr(wxEvtHandlerPtr):
|
||||
def SetWindowStyle(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetWindowStyle,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasScrollbar(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_HasScrollbar,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Hide(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Hide,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HitTest(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_HitTest,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InitDialog(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_InitDialog,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@ -449,6 +466,9 @@ class wxWindowPtr(wxEvtHandlerPtr):
|
||||
def TransferDataToWindow(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_TransferDataToWindow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def UpdateWindowUI(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_UpdateWindowUI,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Validate(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_Validate,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@ -534,6 +554,9 @@ class wxWindowPtr(wxEvtHandlerPtr):
|
||||
def SetHelpText(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetHelpText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetHelpTextForId(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_SetHelpTextForId,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ScrollLines(self, *_args, **_kwargs):
|
||||
val = apply(windowsc.wxWindow_ScrollLines,(self,) + _args, _kwargs)
|
||||
return val
|
||||
|
@ -2511,6 +2511,22 @@ SWIGEXPORT(void) initwxc() {
|
||||
PyDict_SetItemString(d,"wxDUPLEX_SIMPLEX", PyInt_FromLong((long) wxDUPLEX_SIMPLEX));
|
||||
PyDict_SetItemString(d,"wxDUPLEX_HORIZONTAL", PyInt_FromLong((long) wxDUPLEX_HORIZONTAL));
|
||||
PyDict_SetItemString(d,"wxDUPLEX_VERTICAL", PyInt_FromLong((long) wxDUPLEX_VERTICAL));
|
||||
PyDict_SetItemString(d,"wxHT_NOWHERE", PyInt_FromLong((long) wxHT_NOWHERE));
|
||||
PyDict_SetItemString(d,"wxHT_SCROLLBAR_FIRST", PyInt_FromLong((long) wxHT_SCROLLBAR_FIRST));
|
||||
PyDict_SetItemString(d,"wxHT_SCROLLBAR_ARROW_LINE_1", PyInt_FromLong((long) wxHT_SCROLLBAR_ARROW_LINE_1));
|
||||
PyDict_SetItemString(d,"wxHT_SCROLLBAR_ARROW_LINE_2", PyInt_FromLong((long) wxHT_SCROLLBAR_ARROW_LINE_2));
|
||||
PyDict_SetItemString(d,"wxHT_SCROLLBAR_ARROW_PAGE_1", PyInt_FromLong((long) wxHT_SCROLLBAR_ARROW_PAGE_1));
|
||||
PyDict_SetItemString(d,"wxHT_SCROLLBAR_ARROW_PAGE_2", PyInt_FromLong((long) wxHT_SCROLLBAR_ARROW_PAGE_2));
|
||||
PyDict_SetItemString(d,"wxHT_SCROLLBAR_THUMB", PyInt_FromLong((long) wxHT_SCROLLBAR_THUMB));
|
||||
PyDict_SetItemString(d,"wxHT_SCROLLBAR_BAR_1", PyInt_FromLong((long) wxHT_SCROLLBAR_BAR_1));
|
||||
PyDict_SetItemString(d,"wxHT_SCROLLBAR_BAR_2", PyInt_FromLong((long) wxHT_SCROLLBAR_BAR_2));
|
||||
PyDict_SetItemString(d,"wxHT_SCROLLBAR_LAST", PyInt_FromLong((long) wxHT_SCROLLBAR_LAST));
|
||||
PyDict_SetItemString(d,"wxHT_WINDOW_OUTSIDE", PyInt_FromLong((long) wxHT_WINDOW_OUTSIDE));
|
||||
PyDict_SetItemString(d,"wxHT_WINDOW_INSIDE", PyInt_FromLong((long) wxHT_WINDOW_INSIDE));
|
||||
PyDict_SetItemString(d,"wxHT_WINDOW_VERT_SCROLLBAR", PyInt_FromLong((long) wxHT_WINDOW_VERT_SCROLLBAR));
|
||||
PyDict_SetItemString(d,"wxHT_WINDOW_HORZ_SCROLLBAR", PyInt_FromLong((long) wxHT_WINDOW_HORZ_SCROLLBAR));
|
||||
PyDict_SetItemString(d,"wxHT_WINDOW_CORNER", PyInt_FromLong((long) wxHT_WINDOW_CORNER));
|
||||
PyDict_SetItemString(d,"wxHT_MAX", PyInt_FromLong((long) wxHT_MAX));
|
||||
PyDict_SetItemString(d,"FALSE", PyInt_FromLong((long) 0));
|
||||
PyDict_SetItemString(d,"false", PyInt_FromLong((long) 0));
|
||||
PyDict_SetItemString(d,"TRUE", PyInt_FromLong((long) 1));
|
||||
|
@ -744,6 +744,22 @@ wxPAPER_A3_EXTRA_TRANSVERSE = wxc.wxPAPER_A3_EXTRA_TRANSVERSE
|
||||
wxDUPLEX_SIMPLEX = wxc.wxDUPLEX_SIMPLEX
|
||||
wxDUPLEX_HORIZONTAL = wxc.wxDUPLEX_HORIZONTAL
|
||||
wxDUPLEX_VERTICAL = wxc.wxDUPLEX_VERTICAL
|
||||
wxHT_NOWHERE = wxc.wxHT_NOWHERE
|
||||
wxHT_SCROLLBAR_FIRST = wxc.wxHT_SCROLLBAR_FIRST
|
||||
wxHT_SCROLLBAR_ARROW_LINE_1 = wxc.wxHT_SCROLLBAR_ARROW_LINE_1
|
||||
wxHT_SCROLLBAR_ARROW_LINE_2 = wxc.wxHT_SCROLLBAR_ARROW_LINE_2
|
||||
wxHT_SCROLLBAR_ARROW_PAGE_1 = wxc.wxHT_SCROLLBAR_ARROW_PAGE_1
|
||||
wxHT_SCROLLBAR_ARROW_PAGE_2 = wxc.wxHT_SCROLLBAR_ARROW_PAGE_2
|
||||
wxHT_SCROLLBAR_THUMB = wxc.wxHT_SCROLLBAR_THUMB
|
||||
wxHT_SCROLLBAR_BAR_1 = wxc.wxHT_SCROLLBAR_BAR_1
|
||||
wxHT_SCROLLBAR_BAR_2 = wxc.wxHT_SCROLLBAR_BAR_2
|
||||
wxHT_SCROLLBAR_LAST = wxc.wxHT_SCROLLBAR_LAST
|
||||
wxHT_WINDOW_OUTSIDE = wxc.wxHT_WINDOW_OUTSIDE
|
||||
wxHT_WINDOW_INSIDE = wxc.wxHT_WINDOW_INSIDE
|
||||
wxHT_WINDOW_VERT_SCROLLBAR = wxc.wxHT_WINDOW_VERT_SCROLLBAR
|
||||
wxHT_WINDOW_HORZ_SCROLLBAR = wxc.wxHT_WINDOW_HORZ_SCROLLBAR
|
||||
wxHT_WINDOW_CORNER = wxc.wxHT_WINDOW_CORNER
|
||||
wxHT_MAX = wxc.wxHT_MAX
|
||||
FALSE = wxc.FALSE
|
||||
false = wxc.false
|
||||
TRUE = wxc.TRUE
|
||||
|
@ -33,10 +33,6 @@
|
||||
%pragma(python) code = "import wx"
|
||||
|
||||
|
||||
%{
|
||||
static wxString wxPyEmptyStr("");
|
||||
%}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
class wxStatusBar : public wxWindow {
|
||||
@ -159,8 +155,8 @@ public:
|
||||
const wxBitmap& pushedBitmap = wxNullBitmap,
|
||||
int isToggle = FALSE,
|
||||
PyObject *clientData = NULL,
|
||||
const wxString& shortHelpString = wxPyEmptyStr,
|
||||
const wxString& longHelpString = wxPyEmptyStr) {
|
||||
const wxString& shortHelpString = wxEmptyString,
|
||||
const wxString& longHelpString = wxEmptyString) {
|
||||
wxPyUserData* udata = NULL;
|
||||
if (clientData)
|
||||
udata = new wxPyUserData(clientData);
|
||||
@ -171,8 +167,8 @@ public:
|
||||
// This one is easier to use...
|
||||
wxToolBarToolBase *AddSimpleTool(int id,
|
||||
const wxBitmap& bitmap,
|
||||
const wxString& shortHelpString = wxPyEmptyStr,
|
||||
const wxString& longHelpString = wxPyEmptyStr,
|
||||
const wxString& shortHelpString = wxEmptyString,
|
||||
const wxString& longHelpString = wxEmptyString,
|
||||
int isToggle = FALSE) {
|
||||
return self->AddTool(id, bitmap, wxNullBitmap, isToggle, NULL,
|
||||
shortHelpString, longHelpString);
|
||||
@ -186,8 +182,8 @@ public:
|
||||
const wxBitmap& pushedBitmap = wxNullBitmap,
|
||||
int isToggle = FALSE,
|
||||
PyObject *clientData = NULL,
|
||||
const wxString& shortHelpString = wxPyEmptyStr,
|
||||
const wxString& longHelpString = wxPyEmptyStr) {
|
||||
const wxString& shortHelpString = wxEmptyString,
|
||||
const wxString& longHelpString = wxEmptyString) {
|
||||
wxPyUserData* udata = NULL;
|
||||
if (clientData)
|
||||
udata = new wxPyUserData(clientData);
|
||||
@ -199,8 +195,8 @@ public:
|
||||
wxToolBarToolBase *InsertSimpleTool(size_t pos,
|
||||
int id,
|
||||
const wxBitmap& bitmap,
|
||||
const wxString& shortHelpString = wxPyEmptyStr,
|
||||
const wxString& longHelpString = wxPyEmptyStr,
|
||||
const wxString& shortHelpString = wxEmptyString,
|
||||
const wxString& longHelpString = wxEmptyString,
|
||||
int isToggle = FALSE) {
|
||||
return self->InsertTool(pos, id, bitmap, wxNullBitmap, isToggle, NULL,
|
||||
shortHelpString, longHelpString);
|
||||
|
@ -34,8 +34,6 @@
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
%{
|
||||
static wxString wxPyEmptyStr("");
|
||||
|
||||
static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
|
||||
PyObject* ret = PyTuple_New(3);
|
||||
if (ret) {
|
||||
@ -60,10 +58,10 @@ enum
|
||||
|
||||
class wxConfigBase {
|
||||
public:
|
||||
// wxConfigBase(const wxString& appName = wxPyEmptyStr, **** An ABC
|
||||
// const wxString& vendorName = wxPyEmptyStr,
|
||||
// const wxString& localFilename = wxPyEmptyStr,
|
||||
// const wxString& globalFilename = wxPyEmptyStr,
|
||||
// wxConfigBase(const wxString& appName = wxEmptyString, **** An ABC
|
||||
// const wxString& vendorName = wxEmptyString,
|
||||
// const wxString& localFilename = wxEmptyString,
|
||||
// const wxString& globalFilename = wxEmptyString,
|
||||
// long style = 0);
|
||||
~wxConfigBase();
|
||||
|
||||
@ -148,7 +146,7 @@ public:
|
||||
bool IsExpandingEnvVars();
|
||||
bool IsRecordingDefaults();
|
||||
|
||||
wxString Read(const wxString& key, const wxString& defaultVal = wxPyEmptyStr);
|
||||
wxString Read(const wxString& key, const wxString& defaultVal = wxEmptyString);
|
||||
|
||||
%addmethods {
|
||||
long ReadInt(const wxString& key, long defaultVal = 0) {
|
||||
@ -198,10 +196,10 @@ public:
|
||||
// This will be a wxRegConfig on Win32 and wxFileConfig otherwise.
|
||||
class wxConfig : public wxConfigBase {
|
||||
public:
|
||||
wxConfig(const wxString& appName = wxPyEmptyStr,
|
||||
const wxString& vendorName = wxPyEmptyStr,
|
||||
const wxString& localFilename = wxPyEmptyStr,
|
||||
const wxString& globalFilename = wxPyEmptyStr,
|
||||
wxConfig(const wxString& appName = wxEmptyString,
|
||||
const wxString& vendorName = wxEmptyString,
|
||||
const wxString& localFilename = wxEmptyString,
|
||||
const wxString& globalFilename = wxEmptyString,
|
||||
long style = 0);
|
||||
~wxConfig();
|
||||
};
|
||||
@ -210,10 +208,10 @@ public:
|
||||
// Sometimes it's nice to explicitly have a wxFileConfig too.
|
||||
class wxFileConfig : public wxConfigBase {
|
||||
public:
|
||||
wxFileConfig(const wxString& appName = wxPyEmptyStr,
|
||||
const wxString& vendorName = wxPyEmptyStr,
|
||||
const wxString& localFilename = wxPyEmptyStr,
|
||||
const wxString& globalFilename = wxPyEmptyStr,
|
||||
wxFileConfig(const wxString& appName = wxEmptyString,
|
||||
const wxString& vendorName = wxEmptyString,
|
||||
const wxString& localFilename = wxEmptyString,
|
||||
const wxString& globalFilename = wxEmptyString,
|
||||
long style = 0);
|
||||
~wxFileConfig();
|
||||
};
|
||||
|
@ -33,10 +33,6 @@
|
||||
%pragma(python) code = "import wx"
|
||||
|
||||
|
||||
%{
|
||||
static wxString wxPyEmptyStr("");
|
||||
%}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
class wxEvtHandler : public wxObject {
|
||||
@ -218,6 +214,7 @@ public:
|
||||
%name(FindWindowByName) wxWindow* FindWindow(const wxString& name);
|
||||
void Fit();
|
||||
wxColour GetBackgroundColour();
|
||||
wxBorder GetBorder() const;
|
||||
|
||||
//wxList& GetChildren();
|
||||
%addmethods {
|
||||
@ -231,6 +228,15 @@ public:
|
||||
int GetCharWidth();
|
||||
%name(GetClientSizeTuple) void GetClientSize(int *OUTPUT, int *OUTPUT);
|
||||
wxSize GetClientSize();
|
||||
|
||||
// get the origin of the client area of the window relative to the
|
||||
// window top left corner (the client area may be shifted because of
|
||||
// the borders, scrollbars, other decorations...)
|
||||
wxPoint GetClientAreaOrigin() const;
|
||||
|
||||
// get the client rectangle in window (i.e. client) coordinates
|
||||
wxRect GetClientRect() const;
|
||||
|
||||
wxLayoutConstraints * GetConstraints();
|
||||
wxEvtHandler* GetEventHandler();
|
||||
|
||||
@ -264,7 +270,9 @@ public:
|
||||
long GetWindowStyleFlag();
|
||||
void SetWindowStyleFlag(long style);
|
||||
void SetWindowStyle(long style);
|
||||
bool HasScrollbar(int orient) const;
|
||||
bool Hide();
|
||||
wxHitTest HitTest(const wxPoint& pt);
|
||||
void InitDialog();
|
||||
bool IsEnabled();
|
||||
bool IsExposed( int x, int y, int w=0, int h=0 );
|
||||
@ -277,8 +285,8 @@ public:
|
||||
bool LoadFromResource(wxWindow* parent, const wxString& resourceName, const wxResourceTable* resourceTable = NULL);
|
||||
void Lower();
|
||||
void MakeModal(bool flag=TRUE);
|
||||
%name(MoveXY)void Move(int x, int y);
|
||||
void Move(const wxPoint& point);
|
||||
%name(MoveXY)void Move(int x, int y, int flags = wxSIZE_USE_EXISTING);
|
||||
void Move(const wxPoint& point, int flags = wxSIZE_USE_EXISTING);
|
||||
|
||||
wxEvtHandler* PopEventHandler(bool deleteHandler = FALSE);
|
||||
void PushEventHandler(wxEvtHandler* handler);
|
||||
@ -326,8 +334,8 @@ public:
|
||||
self->SetSize(size);
|
||||
}
|
||||
|
||||
void SetPosition(const wxPoint& pos) {
|
||||
self->Move(pos);
|
||||
void SetPosition(const wxPoint& pos, int flags = wxSIZE_USE_EXISTING) {
|
||||
self->Move(pos, flags);
|
||||
}
|
||||
|
||||
void SetRect(const wxRect& rect, int sizeFlags=wxSIZE_AUTO) {
|
||||
@ -346,6 +354,7 @@ public:
|
||||
bool Show(bool show=TRUE);
|
||||
bool TransferDataFromWindow();
|
||||
bool TransferDataToWindow();
|
||||
void UpdateWindowUI();
|
||||
bool Validate();
|
||||
void WarpPointer(int x, int y);
|
||||
|
||||
@ -392,6 +401,7 @@ public:
|
||||
|
||||
wxString GetHelpText();
|
||||
void SetHelpText(const wxString& helpText);
|
||||
void SetHelpTextForId(const wxString& text);
|
||||
|
||||
bool ScrollLines(int lines);
|
||||
bool ScrollPages(int pages);
|
||||
@ -531,15 +541,15 @@ public:
|
||||
|
||||
class wxMenu : public wxEvtHandler {
|
||||
public:
|
||||
wxMenu(const wxString& title = wxPyEmptyStr, long style = 0);
|
||||
wxMenu(const wxString& title = wxEmptyString, long style = 0);
|
||||
|
||||
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
||||
|
||||
void Append(int id, const wxString& item,
|
||||
const wxString& helpString = wxPyEmptyStr,
|
||||
const wxString& helpString = wxEmptyString,
|
||||
int checkable = FALSE);
|
||||
%name(AppendMenu)void Append(int id, const wxString& item, wxMenu *subMenu,
|
||||
const wxString& helpString = wxPyEmptyStr);
|
||||
const wxString& helpString = wxEmptyString);
|
||||
%name(AppendItem)void Append(const wxMenuItem* item);
|
||||
|
||||
void AppendSeparator();
|
||||
@ -637,8 +647,8 @@ public:
|
||||
class wxMenuItem : public wxObject {
|
||||
public:
|
||||
wxMenuItem(wxMenu* parentMenu=NULL, int id=wxID_SEPARATOR,
|
||||
const wxString& text = wxPyEmptyStr,
|
||||
const wxString& help = wxPyEmptyStr,
|
||||
const wxString& text = wxEmptyString,
|
||||
const wxString& help = wxEmptyString,
|
||||
bool isCheckable = FALSE, wxMenu* subMenu = NULL);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user