SWIGged updates for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -1990,7 +1990,7 @@ static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *
 | 
			
		||||
    PyObject * _obj4 = 0;
 | 
			
		||||
    PyObject * _argo6 = 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];
 | 
			
		||||
 | 
			
		||||
    self = self;
 | 
			
		||||
@@ -2104,7 +2104,7 @@ static PyObject *_wrap_wxCheckBox_Create(PyObject *self, PyObject *args, PyObjec
 | 
			
		||||
    PyObject * _obj5 = 0;
 | 
			
		||||
    PyObject * _argo7 = 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;
 | 
			
		||||
    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())
 | 
			
		||||
static PyObject *_wrap_wxPrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    wxPrintMode * _result;
 | 
			
		||||
    wxPrintMode  _result;
 | 
			
		||||
    wxPrintData * _arg0;
 | 
			
		||||
    PyObject * _argo0 = 0;
 | 
			
		||||
    char *_kwnames[] = { "self", NULL };
 | 
			
		||||
    char _ptemp[128];
 | 
			
		||||
 | 
			
		||||
    self = self;
 | 
			
		||||
    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();
 | 
			
		||||
    _result = new wxPrintMode (wxPrintData_GetPrintMode(_arg0));
 | 
			
		||||
    _result = (wxPrintMode )wxPrintData_GetPrintMode(_arg0);
 | 
			
		||||
 | 
			
		||||
    wxPyEndAllowThreads(__tstate);
 | 
			
		||||
    if (PyErr_Occurred()) return NULL;
 | 
			
		||||
}    SWIG_MakePtr(_ptemp, (void *) _result,"_wxPrintMode_p");
 | 
			
		||||
    _resultobj = Py_BuildValue("s",_ptemp);
 | 
			
		||||
}    _resultobj = Py_BuildValue("i",_result);
 | 
			
		||||
    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) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    wxPrintData * _arg0;
 | 
			
		||||
    wxPrintMode * _arg1;
 | 
			
		||||
    wxPrintMode  _arg1;
 | 
			
		||||
    PyObject * _argo0 = 0;
 | 
			
		||||
    PyObject * _argo1 = 0;
 | 
			
		||||
    char *_kwnames[] = { "self","printMode", NULL };
 | 
			
		||||
 | 
			
		||||
    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;
 | 
			
		||||
    if (_argo0) {
 | 
			
		||||
        if (_argo0 == Py_None) { _arg0 = NULL; }
 | 
			
		||||
@@ -1500,16 +1497,9 @@ static PyObject *_wrap_wxPrintData_SetPrintMode(PyObject *self, PyObject *args,
 | 
			
		||||
        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();
 | 
			
		||||
    wxPrintData_SetPrintMode(_arg0,*_arg1);
 | 
			
		||||
    wxPrintData_SetPrintMode(_arg0,_arg1);
 | 
			
		||||
 | 
			
		||||
    wxPyEndAllowThreads(__tstate);
 | 
			
		||||
    if (PyErr_Occurred()) return NULL;
 | 
			
		||||
@@ -5803,6 +5793,10 @@ SWIGEXPORT(void) initprintfwc() {
 | 
			
		||||
	 SWIG_globals = SWIG_newvarlink();
 | 
			
		||||
	 m = Py_InitModule("printfwc", printfwcMethods);
 | 
			
		||||
	 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_CANCELLED", PyInt_FromLong((long) wxPRINTER_CANCELLED));
 | 
			
		||||
	 PyDict_SetItemString(d,"wxPRINTER_ERROR", PyInt_FromLong((long) wxPRINTER_ERROR));
 | 
			
		||||
 
 | 
			
		||||
@@ -656,6 +656,10 @@ wxPrinter_GetLastError = printfwc.wxPrinter_GetLastError
 | 
			
		||||
 | 
			
		||||
#-------------- 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_CANCELLED = printfwc.wxPRINTER_CANCELLED
 | 
			
		||||
wxPRINTER_ERROR = printfwc.wxPRINTER_ERROR
 | 
			
		||||
 
 | 
			
		||||
@@ -2302,6 +2302,7 @@ SWIGEXPORT(void) initwxc() {
 | 
			
		||||
	 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_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_BUTTONS_BOTTOM", PyInt_FromLong((long) wxED_BUTTONS_BOTTOM));
 | 
			
		||||
	 PyDict_SetItemString(d,"wxED_BUTTONS_RIGHT", PyInt_FromLong((long) wxED_BUTTONS_RIGHT));
 | 
			
		||||
 
 | 
			
		||||
@@ -245,6 +245,7 @@ wxFRAME_TOOL_WINDOW = wxc.wxFRAME_TOOL_WINDOW
 | 
			
		||||
wxFRAME_FLOAT_ON_PARENT = wxc.wxFRAME_FLOAT_ON_PARENT
 | 
			
		||||
wxFRAME_NO_WINDOW_MENU = wxc.wxFRAME_NO_WINDOW_MENU
 | 
			
		||||
wxFRAME_NO_TASKBAR = wxc.wxFRAME_NO_TASKBAR
 | 
			
		||||
wxFRAME_SHAPED = wxc.wxFRAME_SHAPED
 | 
			
		||||
wxED_CLIENT_MARGIN = wxc.wxED_CLIENT_MARGIN
 | 
			
		||||
wxED_BUTTONS_BOTTOM = wxc.wxED_BUTTONS_BOTTOM
 | 
			
		||||
wxED_BUTTONS_RIGHT = wxc.wxED_BUTTONS_RIGHT
 | 
			
		||||
@@ -1743,18 +1744,19 @@ class _wxPyDeadObject:
 | 
			
		||||
    def __nonzero__(self):
 | 
			
		||||
        return 0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#----------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
class wxNotebookPage(wxPanel):
 | 
			
		||||
    """
 | 
			
		||||
    There is an old (and apparently unsolvable) bug when placing a
 | 
			
		||||
    window with a nonstandard background colour in a wxNotebook, as
 | 
			
		||||
    the notbooks's background colour would always be used when the
 | 
			
		||||
    window is refreshed.  The solution is to place a panel in the
 | 
			
		||||
    notbook and the coloured window o nthe panel, sized to cover the
 | 
			
		||||
    panel.  This simple class does that for you, just put an instance
 | 
			
		||||
    of this in the notebook and make your regular window a child of
 | 
			
		||||
    this one and it will handle the resize for you.
 | 
			
		||||
    window with a nonstandard background colour in a wxNotebook on
 | 
			
		||||
    wxGTK, as the notbooks's background colour would always be used
 | 
			
		||||
    when the window is refreshed.  The solution is to place a panel in
 | 
			
		||||
    the notbook and the coloured window on the panel, sized to cover
 | 
			
		||||
    the panel.  This simple class does that for you, just put an
 | 
			
		||||
    instance of this in the notebook and make your regular window a
 | 
			
		||||
    child of this one and it will handle the resize for you.
 | 
			
		||||
    """
 | 
			
		||||
    def __init__(self, parent, id=-1,
 | 
			
		||||
                 pos=wxDefaultPosition, size=wxDefaultSize,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user