SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -12030,7 +12030,6 @@ SWIGEXPORT(void) initstc_c() {
 | 
			
		||||
	 PyDict_SetItemString(d,"wxSTC_SCRIPTOL_COMMENTDOCKEYWORD", PyInt_FromLong((long) 17));
 | 
			
		||||
	 PyDict_SetItemString(d,"wxSTC_SCRIPTOL_COMMENTDOCKEYWORDERROR", PyInt_FromLong((long) 18));
 | 
			
		||||
	 PyDict_SetItemString(d,"wxSTC_SCRIPTOL_COMMENTBASIC", PyInt_FromLong((long) 19));
 | 
			
		||||
	 PyDict_SetItemString(d,"wxSTCNameStr", PyString_FromString("wxSTCNameStr"));
 | 
			
		||||
	 PyDict_SetItemString(d,"STC_USE_DND", PyInt_FromLong((long) 1));
 | 
			
		||||
	 PyDict_SetItemString(d,"wxEVT_STC_CHANGE", PyInt_FromLong((long) wxEVT_STC_CHANGE));
 | 
			
		||||
	 PyDict_SetItemString(d,"wxEVT_STC_STYLENEEDED", PyInt_FromLong((long) wxEVT_STC_STYLENEEDED));
 | 
			
		||||
 
 | 
			
		||||
@@ -1785,7 +1785,6 @@ wxSTC_SCRIPTOL_WORD2 = stc_c.wxSTC_SCRIPTOL_WORD2
 | 
			
		||||
wxSTC_SCRIPTOL_COMMENTDOCKEYWORD = stc_c.wxSTC_SCRIPTOL_COMMENTDOCKEYWORD
 | 
			
		||||
wxSTC_SCRIPTOL_COMMENTDOCKEYWORDERROR = stc_c.wxSTC_SCRIPTOL_COMMENTDOCKEYWORDERROR
 | 
			
		||||
wxSTC_SCRIPTOL_COMMENTBASIC = stc_c.wxSTC_SCRIPTOL_COMMENTBASIC
 | 
			
		||||
wxSTCNameStr = stc_c.wxSTCNameStr
 | 
			
		||||
STC_USE_DND = stc_c.STC_USE_DND
 | 
			
		||||
wxEVT_STC_CHANGE = stc_c.wxEVT_STC_CHANGE
 | 
			
		||||
wxEVT_STC_STYLENEEDED = stc_c.wxEVT_STC_STYLENEEDED
 | 
			
		||||
 
 | 
			
		||||
@@ -661,6 +661,14 @@ class wxListCtrlPtr(wxControlPtr):
 | 
			
		||||
        '''get the currently focused item or -1 if none'''
 | 
			
		||||
        return self.GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_FOCUSED)
 | 
			
		||||
 | 
			
		||||
    def GetFirstSelected(self, item):
 | 
			
		||||
        '''return first selected item, or -1 when none'''
 | 
			
		||||
        return self.GetNextSelected(-1)
 | 
			
		||||
 | 
			
		||||
    def GetNextSelected(self, item):
 | 
			
		||||
        '''return subsequent selected items, or -1 when no more'''
 | 
			
		||||
        return self.GetNextItem(item, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED)
 | 
			
		||||
 | 
			
		||||
    def IsSelected(self, idx):
 | 
			
		||||
        '''return TRUE if the item is selected'''
 | 
			
		||||
        return self.GetItemState(idx, wxLIST_STATE_SELECTED) != 0
 | 
			
		||||
 
 | 
			
		||||
