/////////////////////////////////////////////////////////////////////////////
-%module activex
+%module(package="wx") activex
%{
#include "wx/wxPython/wxPython.h"
// Some conversion helpers
static wxVariant _PyObj2Variant(PyObject* value);
static bool _PyObj2Variant(PyObject* value, wxVariant& wv);
-static PyObject* _Variant2PyObj(wxVariant& value, bool useNone=False);
+static PyObject* _Variant2PyObj(wxVariant& value, bool useNone=false);
static wxString _VARTYPEname(VARTYPE vt);
// Check if an exception has been raised (blocking threads)
{
private:
CLSID m_CLSID;
+
+ DECLARE_ABSTRACT_CLASS(wxActiveXWindow);
+
public:
wxActiveXWindow( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
// conversion errors for now
wxVariant wv;
MSWVariantToVariant(rv, wv);
- rval = _Variant2PyObj(wv, True);
+ rval = _Variant2PyObj(wv, true);
VariantClear(&rv);
if (func.hasOut) {
const wxParamX &px = func.params[i];
if (px.IsOut()) {
MSWVariantToVariant(va, wv);
- PyObject* obj = _Variant2PyObj(wv, True);
+ PyObject* obj = _Variant2PyObj(wv, true);
PyList_Append(lst, obj);
}
}
return rval;
}
};
+
+IMPLEMENT_ABSTRACT_CLASS( wxActiveXWindow, wxWindow );
%}
Py_DECREF(pList);
for (int i=0; i<self->ParamCount(); i+=1) {
PyObject* name = PyString_FromString((char*)(const char*)self->ParamName(i).mb_str());
- PyObject* val = _Variant2PyObj((*self)[i], True);
+ PyObject* val = _Variant2PyObj((*self)[i], true);
PyObject_SetAttr(pyself, name, val);
PyList_Append(pList, name);
Py_DECREF(val);
private:
wxAutoOleInterface<IWebBrowser2> m_webBrowser;
+ DECLARE_ABSTRACT_CLASS(wxIEHtmlWindowBase);
+
public:
wxIEHtmlWindowBase ( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1,
// return ! m_bAmbientUserMode;
// };
};
+
+IMPLEMENT_ABSTRACT_CLASS( wxIEHtmlWindowBase, wxActiveXWindow );
+
%}
class wxIEHtmlWindowBase : public wxActiveXWindow {
public:
+ %pythonAppend wxIEHtmlWindowBase "self._setOORInfo(self)"
wxIEHtmlWindowBase ( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,