SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1924,7 +1924,7 @@ static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *
|
|||||||
PyObject * _obj4 = 0;
|
PyObject * _obj4 = 0;
|
||||||
PyObject * _argo6 = 0;
|
PyObject * _argo6 = 0;
|
||||||
PyObject * _obj7 = 0;
|
PyObject * _obj7 = 0;
|
||||||
char *_kwnames[] = { "parent","id","label","pos","size","style","val","name", NULL };
|
char *_kwnames[] = { "parent","id","label","pos","size","style","validator","name", NULL };
|
||||||
char _ptemp[128];
|
char _ptemp[128];
|
||||||
|
|
||||||
self = self;
|
self = self;
|
||||||
@@ -2038,7 +2038,7 @@ static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObjec
|
|||||||
PyObject * _obj5 = 0;
|
PyObject * _obj5 = 0;
|
||||||
PyObject * _argo7 = 0;
|
PyObject * _argo7 = 0;
|
||||||
PyObject * _obj8 = 0;
|
PyObject * _obj8 = 0;
|
||||||
char *_kwnames[] = { "self","parent","id","label","pos","size","style","val","name", NULL };
|
char *_kwnames[] = { "self","parent","id","label","pos","size","style","validator","name", NULL };
|
||||||
|
|
||||||
self = self;
|
self = self;
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8))
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOlOO:wxCheckBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_argo7,&_obj8))
|
||||||
|
@@ -1083,11 +1083,10 @@ static PyObject *_wrap_wxPrintData_GetPrinterTranslateY(PyObject *self, PyObject
|
|||||||
#define wxPrintData_GetPrintMode(_swigobj) (_swigobj->GetPrintMode())
|
#define wxPrintData_GetPrintMode(_swigobj) (_swigobj->GetPrintMode())
|
||||||
static PyObject *_wrap_wxPrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxPrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
wxPrintMode * _result;
|
wxPrintMode _result;
|
||||||
wxPrintData * _arg0;
|
wxPrintData * _arg0;
|
||||||
PyObject * _argo0 = 0;
|
PyObject * _argo0 = 0;
|
||||||
char *_kwnames[] = { "self", NULL };
|
char *_kwnames[] = { "self", NULL };
|
||||||
char _ptemp[128];
|
|
||||||
|
|
||||||
self = self;
|
self = self;
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrintMode",_kwnames,&_argo0))
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrintMode",_kwnames,&_argo0))
|
||||||
@@ -1101,12 +1100,11 @@ static PyObject *_wrap_wxPrintData_GetPrintMode(PyObject *self, PyObject *args,
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
_result = new wxPrintMode (wxPrintData_GetPrintMode(_arg0));
|
_result = (wxPrintMode )wxPrintData_GetPrintMode(_arg0);
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) return NULL;
|
if (PyErr_Occurred()) return NULL;
|
||||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPrintMode_p");
|
} _resultobj = Py_BuildValue("i",_result);
|
||||||
_resultobj = Py_BuildValue("s",_ptemp);
|
|
||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1485,13 +1483,12 @@ static PyObject *_wrap_wxPrintData_SetPrinterTranslation(PyObject *self, PyObjec
|
|||||||
static PyObject *_wrap_wxPrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxPrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
wxPrintData * _arg0;
|
wxPrintData * _arg0;
|
||||||
wxPrintMode * _arg1;
|
wxPrintMode _arg1;
|
||||||
PyObject * _argo0 = 0;
|
PyObject * _argo0 = 0;
|
||||||
PyObject * _argo1 = 0;
|
|
||||||
char *_kwnames[] = { "self","printMode", NULL };
|
char *_kwnames[] = { "self","printMode", NULL };
|
||||||
|
|
||||||
self = self;
|
self = self;
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPrintMode",_kwnames,&_argo0,&_argo1))
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetPrintMode",_kwnames,&_argo0,&_arg1))
|
||||||
return NULL;
|
return NULL;
|
||||||
if (_argo0) {
|
if (_argo0) {
|
||||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
@@ -1500,16 +1497,9 @@ static PyObject *_wrap_wxPrintData_SetPrintMode(PyObject *self, PyObject *args,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (_argo1) {
|
|
||||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintMode_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintData_SetPrintMode. Expected _wxPrintMode_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
wxPrintData_SetPrintMode(_arg0,*_arg1);
|
wxPrintData_SetPrintMode(_arg0,_arg1);
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) return NULL;
|
if (PyErr_Occurred()) return NULL;
|
||||||
@@ -5686,6 +5676,10 @@ SWIGEXPORT(void) initprintfwc() {
|
|||||||
SWIG_globals = SWIG_newvarlink();
|
SWIG_globals = SWIG_newvarlink();
|
||||||
m = Py_InitModule("printfwc", printfwcMethods);
|
m = Py_InitModule("printfwc", printfwcMethods);
|
||||||
d = PyModule_GetDict(m);
|
d = PyModule_GetDict(m);
|
||||||
|
PyDict_SetItemString(d,"wxPRINT_MODE_NONE", PyInt_FromLong((long) wxPRINT_MODE_NONE));
|
||||||
|
PyDict_SetItemString(d,"wxPRINT_MODE_PREVIEW", PyInt_FromLong((long) wxPRINT_MODE_PREVIEW));
|
||||||
|
PyDict_SetItemString(d,"wxPRINT_MODE_FILE", PyInt_FromLong((long) wxPRINT_MODE_FILE));
|
||||||
|
PyDict_SetItemString(d,"wxPRINT_MODE_PRINTER", PyInt_FromLong((long) wxPRINT_MODE_PRINTER));
|
||||||
PyDict_SetItemString(d,"wxPRINTER_NO_ERROR", PyInt_FromLong((long) wxPRINTER_NO_ERROR));
|
PyDict_SetItemString(d,"wxPRINTER_NO_ERROR", PyInt_FromLong((long) wxPRINTER_NO_ERROR));
|
||||||
PyDict_SetItemString(d,"wxPRINTER_CANCELLED", PyInt_FromLong((long) wxPRINTER_CANCELLED));
|
PyDict_SetItemString(d,"wxPRINTER_CANCELLED", PyInt_FromLong((long) wxPRINTER_CANCELLED));
|
||||||
PyDict_SetItemString(d,"wxPRINTER_ERROR", PyInt_FromLong((long) wxPRINTER_ERROR));
|
PyDict_SetItemString(d,"wxPRINTER_ERROR", PyInt_FromLong((long) wxPRINTER_ERROR));
|
||||||
|
@@ -637,6 +637,10 @@ wxPrinter_GetLastError = printfwc.wxPrinter_GetLastError
|
|||||||
|
|
||||||
#-------------- VARIABLE WRAPPERS ------------------
|
#-------------- VARIABLE WRAPPERS ------------------
|
||||||
|
|
||||||
|
wxPRINT_MODE_NONE = printfwc.wxPRINT_MODE_NONE
|
||||||
|
wxPRINT_MODE_PREVIEW = printfwc.wxPRINT_MODE_PREVIEW
|
||||||
|
wxPRINT_MODE_FILE = printfwc.wxPRINT_MODE_FILE
|
||||||
|
wxPRINT_MODE_PRINTER = printfwc.wxPRINT_MODE_PRINTER
|
||||||
wxPRINTER_NO_ERROR = printfwc.wxPRINTER_NO_ERROR
|
wxPRINTER_NO_ERROR = printfwc.wxPRINTER_NO_ERROR
|
||||||
wxPRINTER_CANCELLED = printfwc.wxPRINTER_CANCELLED
|
wxPRINTER_CANCELLED = printfwc.wxPRINTER_CANCELLED
|
||||||
wxPRINTER_ERROR = printfwc.wxPRINTER_ERROR
|
wxPRINTER_ERROR = printfwc.wxPRINTER_ERROR
|
||||||
|
@@ -2241,6 +2241,7 @@ SWIGEXPORT(void) initwxc() {
|
|||||||
PyDict_SetItemString(d,"wxFRAME_FLOAT_ON_PARENT", PyInt_FromLong((long) wxFRAME_FLOAT_ON_PARENT));
|
PyDict_SetItemString(d,"wxFRAME_FLOAT_ON_PARENT", PyInt_FromLong((long) wxFRAME_FLOAT_ON_PARENT));
|
||||||
PyDict_SetItemString(d,"wxFRAME_NO_WINDOW_MENU", PyInt_FromLong((long) wxFRAME_NO_WINDOW_MENU));
|
PyDict_SetItemString(d,"wxFRAME_NO_WINDOW_MENU", PyInt_FromLong((long) wxFRAME_NO_WINDOW_MENU));
|
||||||
PyDict_SetItemString(d,"wxFRAME_NO_TASKBAR", PyInt_FromLong((long) wxFRAME_NO_TASKBAR));
|
PyDict_SetItemString(d,"wxFRAME_NO_TASKBAR", PyInt_FromLong((long) wxFRAME_NO_TASKBAR));
|
||||||
|
PyDict_SetItemString(d,"wxFRAME_SHAPED", PyInt_FromLong((long) wxFRAME_SHAPED));
|
||||||
PyDict_SetItemString(d,"wxED_CLIENT_MARGIN", PyInt_FromLong((long) wxED_CLIENT_MARGIN));
|
PyDict_SetItemString(d,"wxED_CLIENT_MARGIN", PyInt_FromLong((long) wxED_CLIENT_MARGIN));
|
||||||
PyDict_SetItemString(d,"wxED_BUTTONS_BOTTOM", PyInt_FromLong((long) wxED_BUTTONS_BOTTOM));
|
PyDict_SetItemString(d,"wxED_BUTTONS_BOTTOM", PyInt_FromLong((long) wxED_BUTTONS_BOTTOM));
|
||||||
PyDict_SetItemString(d,"wxED_BUTTONS_RIGHT", PyInt_FromLong((long) wxED_BUTTONS_RIGHT));
|
PyDict_SetItemString(d,"wxED_BUTTONS_RIGHT", PyInt_FromLong((long) wxED_BUTTONS_RIGHT));
|
||||||
|
@@ -239,6 +239,7 @@ wxFRAME_TOOL_WINDOW = wxc.wxFRAME_TOOL_WINDOW
|
|||||||
wxFRAME_FLOAT_ON_PARENT = wxc.wxFRAME_FLOAT_ON_PARENT
|
wxFRAME_FLOAT_ON_PARENT = wxc.wxFRAME_FLOAT_ON_PARENT
|
||||||
wxFRAME_NO_WINDOW_MENU = wxc.wxFRAME_NO_WINDOW_MENU
|
wxFRAME_NO_WINDOW_MENU = wxc.wxFRAME_NO_WINDOW_MENU
|
||||||
wxFRAME_NO_TASKBAR = wxc.wxFRAME_NO_TASKBAR
|
wxFRAME_NO_TASKBAR = wxc.wxFRAME_NO_TASKBAR
|
||||||
|
wxFRAME_SHAPED = wxc.wxFRAME_SHAPED
|
||||||
wxED_CLIENT_MARGIN = wxc.wxED_CLIENT_MARGIN
|
wxED_CLIENT_MARGIN = wxc.wxED_CLIENT_MARGIN
|
||||||
wxED_BUTTONS_BOTTOM = wxc.wxED_BUTTONS_BOTTOM
|
wxED_BUTTONS_BOTTOM = wxc.wxED_BUTTONS_BOTTOM
|
||||||
wxED_BUTTONS_RIGHT = wxc.wxED_BUTTONS_RIGHT
|
wxED_BUTTONS_RIGHT = wxc.wxED_BUTTONS_RIGHT
|
||||||
@@ -1737,18 +1738,19 @@ class _wxPyDeadObject:
|
|||||||
def __nonzero__(self):
|
def __nonzero__(self):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
class wxNotebookPage(wxPanel):
|
class wxNotebookPage(wxPanel):
|
||||||
"""
|
"""
|
||||||
There is an old (and apparently unsolvable) bug when placing a
|
There is an old (and apparently unsolvable) bug when placing a
|
||||||
window with a nonstandard background colour in a wxNotebook, as
|
window with a nonstandard background colour in a wxNotebook on
|
||||||
the notbooks's background colour would always be used when the
|
wxGTK, as the notbooks's background colour would always be used
|
||||||
window is refreshed. The solution is to place a panel in the
|
when the window is refreshed. The solution is to place a panel in
|
||||||
notbook and the coloured window o nthe panel, sized to cover the
|
the notbook and the coloured window on the panel, sized to cover
|
||||||
panel. This simple class does that for you, just put an instance
|
the panel. This simple class does that for you, just put an
|
||||||
of this in the notebook and make your regular window a child of
|
instance of this in the notebook and make your regular window a
|
||||||
this one and it will handle the resize for you.
|
child of this one and it will handle the resize for you.
|
||||||
"""
|
"""
|
||||||
def __init__(self, parent, id=-1,
|
def __init__(self, parent, id=-1,
|
||||||
pos=wxDefaultPosition, size=wxDefaultSize,
|
pos=wxDefaultPosition, size=wxDefaultSize,
|
||||||
|
Reference in New Issue
Block a user