@@ -999,35 +999,6 @@ static PyObject *_wrap_wxFrame_GetMenuBar(PyObject *self, PyObject *args, PyObje
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define wxFrame_Command(_swigobj,_swigarg0)  (_swigobj->Command(_swigarg0))
 | 
			
		||||
static PyObject *_wrap_wxFrame_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    bool  _result;
 | 
			
		||||
    wxFrame * _arg0;
 | 
			
		||||
    int  _arg1;
 | 
			
		||||
    PyObject * _argo0 = 0;
 | 
			
		||||
    char *_kwnames[] = { "self","id", NULL };
 | 
			
		||||
 | 
			
		||||
    self = self;
 | 
			
		||||
    if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_Command",_kwnames,&_argo0,&_arg1)) 
 | 
			
		||||
        return NULL;
 | 
			
		||||
    if (_argo0) {
 | 
			
		||||
        if (_argo0 == Py_None) { _arg0 = NULL; }
 | 
			
		||||
        else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
 | 
			
		||||
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Command. Expected _wxFrame_p.");
 | 
			
		||||
        return NULL;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
{
 | 
			
		||||
    PyThreadState* __tstate = wxPyBeginAllowThreads();
 | 
			
		||||
    _result = (bool )wxFrame_Command(_arg0,_arg1);
 | 
			
		||||
 | 
			
		||||
    wxPyEndAllowThreads(__tstate);
 | 
			
		||||
    if (PyErr_Occurred()) return NULL;
 | 
			
		||||
}    _resultobj = Py_BuildValue("i",_result);
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define wxFrame_ProcessCommand(_swigobj,_swigarg0)  (_swigobj->ProcessCommand(_swigarg0))
 | 
			
		||||
static PyObject *_wrap_wxFrame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
@@ -2663,7 +2634,6 @@ static PyMethodDef framescMethods[] = {
 | 
			
		||||
	 { "wxFrame_GetStatusBar", (PyCFunction) _wrap_wxFrame_GetStatusBar, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxFrame_CreateStatusBar", (PyCFunction) _wrap_wxFrame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxFrame_ProcessCommand", (PyCFunction) _wrap_wxFrame_ProcessCommand, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxFrame_Command", (PyCFunction) _wrap_wxFrame_Command, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxFrame_GetMenuBar", (PyCFunction) _wrap_wxFrame_GetMenuBar, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxFrame_SetMenuBar", (PyCFunction) _wrap_wxFrame_SetMenuBar, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxFrame_GetClientAreaOrigin", (PyCFunction) _wrap_wxFrame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
 
 | 
			
		||||
@@ -95,9 +95,6 @@ class wxFramePtr(wxTopLevelWindowPtr):
 | 
			
		||||
    def GetMenuBar(self, *_args, **_kwargs):
 | 
			
		||||
        val = apply(framesc.wxFrame_GetMenuBar,(self,) + _args, _kwargs)
 | 
			
		||||
        return val
 | 
			
		||||
    def Command(self, *_args, **_kwargs):
 | 
			
		||||
        val = apply(framesc.wxFrame_Command,(self,) + _args, _kwargs)
 | 
			
		||||
        return val
 | 
			
		||||
    def ProcessCommand(self, *_args, **_kwargs):
 | 
			
		||||
        val = apply(framesc.wxFrame_ProcessCommand,(self,) + _args, _kwargs)
 | 
			
		||||
        return val
 | 
			
		||||
@@ -145,6 +142,7 @@ class wxFramePtr(wxTopLevelWindowPtr):
 | 
			
		||||
        return val
 | 
			
		||||
    def __repr__(self):
 | 
			
		||||
        return "<C wxFrame instance at %s>" % (self.this,)
 | 
			
		||||
    Command = ProcessCommand
 | 
			
		||||
class wxFrame(wxFramePtr):
 | 
			
		||||
    def __init__(self,*_args,**_kwargs):
 | 
			
		||||
        self.this = apply(framesc.new_wxFrame,_args,_kwargs)
 | 
			
		||||
 
 | 
			
		||||
@@ -62,6 +62,7 @@ extern PyObject *SWIG_newvarlink(void);
 | 
			
		||||
#include <wx/fs_zip.h>
 | 
			
		||||
#include <wx/fs_inet.h>
 | 
			
		||||
#include <wx/wfstream.h>
 | 
			
		||||
#include <wx/filesys.h>
 | 
			
		||||
 | 
			
		||||
#include "printfw.h"
 | 
			
		||||
 | 
			
		||||
@@ -197,6 +198,51 @@ private:
 | 
			
		||||
        // and adds itself to the wxModules list and to the wxHtmlWinParser.
 | 
			
		||||
        new wxPyHtmlTagsModule(tagHandlerClass);
 | 
			
		||||
    }
 | 
			
		||||
 // here's the C++ version
 | 
			
		||||
class wxPyHtmlFilter : public wxHtmlFilter {
 | 
			
		||||
    DECLARE_ABSTRACT_CLASS(wxPyHtmlFilter);
 | 
			
		||||
public:
 | 
			
		||||
    wxPyHtmlFilter() : wxHtmlFilter() {}
 | 
			
		||||
 | 
			
		||||
    // returns TRUE if this filter is able to open&read given file
 | 
			
		||||
    virtual bool CanRead(const wxFSFile& file) const {
 | 
			
		||||
        bool rval = FALSE;
 | 
			
		||||
        bool found;
 | 
			
		||||
        wxPyBeginBlockThreads();
 | 
			
		||||
        if ((found = wxPyCBH_findCallback(m_myInst, "CanRead"))) {
 | 
			
		||||
            PyObject* obj = wxPyMake_wxObject((wxFSFile*)&file);  // cast away const
 | 
			
		||||
            rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", obj));
 | 
			
		||||
            Py_DECREF(obj);
 | 
			
		||||
        }
 | 
			
		||||
        wxPyEndBlockThreads();
 | 
			
		||||
        return rval;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    // Reads given file and returns HTML document.
 | 
			
		||||
    // Returns empty string if opening failed
 | 
			
		||||
    virtual wxString ReadFile(const wxFSFile& file) const {
 | 
			
		||||
        wxString rval;
 | 
			
		||||
        bool found;
 | 
			
		||||
        wxPyBeginBlockThreads();
 | 
			
		||||
        if ((found = wxPyCBH_findCallback(m_myInst, "ReadFile"))) {
 | 
			
		||||
            PyObject* obj = wxPyMake_wxObject((wxFSFile*)&file);  // cast away const
 | 
			
		||||
            PyObject* ro;
 | 
			
		||||
            ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(O)", obj));
 | 
			
		||||
            Py_DECREF(obj);
 | 
			
		||||
            if (ro) {
 | 
			
		||||
                rval = Py2wxString(ro);
 | 
			
		||||
                Py_DECREF(ro);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        wxPyEndBlockThreads();
 | 
			
		||||
        return rval;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    PYPRIVATE;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlFilter, wxHtmlFilter);
 | 
			
		||||
 | 
			
		||||
class wxPyHtmlWindow : public wxHtmlWindow {
 | 
			
		||||
    DECLARE_ABSTRACT_CLASS(wxPyHtmlWindow);
 | 
			
		||||
@@ -228,7 +274,6 @@ public:
 | 
			
		||||
    DEC_PYCALLBACK__STRING(OnSetTitle);
 | 
			
		||||
    DEC_PYCALLBACK__CELLINTINT(OnCellMouseHover);
 | 
			
		||||
    DEC_PYCALLBACK__CELLINTINTME(OnCellClicked);
 | 
			
		||||
//     DEC_PYCALLBACK_BOOL_STRING(OnOpeningURL);
 | 
			
		||||
    PYPRIVATE;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@@ -236,7 +281,6 @@ IMPLEMENT_ABSTRACT_CLASS( wxPyHtmlWindow, wxHtmlWindow );
 | 
			
		||||
IMP_PYCALLBACK__STRING(wxPyHtmlWindow, wxHtmlWindow, OnSetTitle);
 | 
			
		||||
IMP_PYCALLBACK__CELLINTINT(wxPyHtmlWindow, wxHtmlWindow, OnCellMouseHover);
 | 
			
		||||
IMP_PYCALLBACK__CELLINTINTME(wxPyHtmlWindow, wxHtmlWindow, OnCellClicked);
 | 
			
		||||
// IMP_PYCALLBACK_BOOL_STRING(wxPyHtmlWindow, wxHtmlWindow, OnOpeningURL);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void wxPyHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link) {
 | 
			
		||||
@@ -290,10 +334,6 @@ wxHtmlOpeningStatus wxPyHtmlWindow::OnOpeningURL(wxHtmlURLType type,
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    void wxHtmlWindow_AddFilter(wxHtmlFilter *filter) {
 | 
			
		||||
        wxHtmlWindow::AddFilter(filter);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    extern "C" SWIGEXPORT(void) inithtmlhelpc();
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
@@ -321,33 +361,6 @@ static PyObject *_wrap_wxHtmlWinParser_AddTagHandler(PyObject *self, PyObject *a
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static PyObject *_wrap_wxHtmlWindow_AddFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    wxHtmlFilter * _arg0;
 | 
			
		||||
    PyObject * _argo0 = 0;
 | 
			
		||||
    char *_kwnames[] = { "filter", NULL };
 | 
			
		||||
 | 
			
		||||
    self = self;
 | 
			
		||||
    if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_AddFilter",_kwnames,&_argo0)) 
 | 
			
		||||
        return NULL;
 | 
			
		||||
    if (_argo0) {
 | 
			
		||||
        if (_argo0 == Py_None) { _arg0 = NULL; }
 | 
			
		||||
        else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlFilter_p")) {
 | 
			
		||||
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_AddFilter. Expected _wxHtmlFilter_p.");
 | 
			
		||||
        return NULL;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
{
 | 
			
		||||
    PyThreadState* __tstate = wxPyBeginAllowThreads();
 | 
			
		||||
    wxHtmlWindow_AddFilter(_arg0);
 | 
			
		||||
 | 
			
		||||
    wxPyEndAllowThreads(__tstate);
 | 
			
		||||
    if (PyErr_Occurred()) return NULL;
 | 
			
		||||
}    Py_INCREF(Py_None);
 | 
			
		||||
    _resultobj = Py_None;
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void *SwigwxHtmlLinkInfoTowxObject(void *ptr) {
 | 
			
		||||
    wxHtmlLinkInfo *src;
 | 
			
		||||
    wxObject *dest;
 | 
			
		||||
@@ -4012,6 +4025,70 @@ static PyObject *_wrap_new_wxHtmlWidgetCell(PyObject *self, PyObject *args, PyOb
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define new_wxHtmlFilter() (new wxPyHtmlFilter())
 | 
			
		||||
static PyObject *_wrap_new_wxHtmlFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    wxPyHtmlFilter * _result;
 | 
			
		||||
    char *_kwnames[] = {  NULL };
 | 
			
		||||
    char _ptemp[128];
 | 
			
		||||
 | 
			
		||||
    self = self;
 | 
			
		||||
    if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxHtmlFilter",_kwnames)) 
 | 
			
		||||
        return NULL;
 | 
			
		||||
{
 | 
			
		||||
    PyThreadState* __tstate = wxPyBeginAllowThreads();
 | 
			
		||||
    _result = (wxPyHtmlFilter *)new_wxHtmlFilter();
 | 
			
		||||
 | 
			
		||||
    wxPyEndAllowThreads(__tstate);
 | 
			
		||||
    if (PyErr_Occurred()) return NULL;
 | 
			
		||||
}    if (_result) {
 | 
			
		||||
        SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyHtmlFilter_p");
 | 
			
		||||
        _resultobj = Py_BuildValue("s",_ptemp);
 | 
			
		||||
    } else {
 | 
			
		||||
        Py_INCREF(Py_None);
 | 
			
		||||
        _resultobj = Py_None;
 | 
			
		||||
    }
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define wxHtmlFilter__setCallbackInfo(_swigobj,_swigarg0,_swigarg1)  (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
 | 
			
		||||
static PyObject *_wrap_wxHtmlFilter__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    wxPyHtmlFilter * _arg0;
 | 
			
		||||
    PyObject * _arg1;
 | 
			
		||||
    PyObject * _arg2;
 | 
			
		||||
    PyObject * _argo0 = 0;
 | 
			
		||||
    PyObject * _obj1 = 0;
 | 
			
		||||
    PyObject * _obj2 = 0;
 | 
			
		||||
    char *_kwnames[] = { "self","self","_class", NULL };
 | 
			
		||||
 | 
			
		||||
    self = self;
 | 
			
		||||
    if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxHtmlFilter__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) 
 | 
			
		||||
        return NULL;
 | 
			
		||||
    if (_argo0) {
 | 
			
		||||
        if (_argo0 == Py_None) { _arg0 = NULL; }
 | 
			
		||||
        else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlFilter_p")) {
 | 
			
		||||
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlFilter__setCallbackInfo. Expected _wxPyHtmlFilter_p.");
 | 
			
		||||
        return NULL;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
{
 | 
			
		||||
  _arg1 = _obj1;
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
  _arg2 = _obj2;
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
    PyThreadState* __tstate = wxPyBeginAllowThreads();
 | 
			
		||||
    wxHtmlFilter__setCallbackInfo(_arg0,_arg1,_arg2);
 | 
			
		||||
 | 
			
		||||
    wxPyEndAllowThreads(__tstate);
 | 
			
		||||
    if (PyErr_Occurred()) return NULL;
 | 
			
		||||
}    Py_INCREF(Py_None);
 | 
			
		||||
    _resultobj = Py_None;
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void *SwigwxPyHtmlWindowTowxScrolledWindow(void *ptr) {
 | 
			
		||||
    wxPyHtmlWindow *src;
 | 
			
		||||
    wxScrolledWindow *dest;
 | 
			
		||||
@@ -5100,6 +5177,33 @@ static PyObject *_wrap_wxHtmlWindow_HasAnchor(PyObject *self, PyObject *args, Py
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static PyObject *_wrap_wxHtmlWindow_AddFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    wxPyHtmlFilter * _arg0;
 | 
			
		||||
    PyObject * _argo0 = 0;
 | 
			
		||||
    char *_kwnames[] = { "filter", NULL };
 | 
			
		||||
 | 
			
		||||
    self = self;
 | 
			
		||||
    if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_AddFilter",_kwnames,&_argo0)) 
 | 
			
		||||
        return NULL;
 | 
			
		||||
    if (_argo0) {
 | 
			
		||||
        if (_argo0 == Py_None) { _arg0 = NULL; }
 | 
			
		||||
        else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlFilter_p")) {
 | 
			
		||||
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_AddFilter. Expected _wxPyHtmlFilter_p.");
 | 
			
		||||
        return NULL;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
{
 | 
			
		||||
    PyThreadState* __tstate = wxPyBeginAllowThreads();
 | 
			
		||||
    wxPyHtmlWindow::AddFilter(_arg0);
 | 
			
		||||
 | 
			
		||||
    wxPyEndAllowThreads(__tstate);
 | 
			
		||||
    if (PyErr_Occurred()) return NULL;
 | 
			
		||||
}    Py_INCREF(Py_None);
 | 
			
		||||
    _resultobj = Py_None;
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define wxHtmlWindow_base_OnLinkClicked(_swigobj,_swigarg0)  (_swigobj->base_OnLinkClicked(_swigarg0))
 | 
			
		||||
static PyObject *_wrap_wxHtmlWindow_base_OnLinkClicked(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
@@ -6266,6 +6370,7 @@ static PyMethodDef htmlcMethods[] = {
 | 
			
		||||
	 { "wxHtmlWindow_base_OnCellMouseHover", (PyCFunction) _wrap_wxHtmlWindow_base_OnCellMouseHover, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxHtmlWindow_base_OnSetTitle", (PyCFunction) _wrap_wxHtmlWindow_base_OnSetTitle, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxHtmlWindow_base_OnLinkClicked", (PyCFunction) _wrap_wxHtmlWindow_base_OnLinkClicked, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxHtmlWindow_AddFilter", (PyCFunction) _wrap_wxHtmlWindow_AddFilter, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxHtmlWindow_HasAnchor", (PyCFunction) _wrap_wxHtmlWindow_HasAnchor, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxHtmlWindow_ScrollToAnchor", (PyCFunction) _wrap_wxHtmlWindow_ScrollToAnchor, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxHtmlWindow_GetParser", (PyCFunction) _wrap_wxHtmlWindow_GetParser, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
@@ -6293,6 +6398,8 @@ static PyMethodDef htmlcMethods[] = {
 | 
			
		||||
	 { "wxHtmlWindow_Create", (PyCFunction) _wrap_wxHtmlWindow_Create, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "new_wxPreHtmlWindow", (PyCFunction) _wrap_new_wxPreHtmlWindow, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "new_wxHtmlWindow", (PyCFunction) _wrap_new_wxHtmlWindow, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxHtmlFilter__setCallbackInfo", (PyCFunction) _wrap_wxHtmlFilter__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "new_wxHtmlFilter", (PyCFunction) _wrap_new_wxHtmlFilter, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "new_wxHtmlWidgetCell", (PyCFunction) _wrap_new_wxHtmlWidgetCell, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "new_wxHtmlFontCell", (PyCFunction) _wrap_new_wxHtmlFontCell, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "new_wxHtmlColourCell", (PyCFunction) _wrap_new_wxHtmlColourCell, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
@@ -6397,7 +6504,6 @@ static PyMethodDef htmlcMethods[] = {
 | 
			
		||||
	 { "wxHtmlLinkInfo_GetTarget", (PyCFunction) _wrap_wxHtmlLinkInfo_GetTarget, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxHtmlLinkInfo_GetHref", (PyCFunction) _wrap_wxHtmlLinkInfo_GetHref, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "new_wxHtmlLinkInfo", (PyCFunction) _wrap_new_wxHtmlLinkInfo, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxHtmlWindow_AddFilter", (PyCFunction) _wrap_wxHtmlWindow_AddFilter, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxHtmlWinParser_AddTagHandler", (PyCFunction) _wrap_wxHtmlWinParser_AddTagHandler, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { NULL, NULL }
 | 
			
		||||
};
 | 
			
		||||
@@ -6587,6 +6693,7 @@ SWIGEXPORT(void) inithtmlc() {
 | 
			
		||||
    wxPyPtrTypeMap_Add("wxHtmlTagHandler", "wxPyHtmlTagHandler");
 | 
			
		||||
    wxPyPtrTypeMap_Add("wxHtmlWinTagHandler", "wxPyHtmlWinTagHandler");
 | 
			
		||||
    wxPyPtrTypeMap_Add("wxHtmlWindow", "wxPyHtmlWindow");
 | 
			
		||||
    wxPyPtrTypeMap_Add("wxHtmlFilter", "wxPyHtmlFilter");
 | 
			
		||||
{
 | 
			
		||||
   int i;
 | 
			
		||||
   for (i = 0; _swig_mapping[i].n1; i++)
 | 
			
		||||
 
 | 
			
		||||
@@ -509,6 +509,24 @@ class wxHtmlWidgetCell(wxHtmlWidgetCellPtr):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class wxHtmlFilterPtr :
 | 
			
		||||
    def __init__(self,this):
 | 
			
		||||
        self.this = this
 | 
			
		||||
        self.thisown = 0
 | 
			
		||||
    def _setCallbackInfo(self, *_args, **_kwargs):
 | 
			
		||||
        val = apply(htmlc.wxHtmlFilter__setCallbackInfo,(self,) + _args, _kwargs)
 | 
			
		||||
        return val
 | 
			
		||||
    def __repr__(self):
 | 
			
		||||
        return "<C wxHtmlFilter instance at %s>" % (self.this,)
 | 
			
		||||
class wxHtmlFilter(wxHtmlFilterPtr):
 | 
			
		||||
    def __init__(self,*_args,**_kwargs):
 | 
			
		||||
        self.this = apply(htmlc.new_wxHtmlFilter,_args,_kwargs)
 | 
			
		||||
        self.thisown = 1
 | 
			
		||||
        self._setCallbackInfo(self, wxHtmlFilter)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class wxHtmlWindowPtr(wxScrolledWindowPtr):
 | 
			
		||||
    def __init__(self,this):
 | 
			
		||||
        self.this = this
 | 
			
		||||
@@ -789,4 +807,5 @@ wx.wxHtmlContainerCellPtr   = wxHtmlContainerCellPtr
 | 
			
		||||
wx.wxHtmlWidgetCellPtr      = wxHtmlWidgetCellPtr
 | 
			
		||||
wx.wxHtmlWindowPtr          = wxHtmlWindowPtr
 | 
			
		||||
wx.wxHtmlLinkInfoPtr        = wxHtmlLinkInfoPtr
 | 
			
		||||
wx.wxHtmlFilterPtr          = wxHtmlFilterPtr
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -8068,19 +8068,43 @@ static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwa
 | 
			
		||||
static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    wxFileTypeInfo * _result;
 | 
			
		||||
    char * _arg0;
 | 
			
		||||
    char * _arg1;
 | 
			
		||||
    char * _arg2;
 | 
			
		||||
    char * _arg3;
 | 
			
		||||
    wxString * _arg0;
 | 
			
		||||
    wxString * _arg1;
 | 
			
		||||
    wxString * _arg2;
 | 
			
		||||
    wxString * _arg3;
 | 
			
		||||
    PyObject * _obj0 = 0;
 | 
			
		||||
    PyObject * _obj1 = 0;
 | 
			
		||||
    PyObject * _obj2 = 0;
 | 
			
		||||
    PyObject * _obj3 = 0;
 | 
			
		||||
    char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL };
 | 
			
		||||
    char _ptemp[128];
 | 
			
		||||
 | 
			
		||||
    self = self;
 | 
			
		||||
    if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) 
 | 
			
		||||
    if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:new_wxFileTypeInfo",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3)) 
 | 
			
		||||
        return NULL;
 | 
			
		||||
{
 | 
			
		||||
    _arg0 = wxString_in_helper(_obj0);
 | 
			
		||||
    if (_arg0 == NULL)
 | 
			
		||||
        return NULL;
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
    _arg1 = wxString_in_helper(_obj1);
 | 
			
		||||
    if (_arg1 == NULL)
 | 
			
		||||
        return NULL;
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
    _arg2 = wxString_in_helper(_obj2);
 | 
			
		||||
    if (_arg2 == NULL)
 | 
			
		||||
        return NULL;
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
    _arg3 = wxString_in_helper(_obj3);
 | 
			
		||||
    if (_arg3 == NULL)
 | 
			
		||||
        return NULL;
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
    PyThreadState* __tstate = wxPyBeginAllowThreads();
 | 
			
		||||
    _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3);
 | 
			
		||||
    _result = (wxFileTypeInfo *)new_wxFileTypeInfo(*_arg0,*_arg1,*_arg2,*_arg3);
 | 
			
		||||
 | 
			
		||||
    wxPyEndAllowThreads(__tstate);
 | 
			
		||||
    if (PyErr_Occurred()) return NULL;
 | 
			
		||||
@@ -8091,6 +8115,22 @@ static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObje
 | 
			
		||||
        Py_INCREF(Py_None);
 | 
			
		||||
        _resultobj = Py_None;
 | 
			
		||||
    }
 | 
			
		||||
{
 | 
			
		||||
    if (_obj0)
 | 
			
		||||
        delete _arg0;
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
    if (_obj1)
 | 
			
		||||
        delete _arg1;
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
    if (_obj2)
 | 
			
		||||
        delete _arg2;
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
    if (_obj3)
 | 
			
		||||
        delete _arg3;
 | 
			
		||||
}
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -231,11 +231,11 @@ class wxSizerPtr(wxObjectPtr):
 | 
			
		||||
 | 
			
		||||
    def Remove(self, *args, **kw):
 | 
			
		||||
        if type(args[0]) == type(1):
 | 
			
		||||
            apply(self.RemovePos, args, kw)
 | 
			
		||||
            return apply(self.RemovePos, args, kw)
 | 
			
		||||
        elif string.find(args[0].this, 'Sizer') != -1:
 | 
			
		||||
            apply(self.RemoveSizer, args, kw)
 | 
			
		||||
            return apply(self.RemoveSizer, args, kw)
 | 
			
		||||
        else:
 | 
			
		||||
            apply(self.RemoveWindow, args, kw)
 | 
			
		||||
            return apply(self.RemoveWindow, args, kw)
 | 
			
		||||
 | 
			
		||||
    def AddMany(self, widgets):
 | 
			
		||||
        for childinfo in widgets:
 | 
			
		||||
 
 | 
			
		||||
@@ -2346,6 +2346,26 @@ static PyObject *_wrap_wxDateTime_Now(PyObject *self, PyObject *args, PyObject *
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static PyObject *_wrap_wxDateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    wxDateTime * _result;
 | 
			
		||||
    char *_kwnames[] = {  NULL };
 | 
			
		||||
    char _ptemp[128];
 | 
			
		||||
 | 
			
		||||
    self = self;
 | 
			
		||||
    if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateTime_UNow",_kwnames)) 
 | 
			
		||||
        return NULL;
 | 
			
		||||
{
 | 
			
		||||
    PyThreadState* __tstate = wxPyBeginAllowThreads();
 | 
			
		||||
    _result = new wxDateTime (wxDateTime::UNow());
 | 
			
		||||
 | 
			
		||||
    wxPyEndAllowThreads(__tstate);
 | 
			
		||||
    if (PyErr_Occurred()) return NULL;
 | 
			
		||||
}    SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p");
 | 
			
		||||
    _resultobj = Py_BuildValue("s",_ptemp);
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static PyObject *_wrap_wxDateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    wxDateTime * _result;
 | 
			
		||||
@@ -7677,6 +7697,7 @@ static PyMethodDef utilscMethods[] = {
 | 
			
		||||
	 { "new_wxDateTimeFromTimeT", (PyCFunction) _wrap_new_wxDateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "new_wxDateTime", (PyCFunction) _wrap_new_wxDateTime, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxDateTime_Today", (PyCFunction) _wrap_wxDateTime_Today, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxDateTime_UNow", (PyCFunction) _wrap_wxDateTime_UNow, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxDateTime_Now", (PyCFunction) _wrap_wxDateTime_Now, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxDateTime_GetEndDST", (PyCFunction) _wrap_wxDateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxDateTime_GetBeginDST", (PyCFunction) _wrap_wxDateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
 
 | 
			
		||||
@@ -854,6 +854,11 @@ def wxDateTime_Now(*_args, **_kwargs):
 | 
			
		||||
    if val: val = wxDateTimePtr(val); val.thisown = 1
 | 
			
		||||
    return val
 | 
			
		||||
 | 
			
		||||
def wxDateTime_UNow(*_args, **_kwargs):
 | 
			
		||||
    val = apply(utilsc.wxDateTime_UNow,_args,_kwargs)
 | 
			
		||||
    if val: val = wxDateTimePtr(val); val.thisown = 1
 | 
			
		||||
    return val
 | 
			
		||||
 | 
			
		||||
def wxDateTime_Today(*_args, **_kwargs):
 | 
			
		||||
    val = apply(utilsc.wxDateTime_Today,_args,_kwargs)
 | 
			
		||||
    if val: val = wxDateTimePtr(val); val.thisown = 1
 | 
			
		||||
 
 | 
			
		||||
@@ -1022,6 +1022,44 @@ static PyObject *_wrap_delete_wxPyApp(PyObject *self, PyObject *args, PyObject *
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define wxPyApp__setCallbackInfo(_swigobj,_swigarg0,_swigarg1)  (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
 | 
			
		||||
static PyObject *_wrap_wxPyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    wxPyApp * _arg0;
 | 
			
		||||
    PyObject * _arg1;
 | 
			
		||||
    PyObject * _arg2;
 | 
			
		||||
    PyObject * _argo0 = 0;
 | 
			
		||||
    PyObject * _obj1 = 0;
 | 
			
		||||
    PyObject * _obj2 = 0;
 | 
			
		||||
    char *_kwnames[] = { "self","self","_class", NULL };
 | 
			
		||||
 | 
			
		||||
    self = self;
 | 
			
		||||
    if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyApp__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) 
 | 
			
		||||
        return NULL;
 | 
			
		||||
    if (_argo0) {
 | 
			
		||||
        if (_argo0 == Py_None) { _arg0 = NULL; }
 | 
			
		||||
        else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
 | 
			
		||||
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp__setCallbackInfo. Expected _wxPyApp_p.");
 | 
			
		||||
        return NULL;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
{
 | 
			
		||||
  _arg1 = _obj1;
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
  _arg2 = _obj2;
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
    PyThreadState* __tstate = wxPyBeginAllowThreads();
 | 
			
		||||
    wxPyApp__setCallbackInfo(_arg0,_arg1,_arg2);
 | 
			
		||||
 | 
			
		||||
    wxPyEndAllowThreads(__tstate);
 | 
			
		||||
    if (PyErr_Occurred()) return NULL;
 | 
			
		||||
}    Py_INCREF(Py_None);
 | 
			
		||||
    _resultobj = Py_None;
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define wxPyApp_GetAppName(_swigobj)  (_swigobj->GetAppName())
 | 
			
		||||
static PyObject *_wrap_wxPyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
@@ -1689,7 +1727,66 @@ static PyObject *_wrap_wxPyApp_SetUseBestVisual(PyObject *self, PyObject *args,
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define wxPyApp_GetAssertMode(_swigobj)  (_swigobj->GetAssertMode())
 | 
			
		||||
static PyObject *_wrap_wxPyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    int  _result;
 | 
			
		||||
    wxPyApp * _arg0;
 | 
			
		||||
    PyObject * _argo0 = 0;
 | 
			
		||||
    char *_kwnames[] = { "self", NULL };
 | 
			
		||||
 | 
			
		||||
    self = self;
 | 
			
		||||
    if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_GetAssertMode",_kwnames,&_argo0)) 
 | 
			
		||||
        return NULL;
 | 
			
		||||
    if (_argo0) {
 | 
			
		||||
        if (_argo0 == Py_None) { _arg0 = NULL; }
 | 
			
		||||
        else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
 | 
			
		||||
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_GetAssertMode. Expected _wxPyApp_p.");
 | 
			
		||||
        return NULL;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
{
 | 
			
		||||
    PyThreadState* __tstate = wxPyBeginAllowThreads();
 | 
			
		||||
    _result = (int )wxPyApp_GetAssertMode(_arg0);
 | 
			
		||||
 | 
			
		||||
    wxPyEndAllowThreads(__tstate);
 | 
			
		||||
    if (PyErr_Occurred()) return NULL;
 | 
			
		||||
}    _resultobj = Py_BuildValue("i",_result);
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define wxPyApp_SetAssertMode(_swigobj,_swigarg0)  (_swigobj->SetAssertMode(_swigarg0))
 | 
			
		||||
static PyObject *_wrap_wxPyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
 | 
			
		||||
    PyObject * _resultobj;
 | 
			
		||||
    wxPyApp * _arg0;
 | 
			
		||||
    int  _arg1;
 | 
			
		||||
    PyObject * _argo0 = 0;
 | 
			
		||||
    char *_kwnames[] = { "self","mode", NULL };
 | 
			
		||||
 | 
			
		||||
    self = self;
 | 
			
		||||
    if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyApp_SetAssertMode",_kwnames,&_argo0,&_arg1)) 
 | 
			
		||||
        return NULL;
 | 
			
		||||
    if (_argo0) {
 | 
			
		||||
        if (_argo0 == Py_None) { _arg0 = NULL; }
 | 
			
		||||
        else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
 | 
			
		||||
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_SetAssertMode. Expected _wxPyApp_p.");
 | 
			
		||||
        return NULL;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
{
 | 
			
		||||
    PyThreadState* __tstate = wxPyBeginAllowThreads();
 | 
			
		||||
    wxPyApp_SetAssertMode(_arg0,_arg1);
 | 
			
		||||
 | 
			
		||||
    wxPyEndAllowThreads(__tstate);
 | 
			
		||||
    if (PyErr_Occurred()) return NULL;
 | 
			
		||||
}    Py_INCREF(Py_None);
 | 
			
		||||
    _resultobj = Py_None;
 | 
			
		||||
    return _resultobj;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static PyMethodDef wxcMethods[] = {
 | 
			
		||||
	 { "wxPyApp_SetAssertMode", (PyCFunction) _wrap_wxPyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxPyApp_GetAssertMode", (PyCFunction) _wrap_wxPyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxPyApp_SetUseBestVisual", (PyCFunction) _wrap_wxPyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxPyApp_SetVendorName", (PyCFunction) _wrap_wxPyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxPyApp_SetTopWindow", (PyCFunction) _wrap_wxPyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
@@ -1711,6 +1808,7 @@ static PyMethodDef wxcMethods[] = {
 | 
			
		||||
	 { "wxPyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_wxPyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxPyApp_GetClassName", (PyCFunction) _wrap_wxPyApp_GetClassName, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxPyApp_GetAppName", (PyCFunction) _wrap_wxPyApp_GetAppName, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxPyApp__setCallbackInfo", (PyCFunction) _wrap_wxPyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "delete_wxPyApp", (PyCFunction) _wrap_delete_wxPyApp, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "new_wxPyApp", (PyCFunction) _wrap_new_wxPyApp, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
	 { "wxApp_CleanUp", (PyCFunction) _wrap_wxApp_CleanUp, METH_VARARGS | METH_KEYWORDS },
 | 
			
		||||
@@ -2611,6 +2709,9 @@ SWIGEXPORT(void) initwxc() {
 | 
			
		||||
	 PyDict_SetItemString(d,"cvar", SWIG_globals);
 | 
			
		||||
	 SWIG_addvarlink(SWIG_globals,"wxDefaultPosition",_wrap_wxDefaultPosition_get, _wrap_wxDefaultPosition_set);
 | 
			
		||||
	 SWIG_addvarlink(SWIG_globals,"wxDefaultSize",_wrap_wxDefaultSize_get, _wrap_wxDefaultSize_set);
 | 
			
		||||
	 PyDict_SetItemString(d,"wxPYAPP_ASSERT_SUPPRESS", PyInt_FromLong((long) wxPYAPP_ASSERT_SUPPRESS));
 | 
			
		||||
	 PyDict_SetItemString(d,"wxPYAPP_ASSERT_EXCEPTION", PyInt_FromLong((long) wxPYAPP_ASSERT_EXCEPTION));
 | 
			
		||||
	 PyDict_SetItemString(d,"wxPYAPP_ASSERT_DIALOG", PyInt_FromLong((long) wxPYAPP_ASSERT_DIALOG));
 | 
			
		||||
 | 
			
		||||
    // Make our API structure a CObject so other modules can import it
 | 
			
		||||
    // from this module.
 | 
			
		||||
@@ -2619,7 +2720,7 @@ SWIGEXPORT(void) initwxc() {
 | 
			
		||||
    Py_XDECREF(v);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    __wxPreStart();     // initialize the GUI toolkit, if needed.
 | 
			
		||||
    __wxPreStart(d);     // initialize the GUI toolkit, if needed.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        // Since these modules are all linked together, initialize them now
 | 
			
		||||
 
 | 
			
		||||
@@ -49,6 +49,9 @@ class wxPyAppPtr(wxEvtHandlerPtr):
 | 
			
		||||
    def __del__(self,wxc=wxc):
 | 
			
		||||
        if self.thisown == 1 :
 | 
			
		||||
            wxc.delete_wxPyApp(self)
 | 
			
		||||
    def _setCallbackInfo(self, *_args, **_kwargs):
 | 
			
		||||
        val = apply(wxc.wxPyApp__setCallbackInfo,(self,) + _args, _kwargs)
 | 
			
		||||
        return val
 | 
			
		||||
    def GetAppName(self, *_args, **_kwargs):
 | 
			
		||||
        val = apply(wxc.wxPyApp_GetAppName,(self,) + _args, _kwargs)
 | 
			
		||||
        return val
 | 
			
		||||
@@ -112,12 +115,20 @@ class wxPyAppPtr(wxEvtHandlerPtr):
 | 
			
		||||
    def SetUseBestVisual(self, *_args, **_kwargs):
 | 
			
		||||
        val = apply(wxc.wxPyApp_SetUseBestVisual,(self,) + _args, _kwargs)
 | 
			
		||||
        return val
 | 
			
		||||
    def GetAssertMode(self, *_args, **_kwargs):
 | 
			
		||||
        val = apply(wxc.wxPyApp_GetAssertMode,(self,) + _args, _kwargs)
 | 
			
		||||
        return val
 | 
			
		||||
    def SetAssertMode(self, *_args, **_kwargs):
 | 
			
		||||
        val = apply(wxc.wxPyApp_SetAssertMode,(self,) + _args, _kwargs)
 | 
			
		||||
        return val
 | 
			
		||||
    def __repr__(self):
 | 
			
		||||
        return "<C wxPyApp instance at %s>" % (self.this,)
 | 
			
		||||
class wxPyApp(wxPyAppPtr):
 | 
			
		||||
    def __init__(self,*_args,**_kwargs):
 | 
			
		||||
        self.this = apply(wxc.new_wxPyApp,_args,_kwargs)
 | 
			
		||||
        self.thisown = 1
 | 
			
		||||
        self._setCallbackInfo(self, wxPyApp)
 | 
			
		||||
        self._setOORInfo(self)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -920,6 +931,9 @@ __version__ = wxc.__version__
 | 
			
		||||
cvar = wxc.cvar
 | 
			
		||||
wxDefaultPosition = wxPointPtr(wxc.cvar.wxDefaultPosition)
 | 
			
		||||
wxDefaultSize = wxSizePtr(wxc.cvar.wxDefaultSize)
 | 
			
		||||
wxPYAPP_ASSERT_SUPPRESS = wxc.wxPYAPP_ASSERT_SUPPRESS
 | 
			
		||||
wxPYAPP_ASSERT_EXCEPTION = wxc.wxPYAPP_ASSERT_EXCEPTION
 | 
			
		||||
wxPYAPP_ASSERT_DIALOG = wxc.wxPYAPP_ASSERT_DIALOG
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#-------------- USER INCLUDE -----------------------
 | 
			
		||||
@@ -1524,6 +1538,9 @@ wxSystemSettings_GetSystemColour = wxSystemSettings_GetColour
 | 
			
		||||
wxSystemSettings_GetSystemFont   = wxSystemSettings_GetFont
 | 
			
		||||
wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
wxPyAssertionError = wxc.wxPyAssertionError
 | 
			
		||||
 | 
			
		||||
#----------------------------------------------------------------------
 | 
			
		||||
# wxGTK sets the locale when initialized.  Doing this at the Python
 | 
			
		||||
# level should set it up to match what GTK is doing at the C level.
 | 
			
		||||
@@ -1534,8 +1551,6 @@ if wxPlatform == "__WXGTK__":
 | 
			
		||||
    except:
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#----------------------------------------------------------------------
 | 
			
		||||
# wxWindows version numbers.  wxPython version is in __version__.
 | 
			
		||||
 | 
			
		||||
@@ -1701,6 +1716,7 @@ class wxApp(wxPyApp):
 | 
			
		||||
 | 
			
		||||
        if redirect:
 | 
			
		||||
            self.RedirectStdio(filename)
 | 
			
		||||
 | 
			
		||||
        # this initializes wxWindows and then calls our OnInit
 | 
			
		||||
        _wxStart(self.OnInit)
 | 
			
		||||
 | 
			
		||||
@@ -1727,7 +1743,7 @@ class wxApp(wxPyApp):
 | 
			
		||||
        if filename:
 | 
			
		||||
            sys.stdout = sys.stderr = open(filename, 'a')
 | 
			
		||||
        else:
 | 
			
		||||
            self.stdioWin = self.outputWindowClass() # wxPyOnDemandOutputWindow
 | 
			
		||||
            self.stdioWin = self.outputWindowClass()
 | 
			
		||||
            sys.stdout = sys.stderr = self.stdioWin
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user