From: Robin Dunn
Date: Wed, 2 Jul 2003 23:13:10 +0000 (+0000)
Subject: wxPython Merge #2 of 2.4 branch --> HEAD (branch tag: wxPy_2_4_merge_2)
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1fded56b375bf7a4687af1cdb182899614c1b2a8
wxPython Merge #2 of 2.4 branch --> HEAD (branch tag: wxPy_2_4_merge_2)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
diff --git a/wxPython/.cvsignore b/wxPython/.cvsignore
index 38dfbf734e..6e3d362030 100644
--- a/wxPython/.cvsignore
+++ b/wxPython/.cvsignore
@@ -5,8 +5,10 @@ MANIFEST
_build_dmg
_build_rpm
build
+build-dbg
build-gtk
build-gtk2
+build-gtk2-dbg.unicode
build-gtk2.unicode
build-pkg
build-pkg-debug
diff --git a/wxPython/BUILD.win32.txt b/wxPython/BUILD.win32.txt
index f0cde57a6b..bbec92c2c7 100644
--- a/wxPython/BUILD.win32.txt
+++ b/wxPython/BUILD.win32.txt
@@ -119,6 +119,7 @@ C. Change to the %WXWIN%\include\wx\msw directory and copy setup0.h to
wxUSE_TREELAYOUT 0
wxUSE_MS_HTML_HELP 0
wxUSE_POSTSCRIPT 1
+ wxUSE_DYNLIB_CLASS 1
** NEW **
diff --git a/wxPython/CHANGES.txt b/wxPython/CHANGES.txt
index 1f94276ec2..5d81424b18 100644
--- a/wxPython/CHANGES.txt
+++ b/wxPython/CHANGES.txt
@@ -2,10 +2,85 @@ CHANGES.txt for wxPython
----------------------------------------------------------------------
-?????
+2.4.1.x
-------
-Added wxScrolledPanel from Wil Sadkin
+Use wxSTC in the demo for displaying the soucre code of the samples.
+
+
+
+
+
+2.4.1.2
+-------
+
+Added wxScrolledPanel from Will Sadkin
+
+Added SetShape method to top level windows (e.g. wxFrame.)
+
+Changed wxSWIG to not generate Python code using apply, (since it will
+be deprecated in the future) wxSWIG will use spam(*args, **kw) syntax
+instead. Also changed the generated __repr__ methods to be a bit more
+informative.
+
+Made the version number information more robust and uh, informative.
+Also added asserts to check that the major.minor versions of wxPython
+and wxWindows match.
+
+Added the new wx "renamer" package that will dynamically import from
+the wxPython package and rename wxFooBar --> FooBar. That means that
+people can do imports without "import *" and can use names like
+wx.Frame instead of wx.wxFrame. This is phase 1 of a full transition
+to the new namespace.
+
+Updated Scintilla to 1.52. I also changed it to use wxListCtrl
+instead of wxListBox for the AutoComplete window, added the ability to
+use custom bitmaps in the margin and in the AutoComplete windows, and
+worked out how to do proper clipping of child windows on wxGTK.
+
+Patrick O'Brien's PyCrust package has been renamed to Py and now
+includes several new tools. As part of the change the location of the
+pacakge has changed as well, it is now accessible as "from wxPython
+import py" (or "from wx import py" using the new namespace.) There
+are still some transition modules in the wxPython.lib.PyCrust package
+that will issue a warning and then import what is needed from the new
+package. These will be removed in a future release.
+
+Added __nonzero__ method to wxTreeItemId, wxBitmap, wxImage, wxFont,
+and most other classes that have an Ok or IsOK method. This allows
+code like "if obj: ..." to be the same as "if obj.IsOk(): ..."
+
+Toolbars on wxMac can now have controls on them.
+
+Added wxPython.lib.analogclock module based on samples that were
+passed back and forth on wxPython-users a while back.
+
+Added masked edit controls (wxPython.lib.maskededit) by Jeff Childers
+and Will Sadkin. Updated wxTimeCtrl to use MaskedEdit.
+
+When the __class__ of a dead object is replaced with _wxPyDeadObject
+the __del__ of the original class is now called first.
+
+Added wxTreeListCtrl. (Looks like a wxTreeCtrl embedded in a
+wxListCtrl, but actually is just giving multiple columns to a
+wxTreeCtrl.)
+
+Added wxFutureCall, a subclass of wxTimer that makes it easy to delay
+a call to any Python callable object.
+
+Added wxPy versions of wxPrintPreview, wxPreviewFrame, and
+wxPreviewControlBar so they can be derived from in Python and be able
+to override the C++ virtual methods.
+
+Simplified how the wxSizer methods are wrapped, changed the name of
+the "option" parameter to "proportion" to match the docs ("option" is
+still accepted for compatibility, but this will go away in a future
+release,) SetItemMinSize can now take a wxSize (or 2-tuple) parameter,
+and Spacers can be specified with a wxSize (or 2-tuple) parameter
+
+Added wxCursorFromBits.
+
+
@@ -411,6 +486,7 @@ Added wxTimeCtrl from Will Sadkin.
+
2.3.2.1
-------
Changed (again) how the Python global interpreter lock is handled as
diff --git a/wxPython/MANIFEST.in b/wxPython/MANIFEST.in
index 0dbd7d830c..d515a5580b 100644
--- a/wxPython/MANIFEST.in
+++ b/wxPython/MANIFEST.in
@@ -1,3 +1,5 @@
+# This is way out of date. (It's not activly used anymore...)
+
include *.txt
include my_distutils.py
## include my_install_data.py
diff --git a/wxPython/contrib/dllwidget/dllwidget_.py b/wxPython/contrib/dllwidget/dllwidget_.py
index f0e64379fc..39ace44c84 100644
--- a/wxPython/contrib/dllwidget/dllwidget_.py
+++ b/wxPython/contrib/dllwidget/dllwidget_.py
@@ -47,19 +47,19 @@ class wxDllWidgetPtr(wxPanelPtr):
self.this = this
self.thisown = 0
def Ok(self, *_args, **_kwargs):
- val = apply(dllwidget_c.wxDllWidget_Ok,(self,) + _args, _kwargs)
+ val = dllwidget_c.wxDllWidget_Ok(self, *_args, **_kwargs)
return val
def SendCommand(self, *_args, **_kwargs):
- val = apply(dllwidget_c.wxDllWidget_SendCommand,(self,) + _args, _kwargs)
+ val = dllwidget_c.wxDllWidget_SendCommand(self, *_args, **_kwargs)
return val
def GetWidgetWindow(self, *_args, **_kwargs):
- val = apply(dllwidget_c.wxDllWidget_GetWidgetWindow,(self,) + _args, _kwargs)
+ val = dllwidget_c.wxDllWidget_GetWidgetWindow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDllWidget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDllWidget(wxDllWidgetPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(dllwidget_c.new_wxDllWidget,_args,_kwargs)
+ self.this = dllwidget_c.new_wxDllWidget(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
diff --git a/wxPython/contrib/gizmos/gizmos.cpp b/wxPython/contrib/gizmos/gizmos.cpp
index 0abd1ec076..82418d6b0a 100644
--- a/wxPython/contrib/gizmos/gizmos.cpp
+++ b/wxPython/contrib/gizmos/gizmos.cpp
@@ -59,7 +59,12 @@ extern PyObject *SWIG_newvarlink(void);
#include
#include
#include
+
#include
+#include
+#include
+#include "treelistctrl.h"
+#include "pytree.h"
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
@@ -91,6 +96,8 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
// Put some wx default wxChar* values into wxStrings.
static const wxString wxPyDynamicSashNameStr(wxT("dynamicSashWindow"));
static const wxString wxPyEditableListBoxNameStr(wxT("editableListBox"));
+ static const wxString wxPyTreeListCtrlNameStr(wxT("treelistctrl"));
+ static const wxString wxPyEmptyString(wxT(""));
typedef wxTreeCtrl wxPyTreeCtrl;
@@ -123,6 +130,43 @@ public:
PYPRIVATE;
};
+ // C++ version of Python aware control
+class wxPyTreeListCtrl : public wxTreeListCtrl {
+ DECLARE_ABSTRACT_CLASS(wxPyTreeListCtrl);
+public:
+ wxPyTreeListCtrl() : wxTreeListCtrl() {}
+ wxPyTreeListCtrl(wxWindow *parent, wxWindowID id,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxValidator &validator,
+ const wxString& name) :
+ wxTreeListCtrl(parent, id, pos, size, style, validator, name) {}
+
+ int OnCompareItems(const wxTreeItemId& item1,
+ const wxTreeItemId& item2) {
+ int rval = 0;
+ bool found;
+ wxPyBeginBlockThreads();
+ if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
+ PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), 0);
+ PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), 0);
+ rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
+ Py_DECREF(o1);
+ Py_DECREF(o2);
+ }
+ wxPyEndBlockThreads();
+ if (! found)
+ rval = wxTreeListCtrl::OnCompareItems(item1, item2);
+ return rval;
+ }
+ PYPRIVATE;
+};
+
+IMPLEMENT_ABSTRACT_CLASS(wxPyTreeListCtrl, wxTreeListCtrl)
+
+
+ static const long longzero = 0;
#ifdef __cplusplus
extern "C" {
#endif
@@ -1904,7 +1948,4376 @@ static PyObject *_wrap_wxLEDNumberCtrl_SetValue(PyObject *self, PyObject *args,
return _resultobj;
}
+static void *SwigwxTreeListColumnInfoTowxObject(void *ptr) {
+ wxTreeListColumnInfo *src;
+ wxObject *dest;
+ src = (wxTreeListColumnInfo *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
+#define new_wxTreeListColumnInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxTreeListColumnInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
+static PyObject *_wrap_new_wxTreeListColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeListColumnInfo * _result;
+ wxString * _arg0 = (wxString *) &wxPyEmptyString;
+ int _arg1 = (int ) -1;
+ size_t _arg2 = (size_t ) 100;
+ wxTreeListColumnAlign _arg3 = (wxTreeListColumnAlign ) (wxTL_ALIGN_LEFT);
+ PyObject * _obj0 = 0;
+ char *_kwnames[] = { "text","image","width","alignment", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oiii:new_wxTreeListColumnInfo",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
+ return NULL;
+ if (_obj0)
+{
+ _arg0 = wxString_in_helper(_obj0);
+ if (_arg0 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxTreeListColumnInfo *)new_wxTreeListColumnInfo(*_arg0,_arg1,_arg2,_arg3);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeListColumnInfo_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+{
+ if (_obj0)
+ delete _arg0;
+}
+ return _resultobj;
+}
+
+#define wxTreeListColumnInfo_GetAlignment(_swigobj) (_swigobj->GetAlignment())
+static PyObject *_wrap_wxTreeListColumnInfo_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeListColumnAlign _result;
+ wxTreeListColumnInfo * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListColumnInfo_GetAlignment",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListColumnInfo_GetAlignment. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxTreeListColumnAlign )wxTreeListColumnInfo_GetAlignment(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListColumnInfo_GetText(_swigobj) (_swigobj->GetText())
+static PyObject *_wrap_wxTreeListColumnInfo_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxString * _result;
+ wxTreeListColumnInfo * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListColumnInfo_GetText",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListColumnInfo_GetText. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxString (wxTreeListColumnInfo_GetText(_arg0));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
+#else
+ _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
+}
+{
+ delete _result;
+}
+ return _resultobj;
+}
+
+#define wxTreeListColumnInfo_GetImage(_swigobj) (_swigobj->GetImage())
+static PyObject *_wrap_wxTreeListColumnInfo_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxTreeListColumnInfo * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListColumnInfo_GetImage",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListColumnInfo_GetImage. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxTreeListColumnInfo_GetImage(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListColumnInfo_GetSelectedImage(_swigobj) (_swigobj->GetSelectedImage())
+static PyObject *_wrap_wxTreeListColumnInfo_GetSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxTreeListColumnInfo * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListColumnInfo_GetSelectedImage",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListColumnInfo_GetSelectedImage. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxTreeListColumnInfo_GetSelectedImage(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListColumnInfo_GetWidth(_swigobj) (_swigobj->GetWidth())
+static PyObject *_wrap_wxTreeListColumnInfo_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ size_t _result;
+ wxTreeListColumnInfo * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListColumnInfo_GetWidth",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListColumnInfo_GetWidth. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (size_t )wxTreeListColumnInfo_GetWidth(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListColumnInfo_SetAlignment(_swigobj,_swigarg0) (_swigobj->SetAlignment(_swigarg0))
+static PyObject *_wrap_wxTreeListColumnInfo_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeListColumnInfo * _arg0;
+ wxTreeListColumnAlign _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","alignment", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListColumnInfo_SetAlignment",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListColumnInfo_SetAlignment. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListColumnInfo_SetAlignment(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListColumnInfo_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
+static PyObject *_wrap_wxTreeListColumnInfo_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeListColumnInfo * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","text", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListColumnInfo_SetText",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListColumnInfo_SetText. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListColumnInfo_SetText(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
+#define wxTreeListColumnInfo_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0))
+static PyObject *_wrap_wxTreeListColumnInfo_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeListColumnInfo * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","image", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListColumnInfo_SetImage",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListColumnInfo_SetImage. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListColumnInfo_SetImage(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListColumnInfo_SetSelectedImage(_swigobj,_swigarg0) (_swigobj->SetSelectedImage(_swigarg0))
+static PyObject *_wrap_wxTreeListColumnInfo_SetSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeListColumnInfo * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","image", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListColumnInfo_SetSelectedImage",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListColumnInfo_SetSelectedImage. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListColumnInfo_SetSelectedImage(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListColumnInfo_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
+static PyObject *_wrap_wxTreeListColumnInfo_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeListColumnInfo * _arg0;
+ size_t _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","with", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListColumnInfo_SetWidth",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListColumnInfo_SetWidth. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListColumnInfo_SetWidth(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+static void *SwigwxPyTreeListCtrlTowxControl(void *ptr) {
+ wxPyTreeListCtrl *src;
+ wxControl *dest;
+ src = (wxPyTreeListCtrl *) ptr;
+ dest = (wxControl *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxPyTreeListCtrlTowxWindow(void *ptr) {
+ wxPyTreeListCtrl *src;
+ wxWindow *dest;
+ src = (wxPyTreeListCtrl *) ptr;
+ dest = (wxWindow *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxPyTreeListCtrlTowxEvtHandler(void *ptr) {
+ wxPyTreeListCtrl *src;
+ wxEvtHandler *dest;
+ src = (wxPyTreeListCtrl *) ptr;
+ dest = (wxEvtHandler *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxPyTreeListCtrlTowxObject(void *ptr) {
+ wxPyTreeListCtrl *src;
+ wxObject *dest;
+ src = (wxPyTreeListCtrl *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
+#define new_wxTreeListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
+static PyObject *_wrap_new_wxTreeListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _result;
+ wxWindow * _arg0;
+ wxWindowID _arg1 = (wxWindowID ) -1;
+ wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
+ wxSize * _arg3 = (wxSize *) &wxDefaultSize;
+ long _arg4 = (long ) wxTR_DEFAULT_STYLE;
+ wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
+ wxString * _arg6 = (wxString *) &wxPyTreeListCtrlNameStr;
+ PyObject * _argo0 = 0;
+ wxPoint temp;
+ PyObject * _obj2 = 0;
+ wxSize temp0;
+ PyObject * _obj3 = 0;
+ PyObject * _argo5 = 0;
+ PyObject * _obj6 = 0;
+ char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxTreeListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6))
+ 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 new_wxTreeListCtrl. Expected _wxWindow_p.");
+ return NULL;
+ }
+ }
+ if (_obj2)
+{
+ _arg2 = &temp;
+ if (! wxPoint_helper(_obj2, &_arg2))
+ return NULL;
+}
+ if (_obj3)
+{
+ _arg3 = &temp0;
+ if (! wxSize_helper(_obj3, &_arg3))
+ return NULL;
+}
+ if (_argo5) {
+ if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeListCtrl. Expected _wxValidator_p.");
+ return NULL;
+ }
+ }
+ if (_obj6)
+{
+ _arg6 = wxString_in_helper(_obj6);
+ if (_arg6 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyTreeListCtrl *)new_wxTreeListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeListCtrl_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+{
+ if (_obj6)
+ delete _arg6;
+}
+ return _resultobj;
+}
+
+#define new_wxPreTreeListCtrl() (new wxPyTreeListCtrl())
+static PyObject *_wrap_new_wxPreTreeListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _result;
+ char *_kwnames[] = { NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeListCtrl",_kwnames))
+ return NULL;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyTreeListCtrl *)new_wxPreTreeListCtrl();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeListCtrl_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
+static PyObject *_wrap_wxTreeListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxPyTreeListCtrl * _arg0;
+ wxWindow * _arg1;
+ wxWindowID _arg2 = (wxWindowID ) -1;
+ wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
+ wxSize * _arg4 = (wxSize *) &wxDefaultSize;
+ long _arg5 = (long ) wxTR_DEFAULT_STYLE;
+ wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
+ wxString * _arg7 = (wxString *) &wxPyTreeListCtrlNameStr;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ wxPoint temp;
+ PyObject * _obj3 = 0;
+ wxSize temp0;
+ PyObject * _obj4 = 0;
+ PyObject * _argo6 = 0;
+ PyObject * _obj7 = 0;
+ char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxTreeListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_Create. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_Create. Expected _wxWindow_p.");
+ return NULL;
+ }
+ }
+ if (_obj3)
+{
+ _arg3 = &temp;
+ if (! wxPoint_helper(_obj3, &_arg3))
+ return NULL;
+}
+ if (_obj4)
+{
+ _arg4 = &temp0;
+ if (! wxSize_helper(_obj4, &_arg4))
+ return NULL;
+}
+ if (_argo6) {
+ if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeListCtrl_Create. Expected _wxValidator_p.");
+ return NULL;
+ }
+ }
+ if (_obj7)
+{
+ _arg7 = wxString_in_helper(_obj7);
+ if (_arg7 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxTreeListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+{
+ if (_obj7)
+ delete _arg7;
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _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:wxTreeListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl__setCallbackInfo. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = _obj1;
+}
+{
+ _arg2 = _obj2;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl__setCallbackInfo(_arg0,_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetCount(_swigobj) (_swigobj->GetCount())
+static PyObject *_wrap_wxTreeListCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ size_t _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetCount",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetCount. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (size_t )wxTreeListCtrl_GetCount(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetIndent(_swigobj) (_swigobj->GetIndent())
+static PyObject *_wrap_wxTreeListCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ unsigned int _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetIndent",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetIndent. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (unsigned int )wxTreeListCtrl_GetIndent(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ unsigned int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","indent", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListCtrl_SetIndent",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetIndent. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetIndent(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing())
+static PyObject *_wrap_wxTreeListCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ unsigned int _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetSpacing",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetSpacing. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (unsigned int )wxTreeListCtrl_GetSpacing(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ unsigned int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","spacing", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListCtrl_SetSpacing",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetSpacing. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetSpacing(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetLineSpacing(_swigobj) (_swigobj->GetLineSpacing())
+static PyObject *_wrap_wxTreeListCtrl_GetLineSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ unsigned int _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetLineSpacing",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetLineSpacing. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (unsigned int )wxTreeListCtrl_GetLineSpacing(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetLineSpacing(_swigobj,_swigarg0) (_swigobj->SetLineSpacing(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_SetLineSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ unsigned int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","spacing", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListCtrl_SetLineSpacing",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetLineSpacing. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetLineSpacing(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetImageList(_swigobj) (_swigobj->GetImageList())
+static PyObject *_wrap_wxTreeListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxImageList * _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetImageList",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetImageList. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxImageList *)wxTreeListCtrl_GetImageList(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+}{ _resultobj = wxPyMake_wxObject(_result); }
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList())
+static PyObject *_wrap_wxTreeListCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxImageList * _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetStateImageList",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetStateImageList. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxImageList *)wxTreeListCtrl_GetStateImageList(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+}{ _resultobj = wxPyMake_wxObject(_result); }
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetButtonsImageList(_swigobj) (_swigobj->GetButtonsImageList())
+static PyObject *_wrap_wxTreeListCtrl_GetButtonsImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxImageList * _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetButtonsImageList",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetButtonsImageList. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxImageList *)wxTreeListCtrl_GetButtonsImageList(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+}{ _resultobj = wxPyMake_wxObject(_result); }
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxImageList * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","imageList", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_SetImageList",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetImageList. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetImageList. Expected _wxImageList_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetImageList(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxImageList * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","imageList", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetStateImageList. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetStateImageList. Expected _wxImageList_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetStateImageList(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetButtonsImageList(_swigobj,_swigarg0) (_swigobj->SetButtonsImageList(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_SetButtonsImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxImageList * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","imageList", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_SetButtonsImageList",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetButtonsImageList. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetButtonsImageList. Expected _wxImageList_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetButtonsImageList(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxImageList * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","imageList", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_AssignImageList. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_AssignImageList. Expected _wxImageList_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_AssignImageList(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxImageList * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","imageList", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_AssignStateImageList. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_AssignStateImageList. Expected _wxImageList_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_AssignStateImageList(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_AssignButtonsImageList(_swigobj,_swigarg0) (_swigobj->AssignButtonsImageList(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_AssignButtonsImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxImageList * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","imageList", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_AssignButtonsImageList",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_AssignButtonsImageList. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_AssignButtonsImageList. Expected _wxImageList_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_AssignButtonsImageList(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_AddColumn(_swigobj,_swigarg0) (_swigobj->AddColumn(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_AddColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","text", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_AddColumn",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_AddColumn. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_AddColumn(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_AddColumnInfo(_swigobj,_swigarg0) (_swigobj->AddColumn(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_AddColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeListColumnInfo * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","col", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_AddColumnInfo",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_AddColumnInfo. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_AddColumnInfo. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_AddColumnInfo(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ wxString * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","before","text", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxTreeListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_InsertColumn. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_InsertColumn(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+{
+ if (_obj2)
+ delete _arg2;
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ wxTreeListColumnInfo * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo2 = 0;
+ char *_kwnames[] = { "self","before","col", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxTreeListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_InsertColumnInfo. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo2) {
+ if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeListCtrl_InsertColumnInfo. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_RemoveColumn(_swigobj,_swigarg0) (_swigobj->RemoveColumn(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_RemoveColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","column", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListCtrl_RemoveColumn",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_RemoveColumn. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_RemoveColumn(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount())
+static PyObject *_wrap_wxTreeListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ size_t _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetColumnCount",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetColumnCount. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (size_t )wxTreeListCtrl_GetColumnCount(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ size_t _arg2;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","column","width", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxTreeListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetColumnWidth. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetColumnWidth(_arg0,_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","column", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetColumnWidth. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxTreeListCtrl_GetColumnWidth(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetMainColumn(_swigobj,_swigarg0) (_swigobj->SetMainColumn(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_SetMainColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","column", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListCtrl_SetMainColumn",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetMainColumn. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetMainColumn(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetMainColumn(_swigobj) (_swigobj->GetMainColumn())
+static PyObject *_wrap_wxTreeListCtrl_GetMainColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ size_t _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetMainColumn",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetMainColumn. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (size_t )wxTreeListCtrl_GetMainColumn(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetColumnText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnText(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_SetColumnText(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ wxString * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","column","text", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxTreeListCtrl_SetColumnText",_kwnames,&_argo0,&_arg1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetColumnText. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetColumnText(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+{
+ if (_obj2)
+ delete _arg2;
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetColumnText(_swigobj,_swigarg0) (_swigobj->GetColumnText(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetColumnText(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxString * _result;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","column", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListCtrl_GetColumnText",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetColumnText. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxString (wxTreeListCtrl_GetColumnText(_arg0,_arg1));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
+#else
+ _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
+}
+{
+ delete _result;
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ wxTreeListColumnInfo * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo2 = 0;
+ char *_kwnames[] = { "self","column","info", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxTreeListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetColumn. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo2) {
+ if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeListColumnInfo_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeListCtrl_SetColumn. Expected _wxTreeListColumnInfo_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetColumn(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetColumn(_swigobj,_swigarg0) (_swigobj->GetColumn(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeListColumnInfo * _result;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","column", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListCtrl_GetColumn",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetColumn. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListColumnInfo & _result_ref = wxTreeListCtrl_GetColumn(_arg0,_arg1);
+ _result = (wxTreeListColumnInfo *) &_result_ref;
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeListColumnInfo_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetColumnAlignment(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnAlignment(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_SetColumnAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ wxTreeListColumnAlign _arg2;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","column","align", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxTreeListCtrl_SetColumnAlignment",_kwnames,&_argo0,&_arg1,&_arg2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetColumnAlignment. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetColumnAlignment(_arg0,_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetColumnAlignment(_swigobj,_swigarg0) (_swigobj->GetColumnAlignment(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetColumnAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeListColumnAlign _result;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","column", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListCtrl_GetColumnAlignment",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetColumnAlignment. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxTreeListColumnAlign )wxTreeListCtrl_GetColumnAlignment(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ int _arg2;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","column","image", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxTreeListCtrl_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetColumnImage. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetColumnImage(_arg0,_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetColumnImage(_swigobj,_swigarg0) (_swigobj->GetColumnImage(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxPyTreeListCtrl * _arg0;
+ size_t _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","column", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeListCtrl_GetColumnImage",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetColumnImage. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxTreeListCtrl_GetColumnImage(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+static wxString wxPyTreeListCtrl_GetItemText(wxPyTreeListCtrl *self,const wxTreeItemId & item,int column) {
+ if (column < 0) column = self->GetMainColumn();
+ return self->GetItemText(item, column);
+ }
+static PyObject *_wrap_wxTreeListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxString * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ int _arg2 = (int ) -1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item","column", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeListCtrl_GetItemText",_kwnames,&_argo0,&_argo1,&_arg2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetItemText. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetItemText. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxString (wxPyTreeListCtrl_GetItemText(_arg0,*_arg1,_arg2));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
+#else
+ _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
+}
+{
+ delete _result;
+}
+ return _resultobj;
+}
+
+static int wxPyTreeListCtrl_GetItemImage(wxPyTreeListCtrl *self,const wxTreeItemId & item,int column,wxTreeItemIcon which) {
+ if (column < 0) column = self->GetMainColumn();
+ return self->GetItemImage(item, column, which);
+ }
+static PyObject *_wrap_wxTreeListCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ int _arg2 = (int ) -1;
+ wxTreeItemIcon _arg3 = (wxTreeItemIcon ) wxTreeItemIcon_Normal;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item","column","which", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:wxTreeListCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetItemImage. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetItemImage. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPyTreeListCtrl_GetItemImage(_arg0,*_arg1,_arg2,_arg3);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+static void wxPyTreeListCtrl_SetItemText(wxPyTreeListCtrl *self,const wxTreeItemId & item,const wxString & text,int column) {
+ if (column < 0) column = self->GetMainColumn();
+ self->SetItemText(item, column, text);
+ }
+static PyObject *_wrap_wxTreeListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ wxString * _arg2;
+ int _arg3 = (int ) -1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","item","text","column", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxTreeListCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetItemText. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetItemText. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyTreeListCtrl_SetItemText(_arg0,*_arg1,*_arg2,_arg3);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+{
+ if (_obj2)
+ delete _arg2;
+}
+ return _resultobj;
+}
+
+static void wxPyTreeListCtrl_SetItemImage(wxPyTreeListCtrl *self,const wxTreeItemId & item,int image,int column,wxTreeItemIcon which) {
+ if (column < 0) column = self->GetMainColumn();
+ self->SetItemImage(item, column, image, which);
+ }
+static PyObject *_wrap_wxTreeListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ int _arg2;
+ int _arg3 = (int ) -1;
+ wxTreeItemIcon _arg4 = (wxTreeItemIcon ) wxTreeItemIcon_Normal;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item","image","column","which", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|ii:wxTreeListCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetItemImage. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetItemImage. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyTreeListCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3,_arg4);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+static wxPyTreeItemData * wxPyTreeListCtrl_GetItemData(wxPyTreeListCtrl *self,const wxTreeItemId & item) {
+ wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
+ if (data == NULL) {
+ data = new wxPyTreeItemData();
+ data->SetId(item); // set the id
+ self->SetItemData(item, data);
+ }
+ return data;
+ }
+static PyObject *_wrap_wxTreeListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeItemData * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetItemData",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetItemData. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetItemData. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyTreeItemData *)wxPyTreeListCtrl_GetItemData(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
+static void wxPyTreeListCtrl_SetItemData(wxPyTreeListCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) {
+ data->SetId(item); // set the id
+ self->SetItemData(item, data);
+ }
+static PyObject *_wrap_wxTreeListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ wxPyTreeItemData * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ PyObject * _argo2 = 0;
+ char *_kwnames[] = { "self","item","data", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeListCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetItemData. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetItemData. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+ if (_argo2) {
+ if (_argo2 == Py_None) { _arg2 = NULL; }
+ else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeListCtrl_SetItemData. Expected _wxPyTreeItemData_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyTreeListCtrl_SetItemData(_arg0,*_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+static PyObject * wxPyTreeListCtrl_GetPyData(wxPyTreeListCtrl *self,const wxTreeItemId & item) {
+ wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
+ if (data == NULL) {
+ data = new wxPyTreeItemData();
+ data->SetId(item); // set the id
+ self->SetItemData(item, data);
+ }
+ return data->GetData();
+ }
+static PyObject *_wrap_wxTreeListCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ PyObject * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetPyData",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetPyData. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetPyData. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (PyObject *)wxPyTreeListCtrl_GetPyData(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+}{
+ _resultobj = _result;
+}
+ return _resultobj;
+}
+
+static void wxPyTreeListCtrl_SetPyData(wxPyTreeListCtrl *self,const wxTreeItemId & item,PyObject * obj) {
+ wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
+ if (data == NULL) {
+ data = new wxPyTreeItemData(obj);
+ data->SetId(item); // set the id
+ self->SetItemData(item, data);
+ } else
+ data->SetData(obj);
+ }
+static PyObject *_wrap_wxTreeListCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","item","obj", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeListCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetPyData. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetPyData. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ _arg2 = _obj2;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyTreeListCtrl_SetPyData(_arg0,*_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ bool _arg2 = (bool ) TRUE;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ int tempbool2 = (int) TRUE;
+ char *_kwnames[] = { "self","item","has", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeListCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetItemHasChildren. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetItemHasChildren. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+ _arg2 = (bool ) tempbool2;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ bool _arg2 = (bool ) TRUE;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ int tempbool2 = (int) TRUE;
+ char *_kwnames[] = { "self","item","bold", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeListCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&tempbool2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetItemBold. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetItemBold. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+ _arg2 = (bool ) tempbool2;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetItemBold(_arg0,*_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","item","col", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeListCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetItemTextColour. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetItemTextColour. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","item","col", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeListCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetItemBackgroundColour. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ wxFont * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ PyObject * _argo2 = 0;
+ char *_kwnames[] = { "self","item","font", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeListCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetItemFont. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetItemFont. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+ if (_argo2) {
+ if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeListCtrl_SetItemFont. Expected _wxFont_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetItemFont(_arg0,*_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetItemBold(_swigobj,_swigarg0) (_swigobj->GetItemBold(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetItemBold",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetItemBold. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetItemBold. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxTreeListCtrl_GetItemBold(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxColour * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetItemTextColour",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetItemTextColour. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetItemTextColour. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxColour (wxTreeListCtrl_GetItemTextColour(_arg0,*_arg1));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxColour * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetItemBackgroundColour. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetItemBackgroundColour. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxColour (wxTreeListCtrl_GetItemBackgroundColour(_arg0,*_arg1));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetItemFont(_swigobj,_swigarg0) (_swigobj->GetItemFont(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxFont * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetItemFont",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetItemFont. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetItemFont. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxFont (wxTreeListCtrl_GetItemFont(_arg0,*_arg1));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_IsVisible",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_IsVisible. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_IsVisible. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxTreeListCtrl_IsVisible(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_ItemHasChildren. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_ItemHasChildren. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxTreeListCtrl_ItemHasChildren(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_IsExpanded",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_IsExpanded. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_IsExpanded. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxTreeListCtrl_IsExpanded(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_IsSelected",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_IsSelected. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_IsSelected. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxTreeListCtrl_IsSelected(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_IsBold",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_IsBold. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_IsBold. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxTreeListCtrl_IsBold(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ size_t _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ bool _arg2 = (bool ) TRUE;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ int tempbool2 = (int) TRUE;
+ char *_kwnames[] = { "self","item","recursively", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeListCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetChildrenCount. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetChildrenCount. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+ _arg2 = (bool ) tempbool2;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (size_t )wxTreeListCtrl_GetChildrenCount(_arg0,*_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem())
+static PyObject *_wrap_wxTreeListCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetRootItem",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetRootItem. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_GetRootItem(_arg0));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetSelection(_swigobj) (_swigobj->GetSelection())
+static PyObject *_wrap_wxTreeListCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetSelection",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetSelection. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_GetSelection(_arg0));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+static PyObject * wxPyTreeListCtrl_GetSelections(wxPyTreeListCtrl *self) {
+ wxPyBeginBlockThreads();
+ PyObject* rval = PyList_New(0);
+ wxArrayTreeItemIds array;
+ size_t num, x;
+ num = self->GetSelections(array);
+ for (x=0; x < num; x++) {
+ wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
+ PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), TRUE);
+ PyList_Append(rval, item);
+ }
+ wxPyEndBlockThreads();
+ return rval;
+ }
+static PyObject *_wrap_wxTreeListCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ PyObject * _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetSelections",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetSelections. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (PyObject *)wxPyTreeListCtrl_GetSelections(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+}{
+ _resultobj = _result;
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetItemParent",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetItemParent. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetItemParent. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_GetItemParent(_arg0,*_arg1));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ long * _arg2 = (long *) &longzero;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ long temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","item","INOUT", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxTreeListCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetFirstChild. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetFirstChild. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+ if (_obj2)
+{
+ temp = (long) PyInt_AsLong(_obj2);
+ _arg2 = &temp;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_GetFirstChild(_arg0,*_arg1,*_arg2));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg2));
+ _resultobj = t_output_helper(_resultobj, o);
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ long * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ long temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","item","INOUT", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeListCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetNextChild. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetNextChild. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ temp = (long) PyInt_AsLong(_obj2);
+ _arg2 = &temp;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_GetNextChild(_arg0,*_arg1,*_arg2));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg2));
+ _resultobj = t_output_helper(_resultobj, o);
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetLastChild",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetLastChild. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetLastChild. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_GetLastChild(_arg0,*_arg1));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetNextSibling. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetNextSibling. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_GetNextSibling(_arg0,*_arg1));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetPrevSibling. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetPrevSibling. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_GetPrevSibling(_arg0,*_arg1));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem())
+static PyObject *_wrap_wxTreeListCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetFirstVisibleItem",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetFirstVisibleItem. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_GetFirstVisibleItem(_arg0));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetNextVisible. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetNextVisible. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_GetNextVisible(_arg0,*_arg1));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetPrevVisible. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetPrevVisible. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_GetPrevVisible(_arg0,*_arg1));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetNext(_swigobj,_swigarg0) (_swigobj->GetNext(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetNext(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetNext",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetNext. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetNext. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_GetNext(_arg0,*_arg1));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
+static PyObject *_wrap_wxTreeListCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxString * _arg1;
+ int _arg2 = (int ) -1;
+ int _arg3 = (int ) -1;
+ wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ PyObject * _argo4 = 0;
+ char *_kwnames[] = { "self","text","image","selectedImage","data", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeListCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_AddRoot. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+ if (_argo4) {
+ if (_argo4 == Py_None) { _arg4 = NULL; }
+ else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeListCtrl_AddRoot. Expected _wxPyTreeItemData_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
+static PyObject *_wrap_wxTreeListCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ wxString * _arg2;
+ int _arg3 = (int ) -1;
+ int _arg4 = (int ) -1;
+ wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ PyObject * _obj2 = 0;
+ PyObject * _argo5 = 0;
+ char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeListCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_PrependItem. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_PrependItem. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
+ if (_argo5) {
+ if (_argo5 == Py_None) { _arg5 = NULL; }
+ else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeListCtrl_PrependItem. Expected _wxPyTreeItemData_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+{
+ if (_obj2)
+ delete _arg2;
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
+static PyObject *_wrap_wxTreeListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ wxTreeItemId * _arg2;
+ wxString * _arg3;
+ int _arg4 = (int ) -1;
+ int _arg5 = (int ) -1;
+ wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ PyObject * _argo2 = 0;
+ PyObject * _obj3 = 0;
+ PyObject * _argo6 = 0;
+ char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeListCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_InsertItem. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_InsertItem. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+ if (_argo2) {
+ if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeListCtrl_InsertItem. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ _arg3 = wxString_in_helper(_obj3);
+ if (_arg3 == NULL)
+ return NULL;
+}
+ if (_argo6) {
+ if (_argo6 == Py_None) { _arg6 = NULL; }
+ else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeListCtrl_InsertItem. Expected _wxPyTreeItemData_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+{
+ if (_obj3)
+ delete _arg3;
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
+static PyObject *_wrap_wxTreeListCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ size_t _arg2;
+ wxString * _arg3;
+ int _arg4 = (int ) -1;
+ int _arg5 = (int ) -1;
+ wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ PyObject * _obj3 = 0;
+ PyObject * _argo6 = 0;
+ char *_kwnames[] = { "self","parent","index","text","image","selectedImage","data", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeListCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_InsertItemBefore. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_InsertItemBefore. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ _arg3 = wxString_in_helper(_obj3);
+ if (_arg3 == NULL)
+ return NULL;
+}
+ if (_argo6) {
+ if (_argo6 == Py_None) { _arg6 = NULL; }
+ else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeListCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+{
+ if (_obj3)
+ delete _arg3;
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
+static PyObject *_wrap_wxTreeListCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ wxString * _arg2;
+ int _arg3 = (int ) -1;
+ int _arg4 = (int ) -1;
+ wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ PyObject * _obj2 = 0;
+ PyObject * _argo5 = 0;
+ char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeListCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_AppendItem. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_AppendItem. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
+ if (_argo5) {
+ if (_argo5 == Py_None) { _arg5 = NULL; }
+ else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeListCtrl_AppendItem. Expected _wxPyTreeItemData_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+{
+ if (_obj2)
+ delete _arg2;
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_Delete",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_Delete. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_Delete. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_Delete(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_DeleteChildren. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_DeleteChildren. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_DeleteChildren(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
+static PyObject *_wrap_wxTreeListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_DeleteAllItems",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_DeleteAllItems. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_DeleteAllItems(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_Expand",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_Expand. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_Expand. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_Expand(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_ExpandAll(_swigobj,_swigarg0) (_swigobj->ExpandAll(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_ExpandAll(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_ExpandAll",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_ExpandAll. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_ExpandAll. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_ExpandAll(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_Collapse",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_Collapse. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_Collapse. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_Collapse(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_CollapseAndReset. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_CollapseAndReset. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_CollapseAndReset(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_Toggle",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_Toggle. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_Toggle. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_Toggle(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_Unselect(_swigobj) (_swigobj->Unselect())
+static PyObject *_wrap_wxTreeListCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_Unselect",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_Unselect. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_Unselect(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll())
+static PyObject *_wrap_wxTreeListCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_UnselectAll",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_UnselectAll. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_UnselectAll(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SelectItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SelectItem(_swigarg0,_swigarg1,_swigarg2))
+static PyObject *_wrap_wxTreeListCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ bool _arg2 = (bool ) TRUE;
+ bool _arg3 = (bool ) FALSE;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ int tempbool2 = (int) TRUE;
+ int tempbool3 = (int) FALSE;
+ char *_kwnames[] = { "self","item","unselect_others","extended_select", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:wxTreeListCtrl_SelectItem",_kwnames,&_argo0,&_argo1,&tempbool2,&tempbool3))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SelectItem. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SelectItem. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+ _arg2 = (bool ) tempbool2;
+ _arg3 = (bool ) tempbool3;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SelectItem(_arg0,*_arg1,_arg2,_arg3);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_EnsureVisible. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_EnsureVisible. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_EnsureVisible(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_ScrollTo",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_ScrollTo. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_ScrollTo. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_ScrollTo(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->HitTest(_swigarg0,_swigarg1,_swigarg2))
+static PyObject *_wrap_wxTreeListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeItemId * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxPoint * _arg1;
+ int * _arg2;
+ int temp;
+ int * _arg3;
+ int temp0;
+ PyObject * _argo0 = 0;
+ wxPoint temp1;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","point", NULL };
+ char _ptemp[128];
+
+ self = self;
+{
+ _arg2 = &temp;
+}
+{
+ _arg3 = &temp0;
+}
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_HitTest",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_HitTest. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp1;
+ if (! wxPoint_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxTreeItemId (wxTreeListCtrl_HitTest(_arg0,*_arg1,*_arg2,*_arg3));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg2));
+ _resultobj = t_output_helper(_resultobj, o);
+}
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg3));
+ _resultobj = t_output_helper(_resultobj, o);
+}
+ return _resultobj;
+}
+
+static PyObject * wxPyTreeListCtrl_GetBoundingRect(wxPyTreeListCtrl *self,const wxTreeItemId & item,bool textOnly) {
+ wxRect rect;
+ if (self->GetBoundingRect(item, rect, textOnly)) {
+ wxPyBeginBlockThreads();
+ wxRect* r = new wxRect(rect);
+ PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), 1);
+ wxPyEndBlockThreads();
+ return val;
+ }
+ else {
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+ }
+static PyObject *_wrap_wxTreeListCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ PyObject * _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ bool _arg2 = (bool ) FALSE;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ int tempbool2 = (int) FALSE;
+ char *_kwnames[] = { "self","item","textOnly", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeListCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&tempbool2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetBoundingRect. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetBoundingRect. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+ _arg2 = (bool ) tempbool2;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (PyObject *)wxPyTreeListCtrl_GetBoundingRect(_arg0,*_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+}{
+ _resultobj = _result;
+}
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_EditLabel",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_EditLabel. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_EditLabel. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_EditLabel(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_Edit(_swigobj,_swigarg0) (_swigobj->Edit(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_Edit(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_Edit",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_Edit. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_Edit. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_Edit(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_SortChildren",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SortChildren. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SortChildren. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SortChildren(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0))
+static PyObject *_wrap_wxTreeListCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeListCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetItemSelectedImage. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxTreeListCtrl_GetItemSelectedImage(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxTreeListCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPyTreeListCtrl * _arg0;
+ wxTreeItemId * _arg1;
+ int _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item","image", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeListCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_SetItemSelectedImage. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeListCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeListCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetHeaderWindow(_swigobj) (_swigobj->GetHeaderWindow())
+static PyObject *_wrap_wxTreeListCtrl_GetHeaderWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxWindow * _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetHeaderWindow",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetHeaderWindow. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxWindow *)wxTreeListCtrl_GetHeaderWindow(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+}{ _resultobj = wxPyMake_wxObject(_result); }
+ return _resultobj;
+}
+
+#define wxTreeListCtrl_GetMainWindow(_swigobj) (_swigobj->GetMainWindow())
+static PyObject *_wrap_wxTreeListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxWindow * _result;
+ wxPyTreeListCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeListCtrl_GetMainWindow",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeListCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeListCtrl_GetMainWindow. Expected _wxPyTreeListCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxWindow *)wxTreeListCtrl_GetMainWindow(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+}{ _resultobj = wxPyMake_wxObject(_result); }
+ return _resultobj;
+}
+
static PyMethodDef gizmoscMethods[] = {
+ { "wxTreeListCtrl_GetMainWindow", (PyCFunction) _wrap_wxTreeListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetHeaderWindow", (PyCFunction) _wrap_wxTreeListCtrl_GetHeaderWindow, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeListCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeListCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SortChildren", (PyCFunction) _wrap_wxTreeListCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_Edit", (PyCFunction) _wrap_wxTreeListCtrl_Edit, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_EditLabel", (PyCFunction) _wrap_wxTreeListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeListCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_HitTest", (PyCFunction) _wrap_wxTreeListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeListCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SelectItem", (PyCFunction) _wrap_wxTreeListCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeListCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_Unselect", (PyCFunction) _wrap_wxTreeListCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_Toggle", (PyCFunction) _wrap_wxTreeListCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeListCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_Collapse", (PyCFunction) _wrap_wxTreeListCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_ExpandAll", (PyCFunction) _wrap_wxTreeListCtrl_ExpandAll, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_Expand", (PyCFunction) _wrap_wxTreeListCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeListCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_Delete", (PyCFunction) _wrap_wxTreeListCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_AppendItem", (PyCFunction) _wrap_wxTreeListCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeListCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_InsertItem", (PyCFunction) _wrap_wxTreeListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_PrependItem", (PyCFunction) _wrap_wxTreeListCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_AddRoot", (PyCFunction) _wrap_wxTreeListCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetNext", (PyCFunction) _wrap_wxTreeListCtrl_GetNext, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeListCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeListCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeListCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeListCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeListCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeListCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeListCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeListCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeListCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetSelections", (PyCFunction) _wrap_wxTreeListCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetSelection", (PyCFunction) _wrap_wxTreeListCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeListCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeListCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_IsBold", (PyCFunction) _wrap_wxTreeListCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_IsSelected", (PyCFunction) _wrap_wxTreeListCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeListCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeListCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_IsVisible", (PyCFunction) _wrap_wxTreeListCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetItemFont", (PyCFunction) _wrap_wxTreeListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxTreeListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetItemTextColour", (PyCFunction) _wrap_wxTreeListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetItemBold", (PyCFunction) _wrap_wxTreeListCtrl_GetItemBold, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeListCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeListCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetPyData", (PyCFunction) _wrap_wxTreeListCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetPyData", (PyCFunction) _wrap_wxTreeListCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetItemData", (PyCFunction) _wrap_wxTreeListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetItemData", (PyCFunction) _wrap_wxTreeListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetItemText", (PyCFunction) _wrap_wxTreeListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeListCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetItemText", (PyCFunction) _wrap_wxTreeListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetColumnImage", (PyCFunction) _wrap_wxTreeListCtrl_GetColumnImage, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetColumnImage", (PyCFunction) _wrap_wxTreeListCtrl_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetColumnAlignment", (PyCFunction) _wrap_wxTreeListCtrl_GetColumnAlignment, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetColumnAlignment", (PyCFunction) _wrap_wxTreeListCtrl_SetColumnAlignment, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetColumn", (PyCFunction) _wrap_wxTreeListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetColumn", (PyCFunction) _wrap_wxTreeListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetColumnText", (PyCFunction) _wrap_wxTreeListCtrl_GetColumnText, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetColumnText", (PyCFunction) _wrap_wxTreeListCtrl_SetColumnText, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetMainColumn", (PyCFunction) _wrap_wxTreeListCtrl_GetMainColumn, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetMainColumn", (PyCFunction) _wrap_wxTreeListCtrl_SetMainColumn, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxTreeListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxTreeListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetColumnCount", (PyCFunction) _wrap_wxTreeListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_RemoveColumn", (PyCFunction) _wrap_wxTreeListCtrl_RemoveColumn, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxTreeListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_InsertColumn", (PyCFunction) _wrap_wxTreeListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_AddColumnInfo", (PyCFunction) _wrap_wxTreeListCtrl_AddColumnInfo, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_AddColumn", (PyCFunction) _wrap_wxTreeListCtrl_AddColumn, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_AssignButtonsImageList", (PyCFunction) _wrap_wxTreeListCtrl_AssignButtonsImageList, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeListCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetButtonsImageList", (PyCFunction) _wrap_wxTreeListCtrl_SetButtonsImageList, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeListCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetImageList", (PyCFunction) _wrap_wxTreeListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetButtonsImageList", (PyCFunction) _wrap_wxTreeListCtrl_GetButtonsImageList, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeListCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetImageList", (PyCFunction) _wrap_wxTreeListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetLineSpacing", (PyCFunction) _wrap_wxTreeListCtrl_SetLineSpacing, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetLineSpacing", (PyCFunction) _wrap_wxTreeListCtrl_GetLineSpacing, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeListCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeListCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_SetIndent", (PyCFunction) _wrap_wxTreeListCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetIndent", (PyCFunction) _wrap_wxTreeListCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_GetCount", (PyCFunction) _wrap_wxTreeListCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListCtrl_Create", (PyCFunction) _wrap_wxTreeListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxPreTreeListCtrl", (PyCFunction) _wrap_new_wxPreTreeListCtrl, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxTreeListCtrl", (PyCFunction) _wrap_new_wxTreeListCtrl, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListColumnInfo_SetWidth", (PyCFunction) _wrap_wxTreeListColumnInfo_SetWidth, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListColumnInfo_SetSelectedImage", (PyCFunction) _wrap_wxTreeListColumnInfo_SetSelectedImage, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListColumnInfo_SetImage", (PyCFunction) _wrap_wxTreeListColumnInfo_SetImage, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListColumnInfo_SetText", (PyCFunction) _wrap_wxTreeListColumnInfo_SetText, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListColumnInfo_SetAlignment", (PyCFunction) _wrap_wxTreeListColumnInfo_SetAlignment, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListColumnInfo_GetWidth", (PyCFunction) _wrap_wxTreeListColumnInfo_GetWidth, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListColumnInfo_GetSelectedImage", (PyCFunction) _wrap_wxTreeListColumnInfo_GetSelectedImage, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListColumnInfo_GetImage", (PyCFunction) _wrap_wxTreeListColumnInfo_GetImage, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListColumnInfo_GetText", (PyCFunction) _wrap_wxTreeListColumnInfo_GetText, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeListColumnInfo_GetAlignment", (PyCFunction) _wrap_wxTreeListColumnInfo_GetAlignment, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxTreeListColumnInfo", (PyCFunction) _wrap_new_wxTreeListColumnInfo, METH_VARARGS | METH_KEYWORDS },
{ "wxLEDNumberCtrl_SetValue", (PyCFunction) _wrap_wxLEDNumberCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
{ "wxLEDNumberCtrl_SetDrawFaded", (PyCFunction) _wrap_wxLEDNumberCtrl_SetDrawFaded, METH_VARARGS | METH_KEYWORDS },
{ "wxLEDNumberCtrl_SetAlignment", (PyCFunction) _wrap_wxLEDNumberCtrl_SetAlignment, METH_VARARGS | METH_KEYWORDS },
@@ -2009,6 +6422,8 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
{ "_unsigned_short","_WXTYPE",0},
{ "_unsigned_short","_short",0},
{ "_wxSplitterWindow","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxSplitterWindow},
+ { "_wxObject","_wxPyTreeListCtrl",SwigwxPyTreeListCtrlTowxObject},
+ { "_wxObject","_wxTreeListColumnInfo",SwigwxTreeListColumnInfoTowxObject},
{ "_wxObject","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxObject},
{ "_wxObject","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxObject},
{ "_wxObject","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxObject},
@@ -2022,6 +6437,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
{ "_signed_short","_short",0},
{ "_wxScrolledWindow","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxScrolledWindow},
{ "_unsigned_char","_byte",0},
+ { "_wxControl","_wxPyTreeListCtrl",SwigwxPyTreeListCtrlTowxControl},
{ "_wxControl","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxControl},
{ "_wxControl","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxControl},
{ "_unsigned_int","_wxCoord",0},
@@ -2072,6 +6488,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
{ "_wxCoord","_size_t",0},
{ "_wxCoord","_time_t",0},
{ "_wxCoord","_wxPrintQuality",0},
+ { "_wxEvtHandler","_wxPyTreeListCtrl",SwigwxPyTreeListCtrlTowxEvtHandler},
{ "_wxEvtHandler","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxEvtHandler},
{ "_wxEvtHandler","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxEvtHandler},
{ "_wxEvtHandler","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxEvtHandler},
@@ -2079,6 +6496,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
{ "_wxEvtHandler","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxEvtHandler},
{ "_wxEvtHandler","_wxEditableListBox",SwigwxEditableListBoxTowxEvtHandler},
{ "_wxEvtHandler","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxEvtHandler},
+ { "_wxWindow","_wxPyTreeListCtrl",SwigwxPyTreeListCtrlTowxWindow},
{ "_wxWindow","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxWindow},
{ "_wxWindow","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxWindow},
{ "_wxWindow","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxWindow},
@@ -2109,12 +6527,17 @@ SWIGEXPORT(void) initgizmosc() {
PyDict_SetItemString(d,"wxLED_ALIGN_CENTER", PyInt_FromLong((long) wxLED_ALIGN_CENTER));
PyDict_SetItemString(d,"wxLED_ALIGN_MASK", PyInt_FromLong((long) wxLED_ALIGN_MASK));
PyDict_SetItemString(d,"wxLED_DRAW_FADED", PyInt_FromLong((long) wxLED_DRAW_FADED));
+ PyDict_SetItemString(d,"wxTL_ALIGN_LEFT", PyInt_FromLong((long) wxTL_ALIGN_LEFT));
+ PyDict_SetItemString(d,"wxTL_ALIGN_RIGHT", PyInt_FromLong((long) wxTL_ALIGN_RIGHT));
+ PyDict_SetItemString(d,"wxTL_ALIGN_CENTER", PyInt_FromLong((long) wxTL_ALIGN_CENTER));
+ PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMCOLUMN", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMCOLUMN));
wxClassInfo::CleanUpClasses();
wxClassInfo::InitializeClasses();
wxPyPtrTypeMap_Add("wxTreeCompanionWindow", "wxPyTreeCompanionWindow");
+ wxPyPtrTypeMap_Add("wxTreeListCtrl", "wxPyTreeListCtrl");
{
int i;
for (i = 0; _swig_mapping[i].n1; i++)
diff --git a/wxPython/contrib/gizmos/gizmos.i b/wxPython/contrib/gizmos/gizmos.i
index 1af639a5b7..e677f65e8c 100644
--- a/wxPython/contrib/gizmos/gizmos.i
+++ b/wxPython/contrib/gizmos/gizmos.i
@@ -19,7 +19,12 @@
#include
#include
#include
+
#include
+#include
+#include
+#include "treelistctrl.h"
+#include "pytree.h"
%}
//---------------------------------------------------------------------------
@@ -32,6 +37,8 @@
%extern _defs.i
%extern events.i
%extern controls.i
+%extern controls2.i
+%extern gdi.i
//----------------------------------------------------------------------
@@ -40,6 +47,8 @@
// Put some wx default wxChar* values into wxStrings.
static const wxString wxPyDynamicSashNameStr(wxT("dynamicSashWindow"));
static const wxString wxPyEditableListBoxNameStr(wxT("editableListBox"));
+ static const wxString wxPyTreeListCtrlNameStr(wxT("treelistctrl"));
+ static const wxString wxPyEmptyString(wxT(""));
%}
///----------------------------------------------------------------------
@@ -390,6 +399,521 @@ public:
};
+
+
+//----------------------------------------------------------------------------
+// wxTreeListCtrl - the multicolumn tree control
+//----------------------------------------------------------------------------
+
+enum wxTreeListColumnAlign {
+ wxTL_ALIGN_LEFT,
+ wxTL_ALIGN_RIGHT,
+ wxTL_ALIGN_CENTER
+};
+
+
+
+enum {
+ wxTREE_HITTEST_ONITEMCOLUMN
+};
+
+
+
+
+class wxTreeListColumnInfo: public wxObject {
+public:
+ wxTreeListColumnInfo(const wxString& text = wxPyEmptyString,
+ int image = -1,
+ size_t width = 100,
+ wxTreeListColumnAlign alignment = wxTL_ALIGN_LEFT);
+
+ wxTreeListColumnAlign GetAlignment() const;
+ wxString GetText() const;
+ int GetImage() const;
+ int GetSelectedImage() const;
+ size_t GetWidth() const;
+
+ void SetAlignment(wxTreeListColumnAlign alignment);
+ void SetText(const wxString& text);
+ void SetImage(int image);
+ void SetSelectedImage(int image);
+ void SetWidth(size_t with);
+};
+
+
+
+
+%{ // C++ version of Python aware control
+class wxPyTreeListCtrl : public wxTreeListCtrl {
+ DECLARE_ABSTRACT_CLASS(wxPyTreeListCtrl);
+public:
+ wxPyTreeListCtrl() : wxTreeListCtrl() {}
+ wxPyTreeListCtrl(wxWindow *parent, wxWindowID id,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxValidator &validator,
+ const wxString& name) :
+ wxTreeListCtrl(parent, id, pos, size, style, validator, name) {}
+
+ int OnCompareItems(const wxTreeItemId& item1,
+ const wxTreeItemId& item2) {
+ int rval = 0;
+ bool found;
+ wxPyBeginBlockThreads();
+ if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
+ PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), 0);
+ PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), 0);
+ rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
+ Py_DECREF(o1);
+ Py_DECREF(o2);
+ }
+ wxPyEndBlockThreads();
+ if (! found)
+ rval = wxTreeListCtrl::OnCompareItems(item1, item2);
+ return rval;
+ }
+ PYPRIVATE;
+};
+
+IMPLEMENT_ABSTRACT_CLASS(wxPyTreeListCtrl, wxTreeListCtrl)
+
+%}
+
+
+
+
+// These are for the GetFirstChild/GetNextChild methods below
+%{
+ static const long longzero = 0;
+%}
+%typemap(python, in) long& INOUT = long* INOUT;
+%typemap(python, argout) long& INOUT = long* INOUT;
+
+
+%name(wxTreeListCtrl) class wxPyTreeListCtrl : public wxControl
+{
+public:
+ wxPyTreeListCtrl(wxWindow *parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTR_DEFAULT_STYLE,
+ const wxValidator &validator = wxDefaultValidator,
+ const wxString& name = wxPyTreeListCtrlNameStr );
+ %name(wxPreTreeListCtrl)wxPyTreeListCtrl();
+
+ bool Create(wxWindow *parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTR_DEFAULT_STYLE,
+ const wxValidator &validator = wxDefaultValidator,
+ const wxString& name = wxPyTreeListCtrlNameStr );
+
+ void _setCallbackInfo(PyObject* self, PyObject* _class);
+ %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxTreeListCtrl)"
+
+ %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreTreeListCtrl:val._setOORInfo(val)"
+
+
+
+ // get the total number of items in the control
+ size_t GetCount() const;
+
+ // indent is the number of pixels the children are indented relative to
+ // the parents position. SetIndent() also redraws the control
+ // immediately.
+ unsigned int GetIndent() const;
+ void SetIndent(unsigned int indent);
+
+ // spacing is the number of pixels between the start and the Text
+ unsigned int GetSpacing() const;
+ void SetSpacing(unsigned int spacing);
+
+ // line spacing is the space above and below the text on each line
+ unsigned int GetLineSpacing() const;
+ void SetLineSpacing(unsigned int spacing);
+
+ // image list: these functions allow to associate an image list with
+ // the control and retrieve it. Note that when assigned with
+ // SetImageList, the control does _not_ delete
+ // the associated image list when it's deleted in order to allow image
+ // lists to be shared between different controls. If you use
+ // AssignImageList, the control _does_ delete the image list.
+ //
+ // The normal image list is for the icons which correspond to the
+ // normal tree item state (whether it is selected or not).
+ // Additionally, the application might choose to show a state icon
+ // which corresponds to an app-defined item state (for example,
+ // checked/unchecked) which are taken from the state image list.
+ wxImageList *GetImageList() const;
+ wxImageList *GetStateImageList() const;
+ wxImageList *GetButtonsImageList() const;
+
+ void SetImageList(wxImageList *imageList);
+ void SetStateImageList(wxImageList *imageList);
+ void SetButtonsImageList(wxImageList *imageList);
+ void AssignImageList(wxImageList *imageList);
+ void AssignStateImageList(wxImageList *imageList);
+ void AssignButtonsImageList(wxImageList *imageList);
+
+
+
+ // adds a column
+ void AddColumn(const wxString& text);
+ %name(AddColumnInfo) void AddColumn(const wxTreeListColumnInfo& col);
+
+ // inserts a column before the given one
+ void InsertColumn(size_t before, const wxString& text);
+ %name(InsertColumnInfo) void InsertColumn(size_t before, const wxTreeListColumnInfo& col);
+
+ // deletes the given column - does not delete the corresponding column
+ // of each item
+ void RemoveColumn(size_t column);
+
+ // returns the number of columns in the ctrl
+ size_t GetColumnCount() const;
+
+ void SetColumnWidth(size_t column, size_t width);
+ int GetColumnWidth(size_t column) const;
+
+ // tells which column is the "main" one, i.e. the "threaded" one
+ void SetMainColumn(size_t column);
+ size_t GetMainColumn() const;
+
+ void SetColumnText(size_t column, const wxString& text);
+ wxString GetColumnText(size_t column) const;
+
+ void SetColumn(size_t column, const wxTreeListColumnInfo& info);
+ wxTreeListColumnInfo& GetColumn(size_t column);
+
+ // other column-related methods
+ void SetColumnAlignment(size_t column, wxTreeListColumnAlign align);
+ wxTreeListColumnAlign GetColumnAlignment(size_t column) const;
+
+ void SetColumnImage(size_t column, int image);
+ int GetColumnImage(size_t column) const;
+
+
+ %addmethods {
+ // retrieves item's label of the given column (main column by default)
+ wxString GetItemText(const wxTreeItemId& item, int column = -1) {
+ if (column < 0) column = self->GetMainColumn();
+ return self->GetItemText(item, column);
+ }
+
+ // get one of the images associated with the item (normal by default)
+ int GetItemImage(const wxTreeItemId& item, int column = -1,
+ wxTreeItemIcon which = wxTreeItemIcon_Normal) {
+ if (column < 0) column = self->GetMainColumn();
+ return self->GetItemImage(item, column, which);
+ }
+
+ // set item's label (main column by default)
+ void SetItemText(const wxTreeItemId& item, const wxString& text, int column = -1) {
+ if (column < 0) column = self->GetMainColumn();
+ self->SetItemText(item, column, text);
+ }
+
+ // set one of the images associated with the item (normal by default)
+ // the which parameter is ignored for all columns but the main one
+ void SetItemImage(const wxTreeItemId& item, int image, int column = -1,
+ wxTreeItemIcon which = wxTreeItemIcon_Normal) {
+ if (column < 0) column = self->GetMainColumn();
+ self->SetItemImage(item, column, image, which);
+ }
+
+
+ // [Get|Set]ItemData substitutes. Automatically create wxPyTreeItemData
+ // if needed.
+ wxPyTreeItemData* GetItemData(const wxTreeItemId& item) {
+ wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
+ if (data == NULL) {
+ data = new wxPyTreeItemData();
+ data->SetId(item); // set the id
+ self->SetItemData(item, data);
+ }
+ return data;
+ }
+
+ void SetItemData(const wxTreeItemId& item, wxPyTreeItemData* data) {
+ data->SetId(item); // set the id
+ self->SetItemData(item, data);
+ }
+
+ // [Get|Set]PyData are short-cuts. Also made somewhat crash-proof by
+ // automatically creating data classes.
+ PyObject* GetPyData(const wxTreeItemId& item) {
+ wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
+ if (data == NULL) {
+ data = new wxPyTreeItemData();
+ data->SetId(item); // set the id
+ self->SetItemData(item, data);
+ }
+ return data->GetData();
+ }
+
+ void SetPyData(const wxTreeItemId& item, PyObject* obj) {
+ wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
+ if (data == NULL) {
+ data = new wxPyTreeItemData(obj);
+ data->SetId(item); // set the id
+ self->SetItemData(item, data);
+ } else
+ data->SetData(obj);
+ }
+ }
+
+
+ // force appearance of [+] button near the item. This is useful to
+ // allow the user to expand the items which don't have any children now
+ // - but instead add them only when needed, thus minimizing memory
+ // usage and loading time.
+ void SetItemHasChildren(const wxTreeItemId& item, bool has = TRUE);
+
+ // the item will be shown in bold
+ void SetItemBold(const wxTreeItemId& item, bool bold = TRUE);
+
+ // set the item's text colour
+ void SetItemTextColour(const wxTreeItemId& item, const wxColour& col);
+
+ // set the item's background colour
+ void SetItemBackgroundColour(const wxTreeItemId& item,
+ const wxColour& col);
+
+ // set the item's font (should be of the same height for all items)
+ void SetItemFont(const wxTreeItemId& item, const wxFont& font);
+
+
+ bool GetItemBold(const wxTreeItemId& item) const;
+ wxColour GetItemTextColour(const wxTreeItemId& item) const;
+ wxColour GetItemBackgroundColour(const wxTreeItemId& item) const;
+ wxFont GetItemFont(const wxTreeItemId& item) const;
+
+ // is the item visible (it might be outside the view or not expanded)?
+ bool IsVisible(const wxTreeItemId& item) const;
+
+ // does the item has any children?
+ bool ItemHasChildren(const wxTreeItemId& item) const;
+
+ // is the item expanded (only makes sense if HasChildren())?
+ bool IsExpanded(const wxTreeItemId& item) const;
+
+ // is this item currently selected (the same as has focus)?
+ bool IsSelected(const wxTreeItemId& item) const;
+
+ // is item text in bold font?
+ bool IsBold(const wxTreeItemId& item) const;
+
+ // if 'recursively' is FALSE, only immediate children count, otherwise
+ // the returned number is the number of all items in this branch
+ size_t GetChildrenCount(const wxTreeItemId& item, bool recursively = TRUE);
+
+
+ // wxTreeItemId.IsOk() will return FALSE if there is no such item
+
+ // get the root tree item
+ wxTreeItemId GetRootItem() const;
+
+ // get the item currently selected (may return NULL if no selection)
+ wxTreeItemId GetSelection() const;
+
+ // get the items currently selected, return the number of such item
+ //size_t GetSelections(wxArrayTreeItemIds&) const;
+ %addmethods {
+ PyObject* GetSelections() {
+ wxPyBeginBlockThreads();
+ PyObject* rval = PyList_New(0);
+ wxArrayTreeItemIds array;
+ size_t num, x;
+ num = self->GetSelections(array);
+ for (x=0; x < num; x++) {
+ wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
+ PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), TRUE);
+ PyList_Append(rval, item);
+ }
+ wxPyEndBlockThreads();
+ return rval;
+ }
+ }
+
+
+ // get the parent of this item (may return NULL if root)
+ %name(GetItemParent)wxTreeItemId GetParent(const wxTreeItemId& item) const;
+
+ // for this enumeration function you must pass in a "cookie" parameter
+ // which is opaque for the application but is necessary for the library
+ // to make these functions reentrant (i.e. allow more than one
+ // enumeration on one and the same object simultaneously). Of course,
+ // the "cookie" passed to GetFirstChild() and GetNextChild() should be
+ // the same!
+
+ // get the first child of this item
+ wxTreeItemId GetFirstChild(const wxTreeItemId& item, long& INOUT = longzero) const;
+
+ // get the next child
+ wxTreeItemId GetNextChild(const wxTreeItemId& item, long& INOUT) const;
+
+ // get the last child of this item - this method doesn't use cookies
+ wxTreeItemId GetLastChild(const wxTreeItemId& item) const;
+
+ // get the next sibling of this item
+ wxTreeItemId GetNextSibling(const wxTreeItemId& item) const;
+
+ // get the previous sibling
+ wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const;
+
+ // get first visible item
+ wxTreeItemId GetFirstVisibleItem() const;
+
+ // get the next visible item: item must be visible itself!
+ // see IsVisible() and wxTreeCtrl::GetFirstVisibleItem()
+ wxTreeItemId GetNextVisible(const wxTreeItemId& item) const;
+
+ // get the previous visible item: item must be visible itself!
+ wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const;
+
+ // Only for internal use right now, but should probably be public
+ wxTreeItemId GetNext(const wxTreeItemId& item) const;
+
+
+ // add the root node to the tree
+ wxTreeItemId AddRoot(const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxPyTreeItemData *data = NULL);
+
+ // insert a new item in as the first child of the parent
+ wxTreeItemId PrependItem(const wxTreeItemId& parent,
+ const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxPyTreeItemData *data = NULL);
+
+ // insert a new item after a given one
+ wxTreeItemId InsertItem(const wxTreeItemId& parent,
+ const wxTreeItemId& idPrevious,
+ const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxPyTreeItemData *data = NULL);
+
+ // insert a new item before the one with the given index
+ %name(InsertItemBefore)
+ wxTreeItemId InsertItem(const wxTreeItemId& parent,
+ size_t index,
+ const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxPyTreeItemData *data = NULL);
+
+ // insert a new item in as the last child of the parent
+ wxTreeItemId AppendItem(const wxTreeItemId& parent,
+ const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxPyTreeItemData *data = NULL);
+
+ // delete this item and associated data if any
+ void Delete(const wxTreeItemId& item);
+
+ // delete all children (but don't delete the item itself)
+ // NB: this won't send wxEVT_COMMAND_TREE_ITEM_DELETED events
+ void DeleteChildren(const wxTreeItemId& item);
+
+ // delete all items from the tree
+ // NB: this won't send wxEVT_COMMAND_TREE_ITEM_DELETED events
+ void DeleteAllItems();
+
+ // expand this item
+ void Expand(const wxTreeItemId& item);
+
+ // expand this item and all subitems recursively
+ void ExpandAll(const wxTreeItemId& item);
+
+ // collapse the item without removing its children
+ void Collapse(const wxTreeItemId& item);
+
+ // collapse the item and remove all children
+ void CollapseAndReset(const wxTreeItemId& item);
+
+ // toggles the current state
+ void Toggle(const wxTreeItemId& item);
+
+ // remove the selection from currently selected item (if any)
+ void Unselect();
+ void UnselectAll();
+
+ // select this item
+ void SelectItem(const wxTreeItemId& item, bool unselect_others=TRUE,
+ bool extended_select=FALSE);
+
+ // make sure this item is visible (expanding the parent item and/or
+ // scrolling to this item if necessary)
+ void EnsureVisible(const wxTreeItemId& item);
+
+ // scroll to this item (but don't expand its parent)
+ void ScrollTo(const wxTreeItemId& item);
+
+ // Returns wxTreeItemId, flags, and column
+ wxTreeItemId HitTest(const wxPoint& point, int& OUTPUT, int& OUTPUT);
+
+ %addmethods {
+ // get the bounding rectangle of the item (or of its label only)
+ PyObject* GetBoundingRect(const wxTreeItemId& item, bool textOnly = FALSE) {
+ wxRect rect;
+ if (self->GetBoundingRect(item, rect, textOnly)) {
+ wxPyBeginBlockThreads();
+ wxRect* r = new wxRect(rect);
+ PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), 1);
+ wxPyEndBlockThreads();
+ return val;
+ }
+ else {
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+ }
+ }
+
+
+ // Start editing the item label: this (temporarily) replaces the item
+ // with a one line edit control. The item will be selected if it hadn't
+ // been before.
+ void EditLabel( const wxTreeItemId& item );
+ void Edit( const wxTreeItemId& item );
+
+ // sort the children of this item using OnCompareItems
+ void SortChildren(const wxTreeItemId& item);
+
+ // get the selected item image
+ int GetItemSelectedImage(const wxTreeItemId& item) const;
+
+ // set the selected item image
+ void SetItemSelectedImage(const wxTreeItemId& item, int image);
+
+
+ wxWindow* GetHeaderWindow() const;
+ wxWindow* GetMainWindow() const;
+
+%pragma(python) addtoclass = "
+ # Redefine some methods that SWIG gets a bit confused on...
+ def GetFirstChild(self, *_args, **_kwargs):
+ val1,val2 = gizmosc.wxTreeListCtrl_GetFirstChild(self, *_args, **_kwargs)
+ val1 = wxTreeItemIdPtr(val1)
+ val1.thisown = 1
+ return (val1,val2)
+ def GetNextChild(self, *_args, **_kwargs):
+ val1,val2 = gizmosc.wxTreeListCtrl_GetNextChild(self, *_args, **_kwargs)
+ val1 = wxTreeItemIdPtr(val1)
+ val1.thisown = 1
+ return (val1,val2)
+ def HitTest(self, *_args, **_kwargs):
+ val1, val2, val3 = gizmosc.wxTreeListCtrl_HitTest(self, *_args, **_kwargs)
+ val1 = wxTreeItemIdPtr(val1)
+ val1.thisown = 1
+ return (val1, val2, val3)
+"
+};
+
+
+
+
//----------------------------------------------------------------------
//----------------------------------------------------------------------
@@ -399,6 +923,7 @@ public:
wxClassInfo::InitializeClasses();
wxPyPtrTypeMap_Add("wxTreeCompanionWindow", "wxPyTreeCompanionWindow");
+ wxPyPtrTypeMap_Add("wxTreeListCtrl", "wxPyTreeListCtrl");
%}
diff --git a/wxPython/contrib/gizmos/gizmos.py b/wxPython/contrib/gizmos/gizmos.py
index dfb3f66d85..9ad14b4827 100644
--- a/wxPython/contrib/gizmos/gizmos.py
+++ b/wxPython/contrib/gizmos/gizmos.py
@@ -54,10 +54,10 @@ class wxDynamicSashSplitEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDynamicSashSplitEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDynamicSashSplitEvent(wxDynamicSashSplitEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gizmosc.new_wxDynamicSashSplitEvent,_args,_kwargs)
+ self.this = gizmosc.new_wxDynamicSashSplitEvent(*_args,**_kwargs)
self.thisown = 1
@@ -68,10 +68,10 @@ class wxDynamicSashUnifyEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDynamicSashUnifyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDynamicSashUnifyEvent(wxDynamicSashUnifyEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gizmosc.new_wxDynamicSashUnifyEvent,_args,_kwargs)
+ self.this = gizmosc.new_wxDynamicSashUnifyEvent(*_args,**_kwargs)
self.thisown = 1
@@ -82,28 +82,28 @@ class wxDynamicSashWindowPtr(wxWindowPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(gizmosc.wxDynamicSashWindow_Create,(self,) + _args, _kwargs)
+ val = gizmosc.wxDynamicSashWindow_Create(self, *_args, **_kwargs)
return val
def GetHScrollBar(self, *_args, **_kwargs):
- val = apply(gizmosc.wxDynamicSashWindow_GetHScrollBar,(self,) + _args, _kwargs)
+ val = gizmosc.wxDynamicSashWindow_GetHScrollBar(self, *_args, **_kwargs)
if val: val = wxScrollBarPtr(val)
return val
def GetVScrollBar(self, *_args, **_kwargs):
- val = apply(gizmosc.wxDynamicSashWindow_GetVScrollBar,(self,) + _args, _kwargs)
+ val = gizmosc.wxDynamicSashWindow_GetVScrollBar(self, *_args, **_kwargs)
if val: val = wxScrollBarPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDynamicSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDynamicSashWindow(wxDynamicSashWindowPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gizmosc.new_wxDynamicSashWindow,_args,_kwargs)
+ self.this = gizmosc.new_wxDynamicSashWindow(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreDynamicSashWindow(*_args,**_kwargs):
- val = wxDynamicSashWindowPtr(apply(gizmosc.new_wxPreDynamicSashWindow,_args,_kwargs))
+ val = wxDynamicSashWindowPtr(gizmosc.new_wxPreDynamicSashWindow(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -114,34 +114,34 @@ class wxEditableListBoxPtr(wxPanelPtr):
self.this = this
self.thisown = 0
def SetStrings(self, *_args, **_kwargs):
- val = apply(gizmosc.wxEditableListBox_SetStrings,(self,) + _args, _kwargs)
+ val = gizmosc.wxEditableListBox_SetStrings(self, *_args, **_kwargs)
return val
def GetStrings(self, *_args, **_kwargs):
- val = apply(gizmosc.wxEditableListBox_GetStrings,(self,) + _args, _kwargs)
+ val = gizmosc.wxEditableListBox_GetStrings(self, *_args, **_kwargs)
return val
def GetListCtrl(self, *_args, **_kwargs):
- val = apply(gizmosc.wxEditableListBox_GetListCtrl,(self,) + _args, _kwargs)
+ val = gizmosc.wxEditableListBox_GetListCtrl(self, *_args, **_kwargs)
return val
def GetDelButton(self, *_args, **_kwargs):
- val = apply(gizmosc.wxEditableListBox_GetDelButton,(self,) + _args, _kwargs)
+ val = gizmosc.wxEditableListBox_GetDelButton(self, *_args, **_kwargs)
return val
def GetNewButton(self, *_args, **_kwargs):
- val = apply(gizmosc.wxEditableListBox_GetNewButton,(self,) + _args, _kwargs)
+ val = gizmosc.wxEditableListBox_GetNewButton(self, *_args, **_kwargs)
return val
def GetUpButton(self, *_args, **_kwargs):
- val = apply(gizmosc.wxEditableListBox_GetUpButton,(self,) + _args, _kwargs)
+ val = gizmosc.wxEditableListBox_GetUpButton(self, *_args, **_kwargs)
return val
def GetDownButton(self, *_args, **_kwargs):
- val = apply(gizmosc.wxEditableListBox_GetDownButton,(self,) + _args, _kwargs)
+ val = gizmosc.wxEditableListBox_GetDownButton(self, *_args, **_kwargs)
return val
def GetEditButton(self, *_args, **_kwargs):
- val = apply(gizmosc.wxEditableListBox_GetEditButton,(self,) + _args, _kwargs)
+ val = gizmosc.wxEditableListBox_GetEditButton(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxEditableListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxEditableListBox(wxEditableListBoxPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gizmosc.new_wxEditableListBox,_args,_kwargs)
+ self.this = gizmosc.new_wxEditableListBox(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -153,29 +153,29 @@ class wxRemotelyScrolledTreeCtrlPtr(wxTreeCtrlPtr):
self.this = this
self.thisown = 0
def HideVScrollbar(self, *_args, **_kwargs):
- val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_HideVScrollbar,(self,) + _args, _kwargs)
+ val = gizmosc.wxRemotelyScrolledTreeCtrl_HideVScrollbar(self, *_args, **_kwargs)
return val
def AdjustRemoteScrollbars(self, *_args, **_kwargs):
- val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars,(self,) + _args, _kwargs)
+ val = gizmosc.wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(self, *_args, **_kwargs)
return val
def GetScrolledWindow(self, *_args, **_kwargs):
- val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_GetScrolledWindow,(self,) + _args, _kwargs)
+ val = gizmosc.wxRemotelyScrolledTreeCtrl_GetScrolledWindow(self, *_args, **_kwargs)
if val: val = wxScrolledWindowPtr(val)
return val
def ScrollToLine(self, *_args, **_kwargs):
- val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_ScrollToLine,(self,) + _args, _kwargs)
+ val = gizmosc.wxRemotelyScrolledTreeCtrl_ScrollToLine(self, *_args, **_kwargs)
return val
def SetCompanionWindow(self, *_args, **_kwargs):
- val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_SetCompanionWindow,(self,) + _args, _kwargs)
+ val = gizmosc.wxRemotelyScrolledTreeCtrl_SetCompanionWindow(self, *_args, **_kwargs)
return val
def GetCompanionWindow(self, *_args, **_kwargs):
- val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_GetCompanionWindow,(self,) + _args, _kwargs)
+ val = gizmosc.wxRemotelyScrolledTreeCtrl_GetCompanionWindow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxRemotelyScrolledTreeCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxRemotelyScrolledTreeCtrl(wxRemotelyScrolledTreeCtrlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gizmosc.new_wxRemotelyScrolledTreeCtrl,_args,_kwargs)
+ self.this = gizmosc.new_wxRemotelyScrolledTreeCtrl(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -187,20 +187,20 @@ class wxTreeCompanionWindowPtr(wxWindowPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(gizmosc.wxTreeCompanionWindow__setCallbackInfo,(self,) + _args, _kwargs)
+ val = gizmosc.wxTreeCompanionWindow__setCallbackInfo(self, *_args, **_kwargs)
return val
def GetTreeCtrl(self, *_args, **_kwargs):
- val = apply(gizmosc.wxTreeCompanionWindow_GetTreeCtrl,(self,) + _args, _kwargs)
+ val = gizmosc.wxTreeCompanionWindow_GetTreeCtrl(self, *_args, **_kwargs)
if val: val = wxRemotelyScrolledTreeCtrlPtr(val)
return val
def SetTreeCtrl(self, *_args, **_kwargs):
- val = apply(gizmosc.wxTreeCompanionWindow_SetTreeCtrl,(self,) + _args, _kwargs)
+ val = gizmosc.wxTreeCompanionWindow_SetTreeCtrl(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTreeCompanionWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxTreeCompanionWindow(wxTreeCompanionWindowPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gizmosc.new_wxTreeCompanionWindow,_args,_kwargs)
+ self.this = gizmosc.new_wxTreeCompanionWindow(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxTreeCompanionWindow)
self._setOORInfo(self)
@@ -213,10 +213,10 @@ class wxThinSplitterWindowPtr(wxSplitterWindowPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxThinSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxThinSplitterWindow(wxThinSplitterWindowPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gizmosc.new_wxThinSplitterWindow,_args,_kwargs)
+ self.this = gizmosc.new_wxThinSplitterWindow(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -228,10 +228,10 @@ class wxSplitterScrolledWindowPtr(wxScrolledWindowPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSplitterScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxSplitterScrolledWindow(wxSplitterScrolledWindowPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gizmosc.new_wxSplitterScrolledWindow,_args,_kwargs)
+ self.this = gizmosc.new_wxSplitterScrolledWindow(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -243,38 +243,439 @@ class wxLEDNumberCtrlPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(gizmosc.wxLEDNumberCtrl_Create,(self,) + _args, _kwargs)
+ val = gizmosc.wxLEDNumberCtrl_Create(self, *_args, **_kwargs)
return val
def GetAlignment(self, *_args, **_kwargs):
- val = apply(gizmosc.wxLEDNumberCtrl_GetAlignment,(self,) + _args, _kwargs)
+ val = gizmosc.wxLEDNumberCtrl_GetAlignment(self, *_args, **_kwargs)
return val
def GetDrawFaded(self, *_args, **_kwargs):
- val = apply(gizmosc.wxLEDNumberCtrl_GetDrawFaded,(self,) + _args, _kwargs)
+ val = gizmosc.wxLEDNumberCtrl_GetDrawFaded(self, *_args, **_kwargs)
return val
def GetValue(self, *_args, **_kwargs):
- val = apply(gizmosc.wxLEDNumberCtrl_GetValue,(self,) + _args, _kwargs)
+ val = gizmosc.wxLEDNumberCtrl_GetValue(self, *_args, **_kwargs)
return val
def SetAlignment(self, *_args, **_kwargs):
- val = apply(gizmosc.wxLEDNumberCtrl_SetAlignment,(self,) + _args, _kwargs)
+ val = gizmosc.wxLEDNumberCtrl_SetAlignment(self, *_args, **_kwargs)
return val
def SetDrawFaded(self, *_args, **_kwargs):
- val = apply(gizmosc.wxLEDNumberCtrl_SetDrawFaded,(self,) + _args, _kwargs)
+ val = gizmosc.wxLEDNumberCtrl_SetDrawFaded(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(gizmosc.wxLEDNumberCtrl_SetValue,(self,) + _args, _kwargs)
+ val = gizmosc.wxLEDNumberCtrl_SetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxLEDNumberCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxLEDNumberCtrl(wxLEDNumberCtrlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gizmosc.new_wxLEDNumberCtrl,_args,_kwargs)
+ self.this = gizmosc.new_wxLEDNumberCtrl(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreLEDNumberCtrl(*_args,**_kwargs):
- val = wxLEDNumberCtrlPtr(apply(gizmosc.new_wxPreLEDNumberCtrl,_args,_kwargs))
+ val = wxLEDNumberCtrlPtr(gizmosc.new_wxPreLEDNumberCtrl(*_args,**_kwargs))
+ val.thisown = 1
+ val._setOORInfo(val)
+ return val
+
+
+class wxTreeListColumnInfoPtr(wxObjectPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def GetAlignment(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListColumnInfo_GetAlignment(self, *_args, **_kwargs)
+ return val
+ def GetText(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListColumnInfo_GetText(self, *_args, **_kwargs)
+ return val
+ def GetImage(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListColumnInfo_GetImage(self, *_args, **_kwargs)
+ return val
+ def GetSelectedImage(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListColumnInfo_GetSelectedImage(self, *_args, **_kwargs)
+ return val
+ def GetWidth(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListColumnInfo_GetWidth(self, *_args, **_kwargs)
+ return val
+ def SetAlignment(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListColumnInfo_SetAlignment(self, *_args, **_kwargs)
+ return val
+ def SetText(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListColumnInfo_SetText(self, *_args, **_kwargs)
+ return val
+ def SetImage(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListColumnInfo_SetImage(self, *_args, **_kwargs)
+ return val
+ def SetSelectedImage(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListColumnInfo_SetSelectedImage(self, *_args, **_kwargs)
+ return val
+ def SetWidth(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListColumnInfo_SetWidth(self, *_args, **_kwargs)
+ return val
+ def __repr__(self):
+ return "<%s.%s instance; proxy of C++ wxTreeListColumnInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxTreeListColumnInfo(wxTreeListColumnInfoPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = gizmosc.new_wxTreeListColumnInfo(*_args,**_kwargs)
+ self.thisown = 1
+
+
+
+
+class wxTreeListCtrlPtr(wxControlPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def Create(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_Create(self, *_args, **_kwargs)
+ return val
+ def _setCallbackInfo(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl__setCallbackInfo(self, *_args, **_kwargs)
+ return val
+ def GetCount(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetCount(self, *_args, **_kwargs)
+ return val
+ def GetIndent(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetIndent(self, *_args, **_kwargs)
+ return val
+ def SetIndent(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetIndent(self, *_args, **_kwargs)
+ return val
+ def GetSpacing(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetSpacing(self, *_args, **_kwargs)
+ return val
+ def SetSpacing(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetSpacing(self, *_args, **_kwargs)
+ return val
+ def GetLineSpacing(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetLineSpacing(self, *_args, **_kwargs)
+ return val
+ def SetLineSpacing(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetLineSpacing(self, *_args, **_kwargs)
+ return val
+ def GetImageList(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetImageList(self, *_args, **_kwargs)
+ return val
+ def GetStateImageList(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetStateImageList(self, *_args, **_kwargs)
+ return val
+ def GetButtonsImageList(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetButtonsImageList(self, *_args, **_kwargs)
+ return val
+ def SetImageList(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetImageList(self, *_args, **_kwargs)
+ return val
+ def SetStateImageList(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetStateImageList(self, *_args, **_kwargs)
+ return val
+ def SetButtonsImageList(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetButtonsImageList(self, *_args, **_kwargs)
+ return val
+ def AssignImageList(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_AssignImageList(self, *_args, **_kwargs)
+ return val
+ def AssignStateImageList(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_AssignStateImageList(self, *_args, **_kwargs)
+ return val
+ def AssignButtonsImageList(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_AssignButtonsImageList(self, *_args, **_kwargs)
+ return val
+ def AddColumn(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_AddColumn(self, *_args, **_kwargs)
+ return val
+ def AddColumnInfo(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_AddColumnInfo(self, *_args, **_kwargs)
+ return val
+ def InsertColumn(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_InsertColumn(self, *_args, **_kwargs)
+ return val
+ def InsertColumnInfo(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_InsertColumnInfo(self, *_args, **_kwargs)
+ return val
+ def RemoveColumn(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_RemoveColumn(self, *_args, **_kwargs)
+ return val
+ def GetColumnCount(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetColumnCount(self, *_args, **_kwargs)
+ return val
+ def SetColumnWidth(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetColumnWidth(self, *_args, **_kwargs)
+ return val
+ def GetColumnWidth(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetColumnWidth(self, *_args, **_kwargs)
+ return val
+ def SetMainColumn(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetMainColumn(self, *_args, **_kwargs)
+ return val
+ def GetMainColumn(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetMainColumn(self, *_args, **_kwargs)
+ return val
+ def SetColumnText(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetColumnText(self, *_args, **_kwargs)
+ return val
+ def GetColumnText(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetColumnText(self, *_args, **_kwargs)
+ return val
+ def SetColumn(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetColumn(self, *_args, **_kwargs)
+ return val
+ def GetColumn(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetColumn(self, *_args, **_kwargs)
+ if val: val = wxTreeListColumnInfoPtr(val)
+ return val
+ def SetColumnAlignment(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetColumnAlignment(self, *_args, **_kwargs)
+ return val
+ def GetColumnAlignment(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetColumnAlignment(self, *_args, **_kwargs)
+ return val
+ def SetColumnImage(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetColumnImage(self, *_args, **_kwargs)
+ return val
+ def GetColumnImage(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetColumnImage(self, *_args, **_kwargs)
+ return val
+ def GetItemText(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetItemText(self, *_args, **_kwargs)
+ return val
+ def GetItemImage(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetItemImage(self, *_args, **_kwargs)
+ return val
+ def SetItemText(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetItemText(self, *_args, **_kwargs)
+ return val
+ def SetItemImage(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetItemImage(self, *_args, **_kwargs)
+ return val
+ def GetItemData(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetItemData(self, *_args, **_kwargs)
+ if val: val = wxTreeItemDataPtr(val)
+ return val
+ def SetItemData(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetItemData(self, *_args, **_kwargs)
+ return val
+ def GetPyData(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetPyData(self, *_args, **_kwargs)
+ return val
+ def SetPyData(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetPyData(self, *_args, **_kwargs)
+ return val
+ def SetItemHasChildren(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetItemHasChildren(self, *_args, **_kwargs)
+ return val
+ def SetItemBold(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetItemBold(self, *_args, **_kwargs)
+ return val
+ def SetItemTextColour(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetItemTextColour(self, *_args, **_kwargs)
+ return val
+ def SetItemBackgroundColour(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetItemBackgroundColour(self, *_args, **_kwargs)
+ return val
+ def SetItemFont(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetItemFont(self, *_args, **_kwargs)
+ return val
+ def GetItemBold(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetItemBold(self, *_args, **_kwargs)
+ return val
+ def GetItemTextColour(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetItemTextColour(self, *_args, **_kwargs)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
+ return val
+ def GetItemBackgroundColour(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetItemBackgroundColour(self, *_args, **_kwargs)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
+ return val
+ def GetItemFont(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetItemFont(self, *_args, **_kwargs)
+ if val: val = wxFontPtr(val) ; val.thisown = 1
+ return val
+ def IsVisible(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_IsVisible(self, *_args, **_kwargs)
+ return val
+ def ItemHasChildren(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_ItemHasChildren(self, *_args, **_kwargs)
+ return val
+ def IsExpanded(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_IsExpanded(self, *_args, **_kwargs)
+ return val
+ def IsSelected(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_IsSelected(self, *_args, **_kwargs)
+ return val
+ def IsBold(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_IsBold(self, *_args, **_kwargs)
+ return val
+ def GetChildrenCount(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetChildrenCount(self, *_args, **_kwargs)
+ return val
+ def GetRootItem(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetRootItem(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetSelection(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetSelection(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetSelections(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetSelections(self, *_args, **_kwargs)
+ return val
+ def GetItemParent(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetItemParent(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetFirstChild(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetFirstChild(self, *_args, **_kwargs)
+ return val
+ def GetNextChild(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetNextChild(self, *_args, **_kwargs)
+ return val
+ def GetLastChild(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetLastChild(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetNextSibling(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetNextSibling(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetPrevSibling(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetPrevSibling(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetFirstVisibleItem(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetFirstVisibleItem(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetNextVisible(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetNextVisible(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetPrevVisible(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetPrevVisible(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetNext(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetNext(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def AddRoot(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_AddRoot(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def PrependItem(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_PrependItem(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def InsertItem(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_InsertItem(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def InsertItemBefore(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_InsertItemBefore(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def AppendItem(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_AppendItem(self, *_args, **_kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def Delete(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_Delete(self, *_args, **_kwargs)
+ return val
+ def DeleteChildren(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_DeleteChildren(self, *_args, **_kwargs)
+ return val
+ def DeleteAllItems(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_DeleteAllItems(self, *_args, **_kwargs)
+ return val
+ def Expand(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_Expand(self, *_args, **_kwargs)
+ return val
+ def ExpandAll(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_ExpandAll(self, *_args, **_kwargs)
+ return val
+ def Collapse(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_Collapse(self, *_args, **_kwargs)
+ return val
+ def CollapseAndReset(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_CollapseAndReset(self, *_args, **_kwargs)
+ return val
+ def Toggle(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_Toggle(self, *_args, **_kwargs)
+ return val
+ def Unselect(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_Unselect(self, *_args, **_kwargs)
+ return val
+ def UnselectAll(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_UnselectAll(self, *_args, **_kwargs)
+ return val
+ def SelectItem(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SelectItem(self, *_args, **_kwargs)
+ return val
+ def EnsureVisible(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_EnsureVisible(self, *_args, **_kwargs)
+ return val
+ def ScrollTo(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_ScrollTo(self, *_args, **_kwargs)
+ return val
+ def HitTest(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_HitTest(self, *_args, **_kwargs)
+ return val
+ def GetBoundingRect(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetBoundingRect(self, *_args, **_kwargs)
+ return val
+ def EditLabel(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_EditLabel(self, *_args, **_kwargs)
+ return val
+ def Edit(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_Edit(self, *_args, **_kwargs)
+ return val
+ def SortChildren(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SortChildren(self, *_args, **_kwargs)
+ return val
+ def GetItemSelectedImage(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetItemSelectedImage(self, *_args, **_kwargs)
+ return val
+ def SetItemSelectedImage(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_SetItemSelectedImage(self, *_args, **_kwargs)
+ return val
+ def GetHeaderWindow(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetHeaderWindow(self, *_args, **_kwargs)
+ return val
+ def GetMainWindow(self, *_args, **_kwargs):
+ val = gizmosc.wxTreeListCtrl_GetMainWindow(self, *_args, **_kwargs)
+ return val
+ def __repr__(self):
+ return "<%s.%s instance; proxy of C++ wxTreeListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+
+ # Redefine some methods that SWIG gets a bit confused on...
+ def GetFirstChild(self, *_args, **_kwargs):
+ val1,val2 = gizmosc.wxTreeListCtrl_GetFirstChild(self, *_args, **_kwargs)
+ val1 = wxTreeItemIdPtr(val1)
+ val1.thisown = 1
+ return (val1,val2)
+ def GetNextChild(self, *_args, **_kwargs):
+ val1,val2 = gizmosc.wxTreeListCtrl_GetNextChild(self, *_args, **_kwargs)
+ val1 = wxTreeItemIdPtr(val1)
+ val1.thisown = 1
+ return (val1,val2)
+ def HitTest(self, *_args, **_kwargs):
+ val1, val2, val3 = gizmosc.wxTreeListCtrl_HitTest(self, *_args, **_kwargs)
+ val1 = wxTreeItemIdPtr(val1)
+ val1.thisown = 1
+ return (val1, val2, val3)
+
+class wxTreeListCtrl(wxTreeListCtrlPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = gizmosc.new_wxTreeListCtrl(*_args,**_kwargs)
+ self.thisown = 1
+ self._setCallbackInfo(self, wxTreeListCtrl)
+ self._setOORInfo(self)
+
+
+
+def wxPreTreeListCtrl(*_args,**_kwargs):
+ val = wxTreeListCtrlPtr(gizmosc.new_wxPreTreeListCtrl(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -300,6 +701,10 @@ wxLED_ALIGN_RIGHT = gizmosc.wxLED_ALIGN_RIGHT
wxLED_ALIGN_CENTER = gizmosc.wxLED_ALIGN_CENTER
wxLED_ALIGN_MASK = gizmosc.wxLED_ALIGN_MASK
wxLED_DRAW_FADED = gizmosc.wxLED_DRAW_FADED
+wxTL_ALIGN_LEFT = gizmosc.wxTL_ALIGN_LEFT
+wxTL_ALIGN_RIGHT = gizmosc.wxTL_ALIGN_RIGHT
+wxTL_ALIGN_CENTER = gizmosc.wxTL_ALIGN_CENTER
+wxTREE_HITTEST_ONITEMCOLUMN = gizmosc.wxTREE_HITTEST_ONITEMCOLUMN
#-------------- USER INCLUDE -----------------------
diff --git a/wxPython/contrib/gizmos/treelistctrl.cpp b/wxPython/contrib/gizmos/treelistctrl.cpp
new file mode 100644
index 0000000000..a559d95415
--- /dev/null
+++ b/wxPython/contrib/gizmos/treelistctrl.cpp
@@ -0,0 +1,4764 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name: treelistctrl.cpp (derived by treectlg.h)
+// Purpose: multi column tree control implementation
+// Author: Robert Roebling
+// Created: 01/02/97
+// Modified: Alberto Griggio, 2002
+// 22/10/98 - almost total rewrite, simpler interface (VZ)
+// Id: $Id$
+// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+// ===========================================================================
+// declarations
+// ===========================================================================
+
+// ---------------------------------------------------------------------------
+// headers
+// ---------------------------------------------------------------------------
+
+#if defined(__GNUG__) && !defined(__APPLE__)
+ #pragma implementation "treelistctrl.h"
+#endif
+
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+//#include "wx/gizmos/treelistctrl.h"
+#include "treelistctrl.h"
+
+
+#ifdef __WXGTK__
+ #include
+ #include
+#endif
+
+// ---------------------------------------------------------------------------
+// array types
+// ---------------------------------------------------------------------------
+
+class wxTreeListItem;
+
+WX_DEFINE_ARRAY(wxTreeListItem *, wxArrayTreeListItems);
+
+#include
+WX_DECLARE_OBJARRAY(wxTreeListColumnInfo, wxArrayTreeListColumnInfo);
+#include
+WX_DEFINE_OBJARRAY(wxArrayTreeListColumnInfo);
+
+#if !wxCHECK_VERSION(2, 3, 3)
+WX_DEFINE_ARRAY(short, wxArrayShort);
+#endif
+
+
+// --------------------------------------------------------------------------
+// constants
+// --------------------------------------------------------------------------
+
+static const int NO_IMAGE = -1;
+
+#define PIXELS_PER_UNIT 10
+
+const wxChar* wxTreeListCtrlNameStr = wxT("treelistctrl");
+
+static wxTreeListColumnInfo wxInvalidTreeListColumnInfo;
+
+
+// ---------------------------------------------------------------------------
+// private classes
+// ---------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+// wxTreeListHeaderWindow (internal)
+//-----------------------------------------------------------------------------
+
+class wxTreeListHeaderWindow : public wxWindow
+{
+protected:
+ wxTreeListMainWindow *m_owner;
+ wxCursor *m_currentCursor;
+ wxCursor *m_resizeCursor;
+ bool m_isDragging;
+
+ // column being resized
+ int m_column;
+
+ // divider line position in logical (unscrolled) coords
+ int m_currentX;
+
+ // minimal position beyond which the divider line can't be dragged in
+ // logical coords
+ int m_minX;
+
+ wxArrayTreeListColumnInfo m_columns;
+
+ // total width of the columns
+ int m_total_col_width;
+
+
+public:
+ wxTreeListHeaderWindow();
+
+ wxTreeListHeaderWindow( wxWindow *win,
+ wxWindowID id,
+ wxTreeListMainWindow *owner,
+ const wxPoint &pos = wxDefaultPosition,
+ const wxSize &size = wxDefaultSize,
+ long style = 0,
+ const wxString &name = wxT("wxtreelistctrlcolumntitles") );
+
+ virtual ~wxTreeListHeaderWindow();
+
+ void DoDrawRect( wxDC *dc, int x, int y, int w, int h );
+ void DrawCurrent();
+ void AdjustDC(wxDC& dc);
+
+ void OnPaint( wxPaintEvent &event );
+ void OnMouse( wxMouseEvent &event );
+ void OnSetFocus( wxFocusEvent &event );
+
+
+ // columns manipulation
+
+ size_t GetColumnCount() const { return m_columns.GetCount(); }
+
+ void AddColumn(const wxTreeListColumnInfo& col);
+
+ void InsertColumn(size_t before, const wxTreeListColumnInfo& col);
+
+ void RemoveColumn(size_t column);
+
+ void SetColumn(size_t column, const wxTreeListColumnInfo& info);
+ const wxTreeListColumnInfo& GetColumn(size_t column) const
+ {
+ wxCHECK_MSG(column < GetColumnCount(), wxInvalidTreeListColumnInfo, wxT("Invalid column"));
+ return m_columns[column];
+ }
+ wxTreeListColumnInfo& GetColumn(size_t column)
+ {
+ wxCHECK_MSG(column < GetColumnCount(), wxInvalidTreeListColumnInfo, wxT("Invalid column"));
+ return m_columns[column];
+ }
+
+ void SetColumnWidth(size_t column, size_t width);
+
+ void SetColumnText(size_t column, const wxString& text)
+ {
+ wxCHECK_RET(column < GetColumnCount(), wxT("Invalid column"));
+ m_columns[column].SetText(text);
+ }
+
+ wxString GetColumnText(size_t column) const
+ {
+ wxCHECK_MSG(column < GetColumnCount(), wxEmptyString, wxT("Invalid column"));
+ return m_columns[column].GetText();
+ }
+
+ int GetColumnWidth(size_t column) const
+ {
+ wxCHECK_MSG(column < GetColumnCount(), -1, wxT("Invalid column"));
+ return m_columns[column].GetWidth();
+ }
+
+ int GetWidth() const { return m_total_col_width; }
+
+ // needs refresh
+ bool m_dirty;
+
+private:
+ // common part of all ctors
+ void Init();
+
+ void SendListEvent(wxEventType type, wxPoint pos);
+
+ DECLARE_DYNAMIC_CLASS(wxTreeListHeaderWindow)
+ DECLARE_EVENT_TABLE()
+};
+
+
+// this is the "true" control
+class wxTreeListMainWindow: public wxScrolledWindow
+{
+public:
+ // creation
+ // --------
+ wxTreeListMainWindow() { Init(); }
+
+ wxTreeListMainWindow(wxTreeListCtrl *parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTR_DEFAULT_STYLE,
+ const wxValidator &validator = wxDefaultValidator,
+ const wxString& name = wxT("wxtreelistmainwindow"))
+ {
+ Init();
+ Create(parent, id, pos, size, style, validator, name);
+ }
+
+ virtual ~wxTreeListMainWindow();
+
+ bool Create(wxTreeListCtrl *parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTR_DEFAULT_STYLE,
+ const wxValidator &validator = wxDefaultValidator,
+ const wxString& name = wxT("wxtreelistctrl"));
+
+ // accessors
+ // ---------
+
+ // get the total number of items in the control
+ size_t GetCount() const;
+
+ // indent is the number of pixels the children are indented relative to
+ // the parents position. SetIndent() also redraws the control
+ // immediately.
+ unsigned int GetIndent() const { return m_indent; }
+ void SetIndent(unsigned int indent);
+
+ // spacing is the number of pixels between the start and the Text
+ unsigned int GetSpacing() const { return m_spacing; }
+ void SetSpacing(unsigned int spacing);
+
+ // see wxTreeListCtrl for the meaning
+ unsigned int GetLineSpacing() const { return m_linespacing; }
+ void SetLineSpacing(unsigned int spacing);
+
+ // image list: these functions allow to associate an image list with
+ // the control and retrieve it. Note that when assigned with
+ // SetImageList, the control does _not_ delete
+ // the associated image list when it's deleted in order to allow image
+ // lists to be shared between different controls. If you use
+ // AssignImageList, the control _does_ delete the image list.
+ //
+ // The normal image list is for the icons which correspond to the
+ // normal tree item state (whether it is selected or not).
+ // Additionally, the application might choose to show a state icon
+ // which corresponds to an app-defined item state (for example,
+ // checked/unchecked) which are taken from the state image list.
+ wxImageList *GetImageList() const;
+ wxImageList *GetStateImageList() const;
+ wxImageList *GetButtonsImageList() const;
+
+ void SetImageList(wxImageList *imageList);
+ void SetStateImageList(wxImageList *imageList);
+ void SetButtonsImageList(wxImageList *imageList);
+ void AssignImageList(wxImageList *imageList);
+ void AssignStateImageList(wxImageList *imageList);
+ void AssignButtonsImageList(wxImageList *imageList);
+
+ // Functions to work with tree ctrl items.
+
+ // accessors
+ // ---------
+
+ // retrieve item's label
+ wxString GetItemText(const wxTreeItemId& item) const
+ { return GetItemText(item, GetMainColumn()); }
+ // get one of the images associated with the item (normal by default)
+ int GetItemImage(const wxTreeItemId& item,
+ wxTreeItemIcon which = wxTreeItemIcon_Normal) const
+ { return GetItemImage(item, GetMainColumn(), which); }
+
+ // get the data associated with the item
+ wxTreeItemData *GetItemData(const wxTreeItemId& item) const;
+
+ bool GetItemBold(const wxTreeItemId& item) const;
+ wxColour GetItemTextColour(const wxTreeItemId& item) const;
+ wxColour GetItemBackgroundColour(const wxTreeItemId& item) const;
+ wxFont GetItemFont(const wxTreeItemId& item) const;
+
+ // modifiers
+ // ---------
+
+ // set item's label
+ void SetItemText(const wxTreeItemId& item, const wxString& text)
+ { SetItemText(item, GetMainColumn(), text); }
+
+ // get one of the images associated with the item (normal by default)
+ void SetItemImage(const wxTreeItemId& item, int image,
+ wxTreeItemIcon which = wxTreeItemIcon_Normal)
+ { SetItemImage(item, GetMainColumn(), image, which); }
+
+ // associate some data with the item
+ void SetItemData(const wxTreeItemId& item, wxTreeItemData *data);
+
+ // force appearance of [+] button near the item. This is useful to
+ // allow the user to expand the items which don't have any children now
+ // - but instead add them only when needed, thus minimizing memory
+ // usage and loading time.
+ void SetItemHasChildren(const wxTreeItemId& item, bool has = TRUE);
+
+ // the item will be shown in bold
+ void SetItemBold(const wxTreeItemId& item, bool bold = TRUE);
+
+ // set the item's text colour
+ void SetItemTextColour(const wxTreeItemId& item, const wxColour& col);
+
+ // set the item's background colour
+ void SetItemBackgroundColour(const wxTreeItemId& item,
+ const wxColour& col);
+
+ // set the item's font (should be of the same height for all items)
+ void SetItemFont(const wxTreeItemId& item, const wxFont& font);
+
+ // set the window font
+ virtual bool SetFont( const wxFont &font );
+
+ // set the styles. No need to specify a GetWindowStyle here since
+ // the base wxWindow member function will do it for us
+ void SetWindowStyle(const long styles);
+
+ // item status inquiries
+ // ---------------------
+
+ // is the item visible (it might be outside the view or not expanded)?
+ bool IsVisible(const wxTreeItemId& item) const;
+ // does the item has any children?
+ bool HasChildren(const wxTreeItemId& item) const
+ { return ItemHasChildren(item); }
+ bool ItemHasChildren(const wxTreeItemId& item) const;
+ // is the item expanded (only makes sense if HasChildren())?
+ bool IsExpanded(const wxTreeItemId& item) const;
+ // is this item currently selected (the same as has focus)?
+ bool IsSelected(const wxTreeItemId& item) const;
+ // is item text in bold font?
+ bool IsBold(const wxTreeItemId& item) const;
+ // does the layout include space for a button?
+
+ // number of children
+ // ------------------
+
+ // if 'recursively' is FALSE, only immediate children count, otherwise
+ // the returned number is the number of all items in this branch
+ size_t GetChildrenCount(const wxTreeItemId& item, bool recursively = TRUE);
+
+ // navigation
+ // ----------
+
+ // wxTreeItemId.IsOk() will return FALSE if there is no such item
+
+ // get the root tree item
+ wxTreeItemId GetRootItem() const { return m_anchor; }
+
+ // get the item currently selected (may return NULL if no selection)
+ wxTreeItemId GetSelection() const { return m_current; }
+
+ // get the items currently selected, return the number of such item
+ size_t GetSelections(wxArrayTreeItemIds&) const;
+
+ // get the parent of this item (may return NULL if root)
+ wxTreeItemId GetParent(const wxTreeItemId& item) const;
+
+ // for this enumeration function you must pass in a "cookie" parameter
+ // which is opaque for the application but is necessary for the library
+ // to make these functions reentrant (i.e. allow more than one
+ // enumeration on one and the same object simultaneously). Of course,
+ // the "cookie" passed to GetFirstChild() and GetNextChild() should be
+ // the same!
+
+ // get the first child of this item
+ wxTreeItemId GetFirstChild(const wxTreeItemId& item, long& cookie) const;
+ // get the next child
+ wxTreeItemId GetNextChild(const wxTreeItemId& item, long& cookie) const;
+ // get the last child of this item - this method doesn't use cookies
+ wxTreeItemId GetLastChild(const wxTreeItemId& item) const;
+
+ // get the next sibling of this item
+ wxTreeItemId GetNextSibling(const wxTreeItemId& item) const;
+ // get the previous sibling
+ wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const;
+
+ // get first visible item
+ wxTreeItemId GetFirstVisibleItem() const;
+ // get the next visible item: item must be visible itself!
+ // see IsVisible() and wxTreeCtrl::GetFirstVisibleItem()
+ wxTreeItemId GetNextVisible(const wxTreeItemId& item) const;
+ // get the previous visible item: item must be visible itself!
+ wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const;
+
+ // Only for internal use right now, but should probably be public
+ wxTreeItemId GetNext(const wxTreeItemId& item) const;
+
+ // operations
+ // ----------
+
+ // add the root node to the tree
+ wxTreeItemId AddRoot(const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxTreeItemData *data = NULL);
+
+ // insert a new item in as the first child of the parent
+ wxTreeItemId PrependItem(const wxTreeItemId& parent,
+ const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxTreeItemData *data = NULL);
+
+ // insert a new item after a given one
+ wxTreeItemId InsertItem(const wxTreeItemId& parent,
+ const wxTreeItemId& idPrevious,
+ const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxTreeItemData *data = NULL);
+
+ // insert a new item before the one with the given index
+ wxTreeItemId InsertItem(const wxTreeItemId& parent,
+ size_t index,
+ const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxTreeItemData *data = NULL);
+
+ // insert a new item in as the last child of the parent
+ wxTreeItemId AppendItem(const wxTreeItemId& parent,
+ const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxTreeItemData *data = NULL);
+
+ // delete this item and associated data if any
+ void Delete(const wxTreeItemId& item);
+ // delete all children (but don't delete the item itself)
+ // NB: this won't send wxEVT_COMMAND_TREE_ITEM_DELETED events
+ void DeleteChildren(const wxTreeItemId& item);
+ // delete all items from the tree
+ // NB: this won't send wxEVT_COMMAND_TREE_ITEM_DELETED events
+ void DeleteAllItems();
+
+ // expand this item
+ void Expand(const wxTreeItemId& item);
+ // expand this item and all subitems recursively
+ void ExpandAll(const wxTreeItemId& item);
+ // collapse the item without removing its children
+ void Collapse(const wxTreeItemId& item);
+ // collapse the item and remove all children
+ void CollapseAndReset(const wxTreeItemId& item);
+ // toggles the current state
+ void Toggle(const wxTreeItemId& item);
+
+ // remove the selection from currently selected item (if any)
+ void Unselect();
+ void UnselectAll();
+ // select this item
+ void SelectItem(const wxTreeItemId& item, bool unselect_others=TRUE,
+ bool extended_select=FALSE);
+ // make sure this item is visible (expanding the parent item and/or
+ // scrolling to this item if necessary)
+ void EnsureVisible(const wxTreeItemId& item);
+ // scroll to this item (but don't expand its parent)
+ void ScrollTo(const wxTreeItemId& item);
+ void AdjustMyScrollbars();
+
+ // The first function is more portable (because easier to implement
+ // on other platforms), but the second one returns some extra info.
+ wxTreeItemId HitTest(const wxPoint& point)
+ { int dummy; return HitTest(point, dummy); }
+ wxTreeItemId HitTest(const wxPoint& point, int& flags)
+ { int col; return HitTest(point, flags, col); }
+ // ALB
+ wxTreeItemId HitTest(const wxPoint& point, int& flags, int& column);
+
+
+ // get the bounding rectangle of the item (or of its label only)
+ bool GetBoundingRect(const wxTreeItemId& item,
+ wxRect& rect,
+ bool textOnly = FALSE) const;
+
+ // Start editing the item label: this (temporarily) replaces the item
+ // with a one line edit control. The item will be selected if it hadn't
+ // been before.
+ void EditLabel( const wxTreeItemId& item ) { Edit( item ); }
+ void Edit( const wxTreeItemId& item );
+
+ // sorting
+ // this function is called to compare 2 items and should return -1, 0
+ // or +1 if the first item is less than, equal to or greater than the
+ // second one. The base class version performs alphabetic comparaison
+ // of item labels (GetText)
+ virtual int OnCompareItems(const wxTreeItemId& item1,
+ const wxTreeItemId& item2);
+ // sort the children of this item using OnCompareItems
+ //
+ // NB: this function is not reentrant and not MT-safe (FIXME)!
+ void SortChildren(const wxTreeItemId& item);
+
+ // deprecated functions: use Set/GetItemImage directly
+ // get the selected item image
+ int GetItemSelectedImage(const wxTreeItemId& item) const
+ { return GetItemImage(item, wxTreeItemIcon_Selected); }
+ // set the selected item image
+ void SetItemSelectedImage(const wxTreeItemId& item, int image)
+ { SetItemImage(item, image, wxTreeItemIcon_Selected); }
+
+ // implementation only from now on
+
+ // overridden base class virtuals
+ virtual bool SetBackgroundColour(const wxColour& colour);
+ virtual bool SetForegroundColour(const wxColour& colour);
+
+ // callbacks
+ void OnPaint( wxPaintEvent &event );
+ void OnSetFocus( wxFocusEvent &event );
+ void OnKillFocus( wxFocusEvent &event );
+ void OnChar( wxKeyEvent &event );
+ void OnMouse( wxMouseEvent &event );
+ void OnIdle( wxIdleEvent &event );
+ void OnSize(wxSizeEvent& event); // ALB
+ void OnScroll(wxScrollWinEvent& event); // ALB
+
+ // implementation helpers
+ void SendDeleteEvent(wxTreeListItem *itemBeingDeleted);
+
+ void DrawBorder(const wxTreeItemId& item);
+ void DrawLine(const wxTreeItemId& item, bool below);
+
+ size_t GetColumnCount() const
+ { return m_owner->GetHeaderWindow()->GetColumnCount(); }
+
+ void SetMainColumn(size_t column)
+ {
+ if(column < GetColumnCount())
+ m_main_column = column;
+ }
+ size_t GetMainColumn() const { return m_main_column; }
+
+ void SetItemText(const wxTreeItemId& item, size_t column,
+ const wxString& text);
+ wxString GetItemText(const wxTreeItemId& item, size_t column) const;
+
+ void SetItemImage(const wxTreeItemId& item, size_t column, int image,
+ wxTreeItemIcon which = wxTreeItemIcon_Normal);
+ int GetItemImage(const wxTreeItemId& item, size_t column,
+ wxTreeItemIcon which = wxTreeItemIcon_Normal) const;
+protected:
+ wxTreeListCtrl* m_owner; // ALB
+
+ size_t m_main_column; // ALB
+
+ friend class wxTreeListItem;
+ friend class wxTreeListRenameTimer;
+ friend class wxTreeListTextCtrl;
+
+ wxFont m_normalFont;
+ wxFont m_boldFont;
+
+ wxTreeListItem *m_anchor;
+ wxTreeListItem *m_current, *m_key_current, *m_currentEdit;
+ unsigned short m_indent;
+ unsigned short m_spacing;
+ int m_lineHeight;
+ unsigned short m_linespacing;
+ wxPen m_dottedPen;
+ wxBrush *m_hilightBrush,
+ *m_hilightUnfocusedBrush;
+ bool m_hasFocus;
+public:
+ bool m_dirty;
+protected:
+ bool m_ownsImageListNormal,
+ m_ownsImageListState,
+ m_ownsImageListButtons;
+ bool m_isDragging; // true between BEGIN/END drag events
+ bool m_renameAccept;
+ bool m_lastOnSame; // last click on the same item as prev
+ wxImageList *m_imageListNormal,
+ *m_imageListState,
+ *m_imageListButtons;
+
+ int m_dragCount;
+ wxPoint m_dragStart;
+ wxTreeListItem *m_dropTarget;
+ wxCursor m_oldCursor; // cursor is changed while dragging
+ wxTreeListItem *m_oldSelection;
+
+ wxTimer *m_renameTimer;
+ wxString m_renameRes;
+
+ // the common part of all ctors
+ void Init();
+
+ // misc helpers
+ wxTreeItemId DoInsertItem(const wxTreeItemId& parent,
+ size_t previous,
+ const wxString& text,
+ int image, int selectedImage,
+ wxTreeItemData *data);
+ bool HasButtons(void) const
+ { return (m_imageListButtons != NULL)
+ || HasFlag(wxTR_TWIST_BUTTONS|wxTR_HAS_BUTTONS); }
+
+protected:
+ void CalculateLineHeight();
+ int GetLineHeight(wxTreeListItem *item) const;
+ void PaintLevel( wxTreeListItem *item, wxDC& dc, int level, int &y,
+ int x_offset);
+ void PaintItem( wxTreeListItem *item, wxDC& dc);
+
+ void CalculateLevel( wxTreeListItem *item, wxDC &dc, int level, int &y,
+ int x_offset);
+ void CalculatePositions();
+ void CalculateSize( wxTreeListItem *item, wxDC &dc );
+
+ void RefreshSubtree( wxTreeListItem *item );
+ void RefreshLine( wxTreeListItem *item );
+
+ // redraw all selected items
+ void RefreshSelected();
+
+ // RefreshSelected() recursive helper
+ void RefreshSelectedUnder(wxTreeListItem *item);
+
+ void OnRenameTimer();
+ void OnRenameAccept();
+
+ void FillArray(wxTreeListItem*, wxArrayTreeItemIds&) const;
+ void SelectItemRange( wxTreeListItem *item1, wxTreeListItem *item2 );
+ bool TagAllChildrenUntilLast(wxTreeListItem *crt_item,
+ wxTreeListItem *last_item, bool select);
+ bool TagNextChildren(wxTreeListItem *crt_item, wxTreeListItem *last_item,
+ bool select);
+ void UnselectAllChildren( wxTreeListItem *item );
+
+ void DrawDropEffect(wxTreeListItem *item);
+
+private:
+ DECLARE_EVENT_TABLE()
+ DECLARE_DYNAMIC_CLASS(wxTreeListMainWindow)
+};
+
+
+// timer used for enabling in-place edit
+class wxTreeListRenameTimer: public wxTimer
+{
+public:
+ wxTreeListRenameTimer( wxTreeListMainWindow *owner );
+
+ void Notify();
+
+private:
+ wxTreeListMainWindow *m_owner;
+};
+
+// control used for in-place edit
+class wxTreeListTextCtrl: public wxTextCtrl
+{
+public:
+ wxTreeListTextCtrl( wxWindow *parent,
+ const wxWindowID id,
+ bool *accept,
+ wxString *res,
+ wxTreeListMainWindow *owner,
+ const wxString &value = wxEmptyString,
+ const wxPoint &pos = wxDefaultPosition,
+ const wxSize &size = wxDefaultSize,
+ int style = wxSIMPLE_BORDER,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString &name = wxTextCtrlNameStr );
+
+ void OnChar( wxKeyEvent &event );
+ void OnKeyUp( wxKeyEvent &event );
+ void OnKillFocus( wxFocusEvent &event );
+
+private:
+ bool *m_accept;
+ wxString *m_res;
+ wxTreeListMainWindow *m_owner;
+ wxString m_startValue;
+ bool m_finished;
+
+ DECLARE_EVENT_TABLE()
+};
+
+// a tree item
+class wxTreeListItem
+{
+public:
+ // ctors & dtor
+ wxTreeListItem() { m_data = NULL; }
+ wxTreeListItem( wxTreeListMainWindow *owner,
+ wxTreeListItem *parent,
+ const wxArrayString& text,
+ int image,
+ int selImage,
+ wxTreeItemData *data );
+
+ ~wxTreeListItem();
+
+ // trivial accessors
+ wxArrayTreeListItems& GetChildren() { return m_children; }
+
+ const wxString GetText() const
+ {
+ if(m_text.GetCount() > 0) return m_text[0];
+ return wxEmptyString;
+ }
+ const wxString GetText(size_t col) const
+ {
+ if(m_text.GetCount() > col) return m_text[col];
+ return wxEmptyString;
+ }
+ int GetImage(wxTreeItemIcon which = wxTreeItemIcon_Normal) const
+ { return m_images[which]; }
+ int GetImage(size_t col, wxTreeItemIcon which=wxTreeItemIcon_Normal) const
+ {
+ if(col == m_owner->GetMainColumn()) return m_images[which];
+ if(col < m_col_images.GetCount()) return m_col_images[col];
+ return NO_IMAGE;
+ }
+ wxTreeItemData *GetData() const { return m_data; }
+
+ // returns the current image for the item (depending on its
+ // selected/expanded/whatever state)
+ int GetCurrentImage() const;
+
+ void SetText( const wxString &text );
+ void SetText(size_t col, const wxString& text) // ALB
+ {
+ if(col < m_text.GetCount())
+ m_text[col] = text;
+ else if(col < m_owner->GetColumnCount()) {
+ int howmany = m_owner->GetColumnCount();
+ for(int i = m_text.GetCount(); i < howmany; ++i)
+ m_text.Add(wxEmptyString);
+ m_text[col] = text;
+ }
+ }
+ void SetImage(int image, wxTreeItemIcon which) { m_images[which] = image; }
+ void SetImage(size_t col, int image, wxTreeItemIcon which)
+ {
+ if(col == m_owner->GetMainColumn()) m_images[which] = image;
+ else if(col < m_col_images.GetCount())
+ m_col_images[col] = image;
+ else if(col < m_owner->GetColumnCount()) {
+ int howmany = m_owner->GetColumnCount();
+ for(int i = m_col_images.GetCount(); i < howmany; ++i)
+ m_col_images.Add(NO_IMAGE);
+ m_col_images[col] = image;
+ }
+ }
+
+ void SetData(wxTreeItemData *data) { m_data = data; }
+
+ void SetHasPlus(bool has = TRUE) { m_hasPlus = has; }
+
+ void SetBold(bool bold) { m_isBold = bold; }
+
+ int GetX() const { return m_x; }
+ int GetY() const { return m_y; }
+
+ void SetX(int x) { m_x = x; }
+ void SetY(int y) { m_y = y; }
+
+ int GetHeight() const { return m_height; }
+ int GetWidth() const { return m_width; }
+
+ void SetHeight(int h) { m_height = h; }
+ void SetWidth(int w) { m_width = w; }
+
+ wxTreeListItem *GetParent() const { return m_parent; }
+
+ // operations
+ // deletes all children notifying the treectrl about it if !NULL
+ // pointer given
+ void DeleteChildren(wxTreeListMainWindow *tree = NULL);
+
+ // get count of all children (and grand children if 'recursively')
+ size_t GetChildrenCount(bool recursively = TRUE) const;
+
+ void Insert(wxTreeListItem *child, size_t index)
+ { m_children.Insert(child, index); }
+
+ void GetSize( int &x, int &y, const wxTreeListMainWindow* );
+
+ // return the item at given position (or NULL if no item), onButton is
+ // TRUE if the point belongs to the item's button, otherwise it lies
+ // on the button's label
+ wxTreeListItem *HitTest( const wxPoint& point,
+ const wxTreeListMainWindow *,
+ int &flags,
+ int level );
+ wxTreeListItem *HitTest( const wxPoint& point,
+ const wxTreeListMainWindow *,
+ int &flags, int& column /*ALB*/,
+ int level );
+
+ void Expand() { m_isCollapsed = FALSE; }
+ void Collapse() { m_isCollapsed = TRUE; }
+
+ void SetHilight( bool set = TRUE ) { m_hasHilight = set; }
+
+ // status inquiries
+ bool HasChildren() const { return !m_children.IsEmpty(); }
+ bool IsSelected() const { return m_hasHilight != 0; }
+ bool IsExpanded() const { return !m_isCollapsed; }
+ bool HasPlus() const { return m_hasPlus || HasChildren(); }
+ bool IsBold() const { return m_isBold != 0; }
+
+ // attributes
+ // get them - may be NULL
+ wxTreeItemAttr *GetAttributes() const { return m_attr; }
+ // get them ensuring that the pointer is not NULL
+ wxTreeItemAttr& Attr()
+ {
+ if ( !m_attr )
+ {
+ m_attr = new wxTreeItemAttr;
+ m_ownsAttr = TRUE;
+ }
+ return *m_attr;
+ }
+ // set them
+ void SetAttributes(wxTreeItemAttr *attr)
+ {
+ if ( m_ownsAttr ) delete m_attr;
+ m_attr = attr;
+ m_ownsAttr = FALSE;
+ }
+ // set them and delete when done
+ void AssignAttributes(wxTreeItemAttr *attr)
+ {
+ SetAttributes(attr);
+ m_ownsAttr = TRUE;
+ }
+
+private:
+ wxTreeListMainWindow *m_owner; // control the item belongs to
+
+ // since there can be very many of these, we save size by chosing
+ // the smallest representation for the elements and by ordering
+ // the members to avoid padding.
+ wxArrayString m_text; // labels to be rendered for item
+
+ wxTreeItemData *m_data; // user-provided data
+
+ wxArrayTreeListItems m_children; // list of children
+ wxTreeListItem *m_parent; // parent of this item
+
+ wxTreeItemAttr *m_attr; // attributes???
+
+ // tree ctrl images for the normal, selected, expanded and
+ // expanded+selected states
+ short m_images[wxTreeItemIcon_Max];
+ wxArrayShort m_col_images; // images for the various columns (!= main)
+
+ wxCoord m_x; // (virtual) offset from top
+ wxCoord m_y; // (virtual) offset from left
+ short m_width; // width of this item
+ unsigned char m_height; // height of this item
+
+ // use bitfields to save size
+ int m_isCollapsed :1;
+ int m_hasHilight :1; // same as focused
+ int m_hasPlus :1; // used for item which doesn't have
+ // children but has a [+] button
+ int m_isBold :1; // render the label in bold font
+ int m_ownsAttr :1; // delete attribute when done
+};
+
+// ===========================================================================
+// implementation
+// ===========================================================================
+
+// ----------------------------------------------------------------------------
+// private functions
+// ----------------------------------------------------------------------------
+
+// translate the key or mouse event flags to the type of selection we're
+// dealing with
+static void EventFlagsToSelType(long style,
+ bool shiftDown,
+ bool ctrlDown,
+ bool &is_multiple,
+ bool &extended_select,
+ bool &unselect_others)
+{
+ is_multiple = (style & wxTR_MULTIPLE) != 0;
+ extended_select = shiftDown && is_multiple;
+ unselect_others = !(extended_select || (ctrlDown && is_multiple));
+}
+
+// ---------------------------------------------------------------------------
+// wxTreeListRenameTimer (internal)
+// ---------------------------------------------------------------------------
+
+wxTreeListRenameTimer::wxTreeListRenameTimer( wxTreeListMainWindow *owner )
+{
+ m_owner = owner;
+}
+
+void wxTreeListRenameTimer::Notify()
+{
+ m_owner->OnRenameTimer();
+}
+
+//-----------------------------------------------------------------------------
+// wxTreeListTextCtrl (internal)
+//-----------------------------------------------------------------------------
+
+BEGIN_EVENT_TABLE(wxTreeListTextCtrl,wxTextCtrl)
+ EVT_CHAR (wxTreeListTextCtrl::OnChar)
+ EVT_KEY_UP (wxTreeListTextCtrl::OnKeyUp)
+ EVT_KILL_FOCUS (wxTreeListTextCtrl::OnKillFocus)
+END_EVENT_TABLE()
+
+wxTreeListTextCtrl::wxTreeListTextCtrl( wxWindow *parent,
+ const wxWindowID id,
+ bool *accept,
+ wxString *res,
+ wxTreeListMainWindow *owner,
+ const wxString &value,
+ const wxPoint &pos,
+ const wxSize &size,
+ int style,
+ const wxValidator& validator,
+ const wxString &name )
+ : wxTextCtrl( parent, id, value, pos, size, style, validator, name )
+{
+ m_res = res;
+ m_accept = accept;
+ m_owner = owner;
+ (*m_accept) = FALSE;
+ (*m_res) = wxEmptyString;
+ m_startValue = value;
+ m_finished = FALSE;
+}
+
+void wxTreeListTextCtrl::OnChar( wxKeyEvent &event )
+{
+ if (event.m_keyCode == WXK_RETURN)
+ {
+ (*m_accept) = TRUE;
+ (*m_res) = GetValue();
+
+ if ((*m_res) != m_startValue)
+ m_owner->OnRenameAccept();
+
+ if (!wxPendingDelete.Member(this))
+ wxPendingDelete.Append(this);
+
+ m_finished = TRUE;
+ m_owner->SetFocus(); // This doesn't work. TODO.
+
+ return;
+ }
+ if (event.m_keyCode == WXK_ESCAPE)
+ {
+ (*m_accept) = FALSE;
+ (*m_res) = wxEmptyString;
+
+ if (!wxPendingDelete.Member(this))
+ wxPendingDelete.Append(this);
+
+ m_finished = TRUE;
+ m_owner->SetFocus(); // This doesn't work. TODO.
+
+ return;
+ }
+ event.Skip();
+}
+
+void wxTreeListTextCtrl::OnKeyUp( wxKeyEvent &event )
+{
+ if (m_finished)
+ {
+ event.Skip();
+ return;
+ }
+
+ // auto-grow the textctrl:
+ wxSize parentSize = m_owner->GetSize();
+ wxPoint myPos = GetPosition();
+ wxSize mySize = GetSize();
+ int sx, sy;
+ GetTextExtent(GetValue() + _T("M"), &sx, &sy);
+ if (myPos.x + sx > parentSize.x) sx = parentSize.x - myPos.x;
+ if (mySize.x > sx) sx = mySize.x;
+ SetSize(sx, -1);
+
+ event.Skip();
+}
+
+void wxTreeListTextCtrl::OnKillFocus( wxFocusEvent &event )
+{
+ if (m_finished)
+ {
+ event.Skip();
+ return;
+ }
+
+ if (!wxPendingDelete.Member(this))
+ wxPendingDelete.Append(this);
+
+ (*m_accept) = TRUE;
+ (*m_res) = GetValue();
+
+ if ((*m_res) != m_startValue)
+ m_owner->OnRenameAccept();
+}
+
+//-----------------------------------------------------------------------------
+// wxTreeListHeaderWindow
+//-----------------------------------------------------------------------------
+
+IMPLEMENT_DYNAMIC_CLASS(wxTreeListHeaderWindow,wxWindow);
+
+BEGIN_EVENT_TABLE(wxTreeListHeaderWindow,wxWindow)
+ EVT_PAINT (wxTreeListHeaderWindow::OnPaint)
+ EVT_MOUSE_EVENTS (wxTreeListHeaderWindow::OnMouse)
+ EVT_SET_FOCUS (wxTreeListHeaderWindow::OnSetFocus)
+END_EVENT_TABLE()
+
+void wxTreeListHeaderWindow::Init()
+{
+ m_currentCursor = (wxCursor *) NULL;
+ m_isDragging = FALSE;
+ m_dirty = FALSE;
+ m_total_col_width = 0;
+}
+
+wxTreeListHeaderWindow::wxTreeListHeaderWindow()
+{
+ Init();
+
+ m_owner = (wxTreeListMainWindow *) NULL;
+ m_resizeCursor = (wxCursor *) NULL;
+}
+
+wxTreeListHeaderWindow::wxTreeListHeaderWindow( wxWindow *win,
+ wxWindowID id,
+ wxTreeListMainWindow *owner,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxString &name )
+ : wxWindow( win, id, pos, size, style, name )
+{
+ Init();
+
+ m_owner = owner;
+ m_resizeCursor = new wxCursor(wxCURSOR_SIZEWE);
+
+ SetBackgroundColour(wxSystemSettings::GetSystemColour(
+ wxSYS_COLOUR_BTNFACE));
+}
+
+wxTreeListHeaderWindow::~wxTreeListHeaderWindow()
+{
+ delete m_resizeCursor;
+}
+
+void wxTreeListHeaderWindow::DoDrawRect( wxDC *dc, int x, int y, int w, int h )
+{
+#ifdef __WXGTK__
+ GtkStateType state = m_parent->IsEnabled() ? GTK_STATE_NORMAL
+ : GTK_STATE_INSENSITIVE;
+
+ x = dc->XLOG2DEV( x );
+
+ gtk_paint_box (m_wxwindow->style, GTK_PIZZA(m_wxwindow)->bin_window,
+ state, GTK_SHADOW_OUT,
+ (GdkRectangle*) NULL, m_wxwindow, "button",
+ x-1, y-1, w+2, h+2);
+#elif defined( __WXMAC__ )
+ const int m_corner = 1;
+
+ dc->SetBrush( *wxTRANSPARENT_BRUSH );
+
+ dc->SetPen( wxPen(wxSystemSettings::GetSystemColour(
+ wxSYS_COLOUR_BTNSHADOW), 1, wxSOLID));
+ dc->DrawLine( x+w-m_corner+1, y, x+w, y+h ); // right (outer)
+ dc->DrawRectangle( x, y+h, w+1, 1 ); // bottom (outer)
+
+ wxPen pen( wxColour( 0x88 , 0x88 , 0x88 ), 1, wxSOLID );
+
+ dc->SetPen( pen );
+ dc->DrawLine( x+w-m_corner, y, x+w-1, y+h ); // right (inner)
+ dc->DrawRectangle( x+1, y+h-1, w-2, 1 ); // bottom (inner)
+
+ dc->SetPen( *wxWHITE_PEN );
+ dc->DrawRectangle( x, y, w-m_corner+1, 1 ); // top (outer)
+ dc->DrawRectangle( x, y, 1, h ); // left (outer)
+ dc->DrawLine( x, y+h-1, x+1, y+h-1 );
+ dc->DrawLine( x+w-1, y, x+w-1, y+1 );
+#else // !GTK, !Mac
+ const int m_corner = 1;
+
+ dc->SetBrush( *wxTRANSPARENT_BRUSH );
+
+ dc->SetPen( *wxBLACK_PEN );
+ dc->DrawLine( x+w-m_corner+1, y, x+w, y+h ); // right (outer)
+ dc->DrawRectangle( x, y+h, w+1, 1 ); // bottom (outer)
+
+ wxPen pen(wxSystemSettings::GetSystemColour(
+ wxSYS_COLOUR_BTNSHADOW ), 1, wxSOLID);
+
+ dc->SetPen( pen );
+ dc->DrawLine( x+w-m_corner, y, x+w-1, y+h ); // right (inner)
+ dc->DrawRectangle( x+1, y+h-1, w-2, 1 ); // bottom (inner)
+
+ dc->SetPen( *wxWHITE_PEN );
+ dc->DrawRectangle( x, y, w-m_corner+1, 1 ); // top (outer)
+ dc->DrawRectangle( x, y, 1, h ); // left (outer)
+ dc->DrawLine( x, y+h-1, x+1, y+h-1 );
+ dc->DrawLine( x+w-1, y, x+w-1, y+1 );
+#endif
+}
+
+// shift the DC origin to match the position of the main window horz
+// scrollbar: this allows us to always use logical coords
+void wxTreeListHeaderWindow::AdjustDC(wxDC& dc)
+{
+ int xpix;
+ m_owner->GetScrollPixelsPerUnit( &xpix, NULL );
+
+ int x;
+ m_owner->GetViewStart( &x, NULL );
+
+ // account for the horz scrollbar offset
+ dc.SetDeviceOrigin( -x * xpix, 0 );
+}
+
+void wxTreeListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
+{
+ static const int HEADER_OFFSET_X = 1, HEADER_OFFSET_Y = 1;
+#ifdef __WXGTK__
+ wxClientDC dc( this );
+#else
+ wxPaintDC dc( this );
+#endif
+
+ PrepareDC( dc );
+ AdjustDC( dc );
+
+ dc.BeginDrawing();
+
+ dc.SetFont( GetFont() );
+
+ // width and height of the entire header window
+ int w, h;
+ GetClientSize( &w, &h );
+ m_owner->CalcUnscrolledPosition(w, 0, &w, NULL);
+
+ dc.SetBackgroundMode(wxTRANSPARENT);
+
+ // do *not* use the listctrl colour for headers - one day we will have a
+ // function to set it separately
+ //dc.SetTextForeground( *wxBLACK );
+ dc.SetTextForeground(wxSystemSettings::
+ GetSystemColour( wxSYS_COLOUR_WINDOWTEXT ));
+
+ int x = HEADER_OFFSET_X;
+
+ int numColumns = GetColumnCount();
+ for ( int i = 0; i < numColumns && x < w; i++ )
+ {
+ wxTreeListColumnInfo& column = GetColumn(i);
+ int wCol = column.GetWidth();
+
+ // the width of the rect to draw: make it smaller to fit entirely
+ // inside the column rect
+ int cw = wCol - 2;
+
+ dc.SetPen( *wxWHITE_PEN );
+
+ DoDrawRect( &dc, x, HEADER_OFFSET_Y, cw, h-2 );
+
+ // if we have an image, draw it on the right of the label
+ int image = column.GetImage(); //item.m_image;
+ int ix = -2, iy = 0;
+ wxImageList* imageList = m_owner->GetImageList();
+ if(image != -1) {
+ if(imageList) {
+ imageList->GetSize(image, ix, iy);
+ }
+ //else: ignore the column image
+ }
+
+ // extra margins around the text label
+ static const int EXTRA_WIDTH = 3;
+ static const int EXTRA_HEIGHT = 4;
+
+ int text_width = 0;
+ int text_x = x;
+ int image_offset = cw - ix - 1;
+
+ switch(column.GetAlignment()) {
+ case wxTL_ALIGN_LEFT:
+ text_x += EXTRA_WIDTH;
+ cw -= ix + 2;
+ break;
+ case wxTL_ALIGN_RIGHT:
+ dc.GetTextExtent(column.GetText(), &text_width, NULL);
+ text_x += cw - text_width - EXTRA_WIDTH;
+ image_offset = 0;
+ break;
+ case wxTL_ALIGN_CENTER:
+ dc.GetTextExtent(column.GetText(), &text_width, NULL);
+ text_x += (cw - text_width)/2 + ix + 2;
+ image_offset = (cw - text_width - ix - 2)/2;
+ break;
+ }
+
+ // draw the image
+ if(image != -1 && imageList) {
+ imageList->Draw(image, dc, x + image_offset/*cw - ix - 1*/,
+ HEADER_OFFSET_Y + (h - 4 - iy)/2,
+ wxIMAGELIST_DRAW_TRANSPARENT);
+ }
+
+ // draw the text clipping it so that it doesn't overwrite the column
+ // boundary
+ wxDCClipper clipper(dc, x, HEADER_OFFSET_Y, cw, h - 4 );
+
+ dc.DrawText( column.GetText(),
+ text_x, HEADER_OFFSET_Y + EXTRA_HEIGHT );
+
+ x += wCol;
+ }
+
+ dc.EndDrawing();
+}
+
+void wxTreeListHeaderWindow::DrawCurrent()
+{
+ int x1 = m_currentX;
+ int y1 = 0;
+ ClientToScreen( &x1, &y1 );
+
+ int x2 = m_currentX-1;
+#ifdef __WXMSW__
+ ++x2; // but why ?
+#endif
+ int y2 = 0;
+ m_owner->GetClientSize( NULL, &y2 );
+ m_owner->ClientToScreen( &x2, &y2 );
+
+ wxScreenDC dc;
+ dc.SetLogicalFunction( wxINVERT );
+ dc.SetPen( wxPen( *wxBLACK, 2, wxSOLID ) );
+ dc.SetBrush( *wxTRANSPARENT_BRUSH );
+
+ AdjustDC(dc);
+
+ dc.DrawLine( x1, y1, x2, y2 );
+
+ dc.SetLogicalFunction( wxCOPY );
+
+ dc.SetPen( wxNullPen );
+ dc.SetBrush( wxNullBrush );
+}
+
+void wxTreeListHeaderWindow::OnMouse( wxMouseEvent &event )
+{
+ // we want to work with logical coords
+ int x;
+ m_owner->CalcUnscrolledPosition(event.GetX(), 0, &x, NULL);
+ int y = event.GetY();
+
+ if (m_isDragging)
+ {
+ SendListEvent(wxEVT_COMMAND_LIST_COL_DRAGGING,
+ event.GetPosition());
+
+ // we don't draw the line beyond our window, but we allow dragging it
+ // there
+ int w = 0;
+ GetClientSize( &w, NULL );
+ m_owner->CalcUnscrolledPosition(w, 0, &w, NULL);
+ w -= 6;
+
+ // erase the line if it was drawn
+ if ( m_currentX < w )
+ DrawCurrent();
+
+ if (event.ButtonUp())
+ {
+ ReleaseMouse();
+ m_isDragging = FALSE;
+ m_dirty = TRUE;
+ SetColumnWidth( m_column, m_currentX - m_minX );
+ Refresh();
+ SendListEvent(wxEVT_COMMAND_LIST_COL_END_DRAG,
+ event.GetPosition());
+ }
+ else
+ {
+ if (x > m_minX + 7)
+ m_currentX = x;
+ else
+ m_currentX = m_minX + 7;
+
+ // draw in the new location
+ if ( m_currentX < w )
+ DrawCurrent();
+ }
+ }
+ else // not dragging
+ {
+ m_minX = 0;
+ bool hit_border = FALSE;
+
+ // end of the current column
+ int xpos = 0;
+
+ // find the column where this event occured
+ int countCol = GetColumnCount();
+ for (int col = 0; col < countCol; col++)
+ {
+ xpos += GetColumnWidth( col );
+ m_column = col;
+
+ if ( (abs(x-xpos) < 3) && (y < 22) )
+ {
+ // near the column border
+ hit_border = TRUE;
+ break;
+ }
+
+ if ( x < xpos )
+ {
+ // inside the column
+ break;
+ }
+
+ m_minX = xpos;
+ }
+
+ if (event.LeftDown() || event.RightUp())
+ {
+ if (hit_border && event.LeftDown())
+ {
+ m_isDragging = TRUE;
+ m_currentX = x;
+ DrawCurrent();
+ CaptureMouse();
+ SendListEvent(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG,
+ event.GetPosition());
+ }
+ else // click on a column
+ {
+ SendListEvent( event.LeftDown()
+ ? wxEVT_COMMAND_LIST_COL_CLICK
+ : wxEVT_COMMAND_LIST_COL_RIGHT_CLICK,
+ event.GetPosition());
+ }
+ }
+ else if (event.Moving())
+ {
+ bool setCursor;
+ if (hit_border)
+ {
+ setCursor = m_currentCursor == wxSTANDARD_CURSOR;
+ m_currentCursor = m_resizeCursor;
+ }
+ else
+ {
+ setCursor = m_currentCursor != wxSTANDARD_CURSOR;
+ m_currentCursor = wxSTANDARD_CURSOR;
+ }
+
+ if ( setCursor )
+ SetCursor(*m_currentCursor);
+ }
+ }
+}
+
+void wxTreeListHeaderWindow::OnSetFocus( wxFocusEvent &WXUNUSED(event) )
+{
+ m_owner->SetFocus();
+}
+
+void wxTreeListHeaderWindow::SendListEvent(wxEventType type, wxPoint pos)
+{
+ wxWindow *parent = GetParent();
+ wxListEvent le( type, parent->GetId() );
+ le.SetEventObject( parent );
+ le.m_pointDrag = pos;
+
+ // the position should be relative to the parent window, not
+ // this one for compatibility with MSW and common sense: the
+ // user code doesn't know anything at all about this header
+ // window, so why should it get positions relative to it?
+ le.m_pointDrag.y -= GetSize().y;
+
+ le.m_col = m_column;
+ parent->GetEventHandler()->ProcessEvent( le );
+}
+
+inline
+void wxTreeListHeaderWindow::AddColumn(const wxTreeListColumnInfo& col)
+{
+ m_columns.Add(col);
+ m_total_col_width += col.GetWidth();
+ //m_owner->GetHeaderWindow()->Refresh();
+ //m_dirty = TRUE;
+ m_owner->AdjustMyScrollbars();
+ m_owner->m_dirty = TRUE;
+ Refresh();
+}
+
+inline
+void wxTreeListHeaderWindow::SetColumnWidth(size_t column, size_t width)
+{
+ if(column < GetColumnCount()) {
+ m_total_col_width -= m_columns[column].GetWidth();
+ m_columns[column].SetWidth(width);
+ m_total_col_width += width;
+ m_owner->AdjustMyScrollbars();
+ m_owner->m_dirty = TRUE;
+ //m_dirty = TRUE;
+ Refresh();
+ }
+}
+
+
+inline
+void wxTreeListHeaderWindow::InsertColumn(size_t before,
+ const wxTreeListColumnInfo& col)
+{
+ wxCHECK_RET(before < GetColumnCount(), wxT("Invalid column index"));
+ m_columns.Insert(col, before);
+ m_total_col_width += col.GetWidth();
+ //m_dirty = TRUE;
+ //m_owner->GetHeaderWindow()->Refresh();
+ m_owner->AdjustMyScrollbars();
+ m_owner->m_dirty = TRUE;
+ Refresh();
+}
+
+inline
+void wxTreeListHeaderWindow::RemoveColumn(size_t column)
+{
+ wxCHECK_RET(column < GetColumnCount(), wxT("Invalid column"));
+ m_total_col_width -= m_columns[column].GetWidth();
+ m_columns.RemoveAt(column);
+ //m_dirty = TRUE;
+ m_owner->AdjustMyScrollbars();
+ m_owner->m_dirty = TRUE;
+ Refresh();
+}
+
+inline
+void wxTreeListHeaderWindow::SetColumn(size_t column,
+ const wxTreeListColumnInfo& info)
+{
+ wxCHECK_RET(column < GetColumnCount(), wxT("Invalid column"));
+ size_t w = m_columns[column].GetWidth();
+ m_columns[column] = info;
+ //m_owner->GetHeaderWindow()->Refresh();
+ //m_dirty = TRUE;
+ if(w != info.GetWidth()) {
+ m_total_col_width += info.GetWidth() - w;
+ m_owner->AdjustMyScrollbars();
+ m_owner->m_dirty = TRUE;
+ }
+ Refresh();
+}
+
+// ---------------------------------------------------------------------------
+// wxTreeListItem
+// ---------------------------------------------------------------------------
+
+wxTreeListItem::wxTreeListItem(wxTreeListMainWindow *owner,
+ wxTreeListItem *parent,
+ const wxArrayString& text,
+ int image, int selImage,
+ wxTreeItemData *data)
+ : m_text(text)
+{
+ m_images[wxTreeItemIcon_Normal] = image;
+ m_images[wxTreeItemIcon_Selected] = selImage;
+ m_images[wxTreeItemIcon_Expanded] = NO_IMAGE;
+ m_images[wxTreeItemIcon_SelectedExpanded] = NO_IMAGE;
+
+ m_data = data;
+ m_x = m_y = 0;
+
+ m_isCollapsed = TRUE;
+ m_hasHilight = FALSE;
+ m_hasPlus = FALSE;
+ m_isBold = FALSE;
+
+ m_owner = owner;
+
+ m_parent = parent;
+
+ m_attr = (wxTreeItemAttr *)NULL;
+ m_ownsAttr = FALSE;
+
+ // We don't know the height here yet.
+ m_width = 0;
+ m_height = 0;
+}
+
+wxTreeListItem::~wxTreeListItem()
+{
+ delete m_data;
+
+ if (m_ownsAttr) delete m_attr;
+
+ wxASSERT_MSG( m_children.IsEmpty(),
+ wxT("please call DeleteChildren() before deleting the item") );
+}
+
+void wxTreeListItem::DeleteChildren(wxTreeListMainWindow *tree)
+{
+ size_t count = m_children.Count();
+ for ( size_t n = 0; n < count; n++ )
+ {
+ wxTreeListItem *child = m_children[n];
+ if (tree)
+ tree->SendDeleteEvent(child);
+
+ child->DeleteChildren(tree);
+ delete child;
+ }
+
+ m_children.Empty();
+}
+
+void wxTreeListItem::SetText( const wxString &text )
+{
+ if(m_text.GetCount() > 0) m_text[0] = text;
+ else {
+ m_text.Add(text);
+ }
+}
+
+size_t wxTreeListItem::GetChildrenCount(bool recursively) const
+{
+ size_t count = m_children.Count();
+ if ( !recursively )
+ return count;
+
+ size_t total = count;
+ for (size_t n = 0; n < count; ++n)
+ {
+ total += m_children[n]->GetChildrenCount();
+ }
+
+ return total;
+}
+
+void wxTreeListItem::GetSize( int &x, int &y,
+ const wxTreeListMainWindow *theButton )
+{
+ int bottomY=m_y+theButton->GetLineHeight(this);
+ if ( y < bottomY ) y = bottomY;
+ int width = m_x + m_width;
+ if ( x < width ) x = width;
+
+ if (IsExpanded())
+ {
+ size_t count = m_children.Count();
+ for ( size_t n = 0; n < count; ++n )
+ {
+ m_children[n]->GetSize( x, y, theButton );
+ }
+ }
+}
+
+wxTreeListItem *wxTreeListItem::HitTest(const wxPoint& point,
+ const wxTreeListMainWindow *theCtrl,
+ int &flags,
+ int level)
+{
+ // for a hidden root node, don't evaluate it, but do evaluate children
+ if ( !(level == 0 && theCtrl->HasFlag(wxTR_HIDE_ROOT)) )
+ {
+ // evaluate the item
+ int h = theCtrl->GetLineHeight(this);
+ if ((point.y > m_y) && (point.y < m_y + h))
+ {
+ int y_mid = m_y + h/2;
+ if (point.y < y_mid )
+ flags |= wxTREE_HITTEST_ONITEMUPPERPART;
+ else
+ flags |= wxTREE_HITTEST_ONITEMLOWERPART;
+
+ // 5 is the size of the plus sign
+ int xCross = m_x - theCtrl->GetSpacing();
+ if ((point.x > xCross-5) && (point.x < xCross+5) &&
+ (point.y > y_mid-5) && (point.y < y_mid+5) &&
+ HasPlus() && theCtrl->HasButtons() )
+ {
+ flags |= wxTREE_HITTEST_ONITEMBUTTON;
+ return this;
+ }
+
+ if ((point.x >= m_x) && (point.x <= m_x+m_width))
+ {
+ int image_w = -1;
+ int image_h;
+
+ //assuming every image (normal and selected) has the same size!
+ if ( (GetImage() != NO_IMAGE) && theCtrl->m_imageListNormal )
+ theCtrl->m_imageListNormal->GetSize(GetImage(),
+ image_w, image_h);
+
+ if ((image_w != -1) && (point.x <= m_x + image_w + 1))
+ flags |= wxTREE_HITTEST_ONITEMICON;
+ else
+ flags |= wxTREE_HITTEST_ONITEMLABEL;
+
+ return this;
+ }
+
+ if (point.x < m_x)
+ flags |= wxTREE_HITTEST_ONITEMINDENT;
+ if (point.x > m_x+m_width)
+ flags |= wxTREE_HITTEST_ONITEMRIGHT;
+
+ return this;
+ }
+
+ // if children are expanded, fall through to evaluate them
+ if (m_isCollapsed) return (wxTreeListItem*) NULL;
+ }
+
+ // evaluate children
+ size_t count = m_children.Count();
+ for ( size_t n = 0; n < count; n++ )
+ {
+ wxTreeListItem *res = m_children[n]->HitTest(point, theCtrl,
+ flags, level + 1);
+ if ( res != NULL )
+ return res;
+ }
+
+ return (wxTreeListItem*) NULL;
+}
+
+// ALB
+wxTreeListItem *wxTreeListItem::HitTest(const wxPoint& point,
+ const wxTreeListMainWindow *theCtrl,
+ int &flags, int& column, int level)
+{
+ column = -1;
+ wxTreeListItem* res = HitTest(point, theCtrl, flags, level);
+
+ if(!res) return res;
+ if(flags & wxTREE_HITTEST_ONITEMINDENT) {
+ int x = 0;
+ for(size_t i = 0; i < theCtrl->GetMainColumn(); ++i) {
+ int w = theCtrl->m_owner->GetHeaderWindow()->GetColumnWidth(i);
+ if(point.x >= x && point.x < x+w) {
+ flags ^= wxTREE_HITTEST_ONITEMINDENT;
+ flags |= wxTREE_HITTEST_ONITEMCOLUMN;
+ column = i;
+ return res;
+ }
+ }
+ }
+ else if(flags & wxTREE_HITTEST_ONITEMRIGHT) {
+ int x = 0;
+ size_t i;
+ for(i = 0; i < theCtrl->GetMainColumn()+1; ++i) {
+ x += theCtrl->m_owner->GetHeaderWindow()->GetColumnWidth(i);
+ }
+ for(i = theCtrl->GetMainColumn()+1;
+ i < theCtrl->GetColumnCount(); ++i) {
+ int w = theCtrl->m_owner->GetHeaderWindow()->GetColumnWidth(i);
+ if(point.x >= x && point.x < x+w) {
+ flags ^= wxTREE_HITTEST_ONITEMRIGHT;
+ flags |= wxTREE_HITTEST_ONITEMCOLUMN;
+ column = i;
+ return res;
+ }
+ }
+ }
+
+ return res;
+}
+
+
+int wxTreeListItem::GetCurrentImage() const
+{
+ int image = NO_IMAGE;
+ if ( IsExpanded() )
+ {
+ if ( IsSelected() )
+ {
+ image = GetImage(wxTreeItemIcon_SelectedExpanded);
+ }
+
+ if ( image == NO_IMAGE )
+ {
+ // we usually fall back to the normal item, but try just the
+ // expanded one (and not selected) first in this case
+ image = GetImage(wxTreeItemIcon_Expanded);
+ }
+ }
+ else // not expanded
+ {
+ if ( IsSelected() )
+ image = GetImage(wxTreeItemIcon_Selected);
+ }
+
+ // maybe it doesn't have the specific image we want,
+ // try the default one instead
+ if ( image == NO_IMAGE ) image = GetImage();
+
+ return image;
+}
+
+// ---------------------------------------------------------------------------
+// wxTreeListMainWindow implementation
+// ---------------------------------------------------------------------------
+
+IMPLEMENT_DYNAMIC_CLASS(wxTreeListMainWindow, wxScrolledWindow)
+
+BEGIN_EVENT_TABLE(wxTreeListMainWindow, wxScrolledWindow)
+ EVT_PAINT (wxTreeListMainWindow::OnPaint)
+ EVT_MOUSE_EVENTS (wxTreeListMainWindow::OnMouse)
+ EVT_CHAR (wxTreeListMainWindow::OnChar)
+ EVT_SET_FOCUS (wxTreeListMainWindow::OnSetFocus)
+ EVT_KILL_FOCUS (wxTreeListMainWindow::OnKillFocus)
+ EVT_IDLE (wxTreeListMainWindow::OnIdle)
+ //EVT_SIZE (wxTreeListMainWindow::OnSize)
+ EVT_SCROLLWIN (wxTreeListMainWindow::OnScroll)
+END_EVENT_TABLE()
+
+
+// ---------------------------------------------------------------------------
+// construction/destruction
+// ---------------------------------------------------------------------------
+
+void wxTreeListMainWindow::Init()
+{
+ m_current = m_key_current = m_anchor = (wxTreeListItem *) NULL;
+ m_hasFocus = FALSE;
+ m_dirty = FALSE;
+
+ m_lineHeight = 10;
+ m_indent = 9;
+ m_spacing = 9;
+ m_linespacing = 4;
+
+ m_hilightBrush = new wxBrush
+ (
+ wxSystemSettings::GetSystemColour
+ (
+ wxSYS_COLOUR_HIGHLIGHT
+ ),
+ wxSOLID
+ );
+
+ m_hilightUnfocusedBrush = new wxBrush
+ (
+ wxSystemSettings::GetSystemColour
+ (
+ wxSYS_COLOUR_BTNSHADOW
+ ),
+ wxSOLID
+ );
+
+ m_imageListNormal = m_imageListButtons =
+ m_imageListState = (wxImageList *) NULL;
+ m_ownsImageListNormal = m_ownsImageListButtons =
+ m_ownsImageListState = FALSE;
+
+ m_dragCount = 0;
+ m_isDragging = FALSE;
+ m_dropTarget = m_oldSelection = (wxTreeListItem *)NULL;
+
+ m_renameTimer = new wxTreeListRenameTimer( this );
+ m_lastOnSame = FALSE;
+
+ m_normalFont = wxSystemSettings::GetSystemFont( wxSYS_DEFAULT_GUI_FONT );
+ m_boldFont = wxFont( m_normalFont.GetPointSize(),
+ m_normalFont.GetFamily(),
+ m_normalFont.GetStyle(),
+ wxBOLD,
+ m_normalFont.GetUnderlined());
+}
+
+
+static const int HEADER_HEIGHT = 23;
+
+bool wxTreeListMainWindow::Create(wxTreeListCtrl *parent,
+ wxWindowID id,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxValidator &validator,
+ const wxString& name )
+{
+#ifdef __WXMAC__
+ int major,minor;
+ wxGetOsVersion( &major, &minor );
+
+ if (style & wxTR_HAS_BUTTONS) style |= wxTR_MAC_BUTTONS;
+ if (style & wxTR_HAS_BUTTONS) style &= ~wxTR_HAS_BUTTONS;
+ style &= ~wxTR_LINES_AT_ROOT;
+ style |= wxTR_NO_LINES;
+ if (major < 10)
+ style |= wxTR_ROW_LINES;
+#endif
+
+ wxScrolledWindow::Create( parent, id, pos, size,
+ style|wxHSCROLL|wxVSCROLL, name );
+
+ // If the tree display has no buttons, but does have
+ // connecting lines, we can use a narrower layout.
+ // It may not be a good idea to force this...
+ if (!HasButtons() && !HasFlag(wxTR_NO_LINES))
+ {
+ m_indent= 10;
+ m_spacing = 10;
+ }
+
+#if wxUSE_VALIDATORS
+ SetValidator( validator );
+#endif
+
+ SetBackgroundColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_LISTBOX ) );
+
+// #ifdef __WXMSW__
+// m_dottedPen = wxPen( "black", 0, wxDOT ); // too slow under XFree86
+// #else
+ m_dottedPen = wxPen( wxT("grey"), 0, 0 );
+// #endif
+
+ // ALB
+ m_owner = parent;
+ m_main_column = 0;
+
+ return TRUE;
+}
+
+wxTreeListMainWindow::~wxTreeListMainWindow()
+{
+ delete m_hilightBrush;
+ delete m_hilightUnfocusedBrush;
+
+ DeleteAllItems();
+
+ delete m_renameTimer;
+ if (m_ownsImageListNormal) delete m_imageListNormal;
+ if (m_ownsImageListState) delete m_imageListState;
+ if (m_ownsImageListButtons) delete m_imageListButtons;
+}
+
+
+
+//-----------------------------------------------------------------------------
+// accessors
+//-----------------------------------------------------------------------------
+
+inline
+size_t wxTreeListMainWindow::GetCount() const
+{
+ return m_anchor == NULL ? 0u : m_anchor->GetChildrenCount();
+}
+
+inline
+void wxTreeListMainWindow::SetIndent(unsigned int indent)
+{
+ m_indent = indent;
+ m_dirty = TRUE;
+}
+
+inline
+void wxTreeListMainWindow::SetSpacing(unsigned int spacing)
+{
+ m_spacing = spacing;
+ m_dirty = TRUE;
+}
+
+inline
+void wxTreeListMainWindow::SetLineSpacing(unsigned int spacing)
+{
+ m_linespacing = spacing;
+ m_dirty = TRUE;
+ CalculateLineHeight();
+}
+
+inline
+size_t wxTreeListMainWindow::GetChildrenCount(const wxTreeItemId& item,
+ bool recursively)
+{
+ wxCHECK_MSG( item.IsOk(), 0u, wxT("invalid tree item") );
+
+ return ((wxTreeListItem*) item.m_pItem)->GetChildrenCount(recursively);
+}
+
+void wxTreeListMainWindow::SetWindowStyle(const long styles)
+{
+ // right now, just sets the styles. Eventually, we may
+ // want to update the inherited styles, but right now
+ // none of the parents has updatable styles
+ m_windowStyle = styles;
+ m_dirty = TRUE;
+}
+
+//-----------------------------------------------------------------------------
+// functions to work with tree items
+//-----------------------------------------------------------------------------
+
+inline
+int wxTreeListMainWindow::GetItemImage(const wxTreeItemId& item, size_t column,
+ wxTreeItemIcon which) const
+{
+ wxCHECK_MSG( item.IsOk(), -1, wxT("invalid tree item") );
+
+ return ((wxTreeListItem*) item.m_pItem)->GetImage(column, which);
+}
+
+inline
+wxTreeItemData *wxTreeListMainWindow::GetItemData(const wxTreeItemId& item)
+ const
+{
+ wxCHECK_MSG( item.IsOk(), NULL, wxT("invalid tree item") );
+
+ return ((wxTreeListItem*) item.m_pItem)->GetData();
+}
+
+inline
+bool wxTreeListMainWindow::GetItemBold(const wxTreeItemId& item) const
+{
+ wxCHECK_MSG(item.IsOk(), FALSE, wxT("invalid tree item"));
+ return ((wxTreeListItem *)item.m_pItem)->IsBold();
+}
+
+inline
+wxColour wxTreeListMainWindow::GetItemTextColour(const wxTreeItemId& item)
+ const
+{
+ wxCHECK_MSG( item.IsOk(), wxNullColour, wxT("invalid tree item") );
+
+ wxTreeListItem *pItem = (wxTreeListItem*) item.m_pItem;
+ return pItem->Attr().GetTextColour();
+}
+
+inline
+wxColour wxTreeListMainWindow::GetItemBackgroundColour(
+ const wxTreeItemId& item) const
+{
+ wxCHECK_MSG( item.IsOk(), wxNullColour, wxT("invalid tree item") );
+
+ wxTreeListItem *pItem = (wxTreeListItem*) item.m_pItem;
+ return pItem->Attr().GetBackgroundColour();
+}
+
+inline
+wxFont wxTreeListMainWindow::GetItemFont(const wxTreeItemId& item) const
+{
+ wxCHECK_MSG( item.IsOk(), wxNullFont, wxT("invalid tree item") );
+
+ wxTreeListItem *pItem = (wxTreeListItem*) item.m_pItem;
+ return pItem->Attr().GetFont();
+}
+
+
+
+inline
+void wxTreeListMainWindow::SetItemImage(const wxTreeItemId& item,
+ size_t column,
+ int image, wxTreeItemIcon which)
+{
+ wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
+
+ wxTreeListItem *pItem = (wxTreeListItem*) item.m_pItem;
+ pItem->SetImage(column, image, which);
+
+ wxClientDC dc(this);
+ CalculateSize(pItem, dc);
+ RefreshLine(pItem);
+}
+
+inline
+void wxTreeListMainWindow::SetItemData(const wxTreeItemId& item,
+ wxTreeItemData *data)
+{
+ wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
+
+ ((wxTreeListItem*) item.m_pItem)->SetData(data);
+}
+
+inline
+void wxTreeListMainWindow::SetItemHasChildren(const wxTreeItemId& item,
+ bool has)
+{
+ wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
+
+ wxTreeListItem *pItem = (wxTreeListItem*) item.m_pItem;
+ pItem->SetHasPlus(has);
+ RefreshLine(pItem);
+}
+
+inline
+void wxTreeListMainWindow::SetItemBold(const wxTreeItemId& item, bool bold)
+{
+ wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
+
+ // avoid redrawing the tree if no real change
+ wxTreeListItem *pItem = (wxTreeListItem*) item.m_pItem;
+ if ( pItem->IsBold() != bold )
+ {
+ pItem->SetBold(bold);
+ RefreshLine(pItem);
+ }
+}
+
+inline
+void wxTreeListMainWindow::SetItemTextColour(const wxTreeItemId& item,
+ const wxColour& col)
+{
+ wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
+
+ wxTreeListItem *pItem = (wxTreeListItem*) item.m_pItem;
+ pItem->Attr().SetTextColour(col);
+ RefreshLine(pItem);
+}
+
+inline
+void wxTreeListMainWindow::SetItemBackgroundColour(const wxTreeItemId& item,
+ const wxColour& col)
+{
+ wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
+
+ wxTreeListItem *pItem = (wxTreeListItem*) item.m_pItem;
+ pItem->Attr().SetBackgroundColour(col);
+ RefreshLine(pItem);
+}
+
+inline
+void wxTreeListMainWindow::SetItemFont(const wxTreeItemId& item,
+ const wxFont& font)
+{
+ wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
+
+ wxTreeListItem *pItem = (wxTreeListItem*) item.m_pItem;
+ pItem->Attr().SetFont(font);
+ RefreshLine(pItem);
+}
+
+inline
+bool wxTreeListMainWindow::SetFont( const wxFont &font )
+{
+ wxScrolledWindow::SetFont(font);
+
+ m_normalFont = font ;
+ m_boldFont = wxFont( m_normalFont.GetPointSize(),
+ m_normalFont.GetFamily(),
+ m_normalFont.GetStyle(),
+ wxBOLD,
+ m_normalFont.GetUnderlined());
+
+ return TRUE;
+}
+
+
+// ----------------------------------------------------------------------------
+// item status inquiries
+// ----------------------------------------------------------------------------
+
+inline
+bool wxTreeListMainWindow::IsVisible(const wxTreeItemId& item) const
+{
+ wxCHECK_MSG( item.IsOk(), FALSE, wxT("invalid tree item") );
+
+ // An item is only visible if it's not a descendant of a collapsed item
+ wxTreeListItem *pItem = (wxTreeListItem*) item.m_pItem;
+ wxTreeListItem* parent = pItem->GetParent();
+ while (parent)
+ {
+ if (!parent->IsExpanded())
+ return FALSE;
+ parent = parent->GetParent();
+ }
+
+ int startX, startY;
+ GetViewStart(& startX, & startY);
+
+ wxSize clientSize = GetClientSize();
+
+ wxRect rect;
+ if (!GetBoundingRect(item, rect))
+ return FALSE;
+ if (rect.GetWidth() == 0 || rect.GetHeight() == 0)
+ return FALSE;
+ if (rect.GetBottom() < 0 || rect.GetTop() > clientSize.y)
+ return FALSE;
+ if (rect.GetRight() < 0 || rect.GetLeft() > clientSize.x)
+ return FALSE;
+
+ return TRUE;
+}
+
+inline
+bool wxTreeListMainWindow::ItemHasChildren(const wxTreeItemId& item) const
+{
+ wxCHECK_MSG( item.IsOk(), FALSE, wxT("invalid tree item") );
+
+ // consider that the item does have children if it has the "+" button: it
+ // might not have them (if it had never been expanded yet) but then it
+ // could have them as well and it's better to err on this side rather than
+ // disabling some operations which are restricted to the items with
+ // children for an item which does have them
+ return ((wxTreeListItem*) item.m_pItem)->HasPlus();
+}
+
+inline
+bool wxTreeListMainWindow::IsExpanded(const wxTreeItemId& item) const
+{
+ wxCHECK_MSG( item.IsOk(), FALSE, wxT("invalid tree item") );
+
+ return ((wxTreeListItem*) item.m_pItem)->IsExpanded();
+}
+
+inline
+bool wxTreeListMainWindow::IsSelected(const wxTreeItemId& item) const
+{
+ wxCHECK_MSG( item.IsOk(), FALSE, wxT("invalid tree item") );
+
+ return ((wxTreeListItem*) item.m_pItem)->IsSelected();
+}
+
+inline
+bool wxTreeListMainWindow::IsBold(const wxTreeItemId& item) const
+{
+ wxCHECK_MSG( item.IsOk(), FALSE, wxT("invalid tree item") );
+
+ return ((wxTreeListItem*) item.m_pItem)->IsBold();
+}
+
+// ----------------------------------------------------------------------------
+// navigation
+// ----------------------------------------------------------------------------
+
+inline
+wxTreeItemId wxTreeListMainWindow::GetParent(const wxTreeItemId& item) const
+{
+ wxCHECK_MSG( item.IsOk(), wxTreeItemId(), wxT("invalid tree item") );
+
+ return ((wxTreeListItem*) item.m_pItem)->GetParent();
+}
+
+inline
+wxTreeItemId wxTreeListMainWindow::GetFirstChild(const wxTreeItemId& item,
+ long& cookie) const
+{
+ wxCHECK_MSG( item.IsOk(), wxTreeItemId(), wxT("invalid tree item") );
+
+ cookie = 0;
+ return GetNextChild(item, cookie);
+}
+
+inline
+wxTreeItemId wxTreeListMainWindow::GetNextChild(const wxTreeItemId& item,
+ long& cookie) const
+{
+ wxCHECK_MSG( item.IsOk(), wxTreeItemId(), wxT("invalid tree item") );
+
+ wxArrayTreeListItems& children = ((wxTreeListItem*)
+ item.m_pItem)->GetChildren();
+ if ( (size_t)cookie < children.Count() )
+ {
+ return children.Item((size_t)cookie++);
+ }
+ else
+ {
+ // there are no more of them
+ return wxTreeItemId();
+ }
+}
+
+inline
+wxTreeItemId wxTreeListMainWindow::GetLastChild(const wxTreeItemId& item) const
+{
+ wxCHECK_MSG( item.IsOk(), wxTreeItemId(), wxT("invalid tree item") );
+
+ wxArrayTreeListItems& children = ((wxTreeListItem*) item.m_pItem)->GetChildren();
+ return (children.IsEmpty() ? wxTreeItemId() : wxTreeItemId(children.Last()));
+}
+
+inline
+wxTreeItemId wxTreeListMainWindow::GetNextSibling(const wxTreeItemId& item) const
+{
+ wxCHECK_MSG( item.IsOk(), wxTreeItemId(), wxT("invalid tree item") );
+
+ wxTreeListItem *i = (wxTreeListItem*) item.m_pItem;
+ wxTreeListItem *parent = i->GetParent();
+ if ( parent == NULL )
+ {
+ // root item doesn't have any siblings
+ return wxTreeItemId();
+ }
+
+ wxArrayTreeListItems& siblings = parent->GetChildren();
+ int index = siblings.Index(i);
+ wxASSERT( index != wxNOT_FOUND ); // I'm not a child of my parent?
+
+ size_t n = (size_t)(index + 1);
+ return n == siblings.Count() ? wxTreeItemId() : wxTreeItemId(siblings[n]);
+}
+
+inline
+wxTreeItemId wxTreeListMainWindow::GetPrevSibling(const wxTreeItemId& item)
+ const
+{
+ wxCHECK_MSG( item.IsOk(), wxTreeItemId(), wxT("invalid tree item") );
+
+ wxTreeListItem *i = (wxTreeListItem*) item.m_pItem;
+ wxTreeListItem *parent = i->GetParent();
+ if ( parent == NULL )
+ {
+ // root item doesn't have any siblings
+ return wxTreeItemId();
+ }
+
+ wxArrayTreeListItems& siblings = parent->GetChildren();
+ int index = siblings.Index(i);
+ wxASSERT( index != wxNOT_FOUND ); // I'm not a child of my parent?
+
+ return index == 0 ? wxTreeItemId()
+ : wxTreeItemId(siblings[(size_t)(index - 1)]);
+}
+
+// Only for internal use right now, but should probably be public
+wxTreeItemId wxTreeListMainWindow::GetNext(const wxTreeItemId& item) const
+{
+ wxCHECK_MSG( item.IsOk(), wxTreeItemId(), wxT("invalid tree item") );
+
+ wxTreeListItem *i = (wxTreeListItem*) item.m_pItem;
+
+ // First see if there are any children.
+ wxArrayTreeListItems& children = i->GetChildren();
+ if (children.GetCount() > 0)
+ {
+ return children.Item(0);
+ }
+ else
+ {
+ // Try a sibling of this or ancestor instead
+ wxTreeItemId p = item;
+ wxTreeItemId toFind;
+ do
+ {
+ toFind = GetNextSibling(p);
+ p = GetParent(p);
+ } while (p.IsOk() && !toFind.IsOk());
+ return toFind;
+ }
+}
+
+inline
+wxTreeItemId wxTreeListMainWindow::GetFirstVisibleItem() const
+{
+ wxTreeItemId id = GetRootItem();
+ if (!id.IsOk())
+ return id;
+
+ do
+ {
+ if (IsVisible(id))
+ return id;
+ id = GetNext(id);
+ } while (id.IsOk());
+
+ return wxTreeItemId();
+}
+
+inline
+wxTreeItemId wxTreeListMainWindow::GetNextVisible(const wxTreeItemId& item)
+ const
+{
+ wxCHECK_MSG( item.IsOk(), wxTreeItemId(), wxT("invalid tree item") );
+
+ wxTreeItemId id = item;
+ if (id.IsOk())
+ {
+ while (id = GetNext(id), id.IsOk())
+ {
+ if (IsVisible(id))
+ return id;
+ }
+ }
+ return wxTreeItemId();
+}
+
+inline
+wxTreeItemId wxTreeListMainWindow::GetPrevVisible(const wxTreeItemId& item)
+ const
+{
+ wxCHECK_MSG( item.IsOk(), wxTreeItemId(), wxT("invalid tree item") );
+
+ wxFAIL_MSG(wxT("not implemented"));
+
+ return wxTreeItemId();
+}
+
+// ----------------------------------------------------------------------------
+// operations
+// ----------------------------------------------------------------------------
+
+wxTreeItemId wxTreeListMainWindow::DoInsertItem(const wxTreeItemId& parentId,
+ size_t previous,
+ const wxString& text,
+ int image, int selImage,
+ wxTreeItemData *data)
+{
+ wxTreeListItem *parent = (wxTreeListItem*) parentId.m_pItem;
+ if ( !parent )
+ {
+ // should we give a warning here?
+ return AddRoot(text, image, selImage, data);
+ }
+
+ m_dirty = TRUE; // do this first so stuff below doesn't cause flicker
+
+ // ALB
+ wxArrayString arr;
+ arr.Alloc(GetColumnCount());
+ for(size_t i = 0; i < GetColumnCount(); ++i) {
+ arr.Add(wxEmptyString);
+ }
+ arr[m_main_column] = text;
+ wxTreeListItem *item =
+ new wxTreeListItem( this, parent, arr, image, selImage, data );
+
+ if ( data != NULL )
+ {
+ data->SetId((long)item);
+ }
+
+ parent->Insert( item, previous );
+
+ return item;
+}
+
+wxTreeItemId wxTreeListMainWindow::AddRoot(const wxString& text,
+ int image, int selImage,
+ wxTreeItemData *data)
+{
+ wxCHECK_MSG(!m_anchor, wxTreeItemId(), wxT("tree can have only one root"));
+ wxCHECK_MSG(GetColumnCount(), wxTreeItemId(), wxT("Add column(s) before adding the root item"));
+
+ m_dirty = TRUE; // do this first so stuff below doesn't cause flicker
+
+ // ALB
+ wxArrayString arr;
+ arr.Alloc(GetColumnCount());
+ for(size_t i = 0; i < GetColumnCount(); ++i) {
+ arr.Add(wxEmptyString);
+ }
+ arr[m_main_column] = text;
+ m_anchor = new wxTreeListItem( this, (wxTreeListItem *)NULL, arr,
+ image, selImage, data);
+ if (HasFlag(wxTR_HIDE_ROOT))
+ {
+ // if root is hidden, make sure we can navigate
+ // into children
+ m_anchor->SetHasPlus();
+ Expand(m_anchor);
+ }
+ if ( data != NULL )
+ {
+ data->SetId((long)m_anchor);
+ }
+
+ if (!HasFlag(wxTR_MULTIPLE))
+ {
+ m_current = m_key_current = m_anchor;
+ m_current->SetHilight( TRUE );
+ }
+
+ return m_anchor;
+}
+
+inline
+wxTreeItemId wxTreeListMainWindow::PrependItem(const wxTreeItemId& parent,
+ const wxString& text,
+ int image, int selImage,
+ wxTreeItemData *data)
+{
+ return DoInsertItem(parent, 0u, text, image, selImage, data);
+}
+
+inline
+wxTreeItemId wxTreeListMainWindow::InsertItem(const wxTreeItemId& parentId,
+ const wxTreeItemId& idPrevious,
+ const wxString& text,
+ int image, int selImage,
+ wxTreeItemData *data)
+{
+ wxTreeListItem *parent = (wxTreeListItem*) parentId.m_pItem;
+ if ( !parent )
+ {
+ // should we give a warning here?
+ return AddRoot(text, image, selImage, data);
+ }
+
+ int index = parent->GetChildren().Index((wxTreeListItem*) idPrevious.m_pItem);
+ wxASSERT_MSG( index != wxNOT_FOUND,
+ wxT("previous item in wxTreeListMainWindow::InsertItem() is not a sibling") );
+
+ return DoInsertItem(parentId, (size_t)++index, text, image, selImage, data);
+}
+
+inline
+wxTreeItemId wxTreeListMainWindow::InsertItem(const wxTreeItemId& parentId,
+ size_t before,
+ const wxString& text,
+ int image, int selImage,
+ wxTreeItemData *data)
+{
+ wxTreeListItem *parent = (wxTreeListItem*) parentId.m_pItem;
+ if ( !parent )
+ {
+ // should we give a warning here?
+ return AddRoot(text, image, selImage, data);
+ }
+
+ return DoInsertItem(parentId, before, text, image, selImage, data);
+}
+
+inline
+wxTreeItemId wxTreeListMainWindow::AppendItem(const wxTreeItemId& parentId,
+ const wxString& text,
+ int image, int selImage,
+ wxTreeItemData *data)
+{
+ wxTreeListItem *parent = (wxTreeListItem*) parentId.m_pItem;
+ if ( !parent )
+ {
+ // should we give a warning here?
+ return AddRoot(text, image, selImage, data);
+ }
+
+ return DoInsertItem( parent, parent->GetChildren().Count(), text,
+ image, selImage, data);
+}
+
+void wxTreeListMainWindow::SendDeleteEvent(wxTreeListItem *item)
+{
+ wxTreeEvent event( wxEVT_COMMAND_TREE_DELETE_ITEM, m_owner->GetId() );
+ event.SetItem((long) item);
+ event.SetEventObject( /*this*/m_owner );
+ m_owner->ProcessEvent( event );
+}
+
+inline
+void wxTreeListMainWindow::DeleteChildren(const wxTreeItemId& itemId)
+{
+ m_dirty = TRUE; // do this first so stuff below doesn't cause flicker
+
+ wxTreeListItem *item = (wxTreeListItem*) itemId.m_pItem;
+ item->DeleteChildren(this);
+}
+
+inline
+void wxTreeListMainWindow::Delete(const wxTreeItemId& itemId)
+{
+ m_dirty = TRUE; // do this first so stuff below doesn't cause flicker
+
+ wxTreeListItem *item = (wxTreeListItem*) itemId.m_pItem;
+
+ // don't stay with invalid m_key_current or we will crash in
+ // the next call to OnChar()
+ bool changeKeyCurrent = FALSE;
+ wxTreeListItem *itemKey = m_key_current;
+ while ( itemKey )
+ {
+ if ( itemKey == item )
+ {
+ // m_key_current is a descendant of the item being deleted
+ changeKeyCurrent = TRUE;
+ break;
+ }
+ itemKey = itemKey->GetParent();
+ }
+
+ wxTreeListItem *parent = item->GetParent();
+ if ( parent )
+ {
+ parent->GetChildren().Remove( item ); // remove by value
+ }
+
+ if ( changeKeyCurrent )
+ {
+ // may be NULL or not
+ m_key_current = parent;
+ }
+
+ item->DeleteChildren(this);
+ SendDeleteEvent(item);
+ delete item;
+}
+
+inline
+void wxTreeListMainWindow::DeleteAllItems()
+{
+ if ( m_anchor )
+ {
+ m_dirty = TRUE;
+
+ m_anchor->DeleteChildren(this);
+ delete m_anchor;
+
+ m_anchor = NULL;
+ }
+}
+
+void wxTreeListMainWindow::Expand(const wxTreeItemId& itemId)
+{
+ wxTreeListItem *item = (wxTreeListItem*) itemId.m_pItem;
+
+ wxCHECK_RET( item, _T("invalid item in wxTreeListMainWindow::Expand") );
+
+ if ( !item->HasPlus() )
+ return;
+
+ if ( item->IsExpanded() )
+ return;
+
+ wxTreeEvent event( wxEVT_COMMAND_TREE_ITEM_EXPANDING, m_owner->GetId() );
+ event.SetItem( (long) item );
+ event.SetEventObject( /*this*/m_owner );
+
+ if ( m_owner->ProcessEvent( event ) && !event.IsAllowed() )
+ {
+ // cancelled by program
+ return;
+ }
+
+ item->Expand();
+ CalculatePositions();
+
+ RefreshSubtree(item);
+
+ event.SetEventType(wxEVT_COMMAND_TREE_ITEM_EXPANDED);
+ ProcessEvent( event );
+}
+
+void wxTreeListMainWindow::ExpandAll(const wxTreeItemId& item)
+{
+ Expand(item);
+ if ( IsExpanded(item) )
+ {
+ long cookie;
+ wxTreeItemId child = GetFirstChild(item, cookie);
+ while ( child.IsOk() )
+ {
+ ExpandAll(child);
+
+ child = GetNextChild(item, cookie);
+ }
+ }
+}
+
+void wxTreeListMainWindow::Collapse(const wxTreeItemId& itemId)
+{
+ wxTreeListItem *item = (wxTreeListItem*) itemId.m_pItem;
+
+ if ( !item->IsExpanded() )
+ return;
+
+ wxTreeEvent event( wxEVT_COMMAND_TREE_ITEM_COLLAPSING, m_owner->GetId() );
+ event.SetItem( (long) item );
+ event.SetEventObject( /*this*/m_owner );
+ if ( m_owner->ProcessEvent( event ) && !event.IsAllowed() )
+ {
+ // cancelled by program
+ return;
+ }
+
+ item->Collapse();
+
+#if 0 // TODO why should items be collapsed recursively?
+ wxArrayTreeListItems& children = item->GetChildren();
+ size_t count = children.Count();
+ for ( size_t n = 0; n < count; n++ )
+ {
+ Collapse(children[n]);
+ }
+#endif
+
+ CalculatePositions();
+
+ RefreshSubtree(item);
+
+ event.SetEventType(wxEVT_COMMAND_TREE_ITEM_COLLAPSED);
+ ProcessEvent( event );
+}
+
+void wxTreeListMainWindow::CollapseAndReset(const wxTreeItemId& item)
+{
+ Collapse(item);
+ DeleteChildren(item);
+}
+
+void wxTreeListMainWindow::Toggle(const wxTreeItemId& itemId)
+{
+ wxTreeListItem *item = (wxTreeListItem*) itemId.m_pItem;
+
+ if (item->IsExpanded())
+ Collapse(itemId);
+ else
+ Expand(itemId);
+}
+
+void wxTreeListMainWindow::Unselect()
+{
+ if (m_current)
+ {
+ m_current->SetHilight( FALSE );
+ RefreshLine( m_current );
+ }
+}
+
+void wxTreeListMainWindow::UnselectAllChildren(wxTreeListItem *item)
+{
+ if (item->IsSelected())
+ {
+ item->SetHilight(FALSE);
+ RefreshLine(item);
+ }
+
+ if (item->HasChildren())
+ {
+ wxArrayTreeListItems& children = item->GetChildren();
+ size_t count = children.Count();
+ for ( size_t n = 0; n < count; ++n )
+ {
+ UnselectAllChildren(children[n]);
+ }
+ }
+}
+
+void wxTreeListMainWindow::UnselectAll()
+{
+ UnselectAllChildren((wxTreeListItem*) GetRootItem().m_pItem);
+}
+
+// Recursive function !
+// To stop we must have crt_itemGetParent();
+
+ if (parent == NULL) // This is root item
+ return TagAllChildrenUntilLast(crt_item, last_item, select);
+
+ wxArrayTreeListItems& children = parent->GetChildren();
+ int index = children.Index(crt_item);
+ wxASSERT( index != wxNOT_FOUND ); // I'm not a child of my parent?
+
+ size_t count = children.Count();
+ for (size_t n=(size_t)(index+1); nSetHilight(select);
+ RefreshLine(crt_item);
+
+ if (crt_item==last_item)
+ return TRUE;
+
+ if (crt_item->HasChildren())
+ {
+ wxArrayTreeListItems& children = crt_item->GetChildren();
+ size_t count = children.Count();
+ for ( size_t n = 0; n < count; ++n )
+ {
+ if (TagAllChildrenUntilLast(children[n], last_item, select))
+ return TRUE;
+ }
+ }
+
+ return FALSE;
+}
+
+void wxTreeListMainWindow::SelectItemRange(wxTreeListItem *item1, wxTreeListItem *item2)
+{
+ // item2 is not necessary after item1
+ wxTreeListItem *first=NULL, *last=NULL;
+
+ // choice first' and 'last' between item1 and item2
+ if (item1->GetY()GetY())
+ {
+ first=item1;
+ last=item2;
+ }
+ else
+ {
+ first=item2;
+ last=item1;
+ }
+
+ bool select = m_current->IsSelected();
+
+ if ( TagAllChildrenUntilLast(first,last,select) )
+ return;
+
+ TagNextChildren(first,last,select);
+}
+
+void wxTreeListMainWindow::SelectItem(const wxTreeItemId& itemId,
+ bool unselect_others,
+ bool extended_select)
+{
+ wxCHECK_RET( itemId.IsOk(), wxT("invalid tree item") );
+
+ bool is_single=!(GetWindowStyleFlag() & wxTR_MULTIPLE);
+ wxTreeListItem *item = (wxTreeListItem*) itemId.m_pItem;
+
+ //wxCHECK_RET( ( (!unselect_others) && is_single),
+ // wxT("this is a single selection tree") );
+
+ // to keep going anyhow !!!
+ if (is_single)
+ {
+ if (item->IsSelected())
+ return; // nothing to do
+ unselect_others = TRUE;
+ extended_select = FALSE;
+ }
+ else if ( unselect_others && item->IsSelected() )
+ {
+ // selection change if there is more than one item currently selected
+ wxArrayTreeItemIds selected_items;
+ if ( GetSelections(selected_items) == 1 )
+ return;
+ }
+
+ wxTreeEvent event( wxEVT_COMMAND_TREE_SEL_CHANGING, m_owner->GetId() );
+ event.SetItem( (long) item );
+ event.SetOldItem( (long) m_current );
+ event.SetEventObject( /*this*/m_owner );
+ // TODO : Here we don't send any selection mode yet !
+
+ if(m_owner->GetEventHandler()->ProcessEvent( event ) && !event.IsAllowed())
+ return;
+
+ wxTreeItemId parent = GetParent( itemId );
+ while (parent.IsOk())
+ {
+ if (!IsExpanded(parent))
+ Expand( parent );
+
+ parent = GetParent( parent );
+ }
+
+ EnsureVisible( itemId );
+
+ // ctrl press
+ if (unselect_others)
+ {
+ if (is_single) Unselect(); // to speed up thing
+ else UnselectAll();
+ }
+
+ // shift press
+ if (extended_select)
+ {
+ if ( !m_current )
+ {
+ m_current = m_key_current = (wxTreeListItem*) GetRootItem().m_pItem;
+ }
+
+ // don't change the mark (m_current)
+ SelectItemRange(m_current, item);
+ }
+ else
+ {
+ bool select=TRUE; // the default
+
+ // Check if we need to toggle hilight (ctrl mode)
+ if (!unselect_others)
+ select=!item->IsSelected();
+
+ m_current = m_key_current = item;
+ m_current->SetHilight(select);
+ RefreshLine( m_current );
+ }
+
+ event.SetEventType(wxEVT_COMMAND_TREE_SEL_CHANGED);
+ GetEventHandler()->ProcessEvent( event );
+}
+
+void wxTreeListMainWindow::FillArray(wxTreeListItem *item,
+ wxArrayTreeItemIds &array) const
+{
+ if ( item->IsSelected() )
+ array.Add(wxTreeItemId(item));
+
+ if ( item->HasChildren() )
+ {
+ wxArrayTreeListItems& children = item->GetChildren();
+ size_t count = children.GetCount();
+ for ( size_t n = 0; n < count; ++n )
+ FillArray(children[n], array);
+ }
+}
+
+size_t wxTreeListMainWindow::GetSelections(wxArrayTreeItemIds &array) const
+{
+ array.Empty();
+ wxTreeItemId idRoot = GetRootItem();
+ if ( idRoot.IsOk() )
+ {
+ FillArray((wxTreeListItem*) idRoot.m_pItem, array);
+ }
+ //else: the tree is empty, so no selections
+
+ return array.Count();
+}
+
+void wxTreeListMainWindow::EnsureVisible(const wxTreeItemId& item)
+{
+ if (!item.IsOk()) return;
+
+ wxTreeListItem *gitem = (wxTreeListItem*) item.m_pItem;
+
+ // first expand all parent branches
+ wxTreeListItem *parent = gitem->GetParent();
+ while ( parent )
+ {
+ Expand(parent);
+ parent = parent->GetParent();
+ }
+
+ //if (parent) CalculatePositions();
+
+ ScrollTo(item);
+}
+
+void wxTreeListMainWindow::ScrollTo(const wxTreeItemId &item)
+{
+ if (!item.IsOk()) return;
+
+ // We have to call this here because the label in
+ // question might just have been added and no screen
+ // update taken place.
+ if (m_dirty) wxYieldIfNeeded();
+
+ wxTreeListItem *gitem = (wxTreeListItem*) item.m_pItem;
+
+ // now scroll to the item
+ int item_y = gitem->GetY();
+
+ int start_x = 0;
+ int start_y = 0;
+ GetViewStart( &start_x, &start_y );
+ start_y *= PIXELS_PER_UNIT;
+
+ int client_h = 0;
+ int client_w = 0;
+ GetClientSize( &client_w, &client_h );
+
+ if (item_y < start_y+3)
+ {
+ // going down
+ int x = 0;
+ int y = 0;
+ m_anchor->GetSize( x, y, this );
+ x = m_owner->GetHeaderWindow()->GetWidth(); //m_total_col_width; // ALB
+ y += PIXELS_PER_UNIT+2; // one more scrollbar unit + 2 pixels
+ //x += PIXELS_PER_UNIT+2; // one more scrollbar unit + 2 pixels
+ int x_pos = GetScrollPos( wxHORIZONTAL );
+ // Item should appear at top
+ SetScrollbars( PIXELS_PER_UNIT, PIXELS_PER_UNIT, x/PIXELS_PER_UNIT, y/PIXELS_PER_UNIT, x_pos, item_y/PIXELS_PER_UNIT );
+ }
+ else if (item_y+GetLineHeight(gitem) > start_y+client_h)
+ {
+ // going up
+ int x = 0;
+ int y = 0;
+ m_anchor->GetSize( x, y, this );
+ y += PIXELS_PER_UNIT+2; // one more scrollbar unit + 2 pixels
+ //x += PIXELS_PER_UNIT+2; // one more scrollbar unit + 2 pixels
+ x = m_owner->GetHeaderWindow()->GetWidth(); //m_total_col_width; // ALB
+ item_y += PIXELS_PER_UNIT+2;
+ int x_pos = GetScrollPos( wxHORIZONTAL );
+ // Item should appear at bottom
+ SetScrollbars( PIXELS_PER_UNIT, PIXELS_PER_UNIT, x/PIXELS_PER_UNIT, y/PIXELS_PER_UNIT, x_pos, (item_y+GetLineHeight(gitem)-client_h)/PIXELS_PER_UNIT );
+ }
+}
+
+// FIXME: tree sorting functions are not reentrant and not MT-safe!
+static wxTreeListMainWindow *s_treeBeingSorted = NULL;
+
+static int LINKAGEMODE tree_ctrl_compare_func(wxTreeListItem **item1,
+ wxTreeListItem **item2)
+{
+ wxCHECK_MSG( s_treeBeingSorted, 0, wxT("bug in wxTreeListMainWindow::SortChildren()") );
+
+ return s_treeBeingSorted->OnCompareItems(*item1, *item2);
+}
+
+int wxTreeListMainWindow::OnCompareItems(const wxTreeItemId& item1,
+ const wxTreeItemId& item2)
+{
+ // ALB: delegate to m_owner, to let the user overrride the comparison
+ //return wxStrcmp(GetItemText(item1), GetItemText(item2));
+ return m_owner->OnCompareItems(item1, item2);
+}
+
+void wxTreeListMainWindow::SortChildren(const wxTreeItemId& itemId)
+{
+ wxCHECK_RET( itemId.IsOk(), wxT("invalid tree item") );
+
+ wxTreeListItem *item = (wxTreeListItem*) itemId.m_pItem;
+
+ wxCHECK_RET( !s_treeBeingSorted,
+ wxT("wxTreeListMainWindow::SortChildren is not reentrant") );
+
+ wxArrayTreeListItems& children = item->GetChildren();
+ if ( children.Count() > 1 )
+ {
+ m_dirty = TRUE;
+
+ s_treeBeingSorted = this;
+ children.Sort(tree_ctrl_compare_func);
+ s_treeBeingSorted = NULL;
+ }
+ //else: don't make the tree dirty as nothing changed
+}
+
+inline
+wxImageList *wxTreeListMainWindow::GetImageList() const
+{
+ return m_imageListNormal;
+}
+
+inline
+wxImageList *wxTreeListMainWindow::GetButtonsImageList() const
+{
+ return m_imageListButtons;
+}
+
+inline
+wxImageList *wxTreeListMainWindow::GetStateImageList() const
+{
+ return m_imageListState;
+}
+
+void wxTreeListMainWindow::CalculateLineHeight()
+{
+ wxClientDC dc(this);
+ m_lineHeight = (int)(dc.GetCharHeight() + m_linespacing*2);
+
+ if ( m_imageListNormal )
+ {
+ // Calculate a m_lineHeight value from the normal Image sizes.
+ // May be toggle off. Then wxTreeListMainWindow will spread when
+ // necessary (which might look ugly).
+ int n = m_imageListNormal->GetImageCount();
+ for (int i = 0; i < n ; i++)
+ {
+ int width = 0, height = 0;
+ m_imageListNormal->GetSize(i, width, height);
+ if (height > m_lineHeight) m_lineHeight = height;
+ }
+ }
+
+ if (m_imageListButtons)
+ {
+ // Calculate a m_lineHeight value from the Button image sizes.
+ // May be toggle off. Then wxTreeListMainWindow will spread when
+ // necessary (which might look ugly).
+ int n = m_imageListButtons->GetImageCount();
+ for (int i = 0; i < n ; i++)
+ {
+ int width = 0, height = 0;
+ m_imageListButtons->GetSize(i, width, height);
+ if (height > m_lineHeight) m_lineHeight = height;
+ }
+ }
+
+ if (m_lineHeight < 30)
+ m_lineHeight += 2; // at least 2 pixels
+ else
+ m_lineHeight += m_lineHeight/10; // otherwise 10% extra spacing
+}
+
+inline
+void wxTreeListMainWindow::SetImageList(wxImageList *imageList)
+{
+ if (m_ownsImageListNormal) delete m_imageListNormal;
+ m_imageListNormal = imageList;
+ m_ownsImageListNormal = FALSE;
+ m_dirty = TRUE;
+ CalculateLineHeight();
+}
+
+inline
+void wxTreeListMainWindow::SetStateImageList(wxImageList *imageList)
+{
+ if (m_ownsImageListState) delete m_imageListState;
+ m_imageListState = imageList;
+ m_ownsImageListState = FALSE;
+}
+
+inline
+void wxTreeListMainWindow::SetButtonsImageList(wxImageList *imageList)
+{
+ if (m_ownsImageListButtons) delete m_imageListButtons;
+ m_imageListButtons = imageList;
+ m_ownsImageListButtons = FALSE;
+ m_dirty = TRUE;
+ CalculateLineHeight();
+}
+
+inline
+void wxTreeListMainWindow::AssignImageList(wxImageList *imageList)
+{
+ SetImageList(imageList);
+ m_ownsImageListNormal = TRUE;
+}
+
+inline
+void wxTreeListMainWindow::AssignStateImageList(wxImageList *imageList)
+{
+ SetStateImageList(imageList);
+ m_ownsImageListState = TRUE;
+}
+
+inline
+void wxTreeListMainWindow::AssignButtonsImageList(wxImageList *imageList)
+{
+ SetButtonsImageList(imageList);
+ m_ownsImageListButtons = TRUE;
+}
+
+// ----------------------------------------------------------------------------
+// helpers
+// ----------------------------------------------------------------------------
+
+void wxTreeListMainWindow::AdjustMyScrollbars()
+{
+ if (m_anchor)
+ {
+ int x = 0, y = 0;
+ m_anchor->GetSize( x, y, this );
+ y += PIXELS_PER_UNIT+2; // one more scrollbar unit + 2 pixels
+ //x += PIXELS_PER_UNIT+2; // one more scrollbar unit + 2 pixels
+ int x_pos = GetScrollPos( wxHORIZONTAL );
+ int y_pos = GetScrollPos( wxVERTICAL );
+ x = m_owner->GetHeaderWindow()->GetWidth() + 2;
+ if(x < GetClientSize().GetWidth()) x_pos = 0;
+ //m_total_col_width + 2; // ALB
+ SetScrollbars( PIXELS_PER_UNIT, PIXELS_PER_UNIT, x/PIXELS_PER_UNIT,
+ y/PIXELS_PER_UNIT, x_pos, y_pos );
+ }
+ else
+ {
+ SetScrollbars( 0, 0, 0, 0 );
+ }
+}
+
+int wxTreeListMainWindow::GetLineHeight(wxTreeListItem *item) const
+{
+ if (GetWindowStyleFlag() & wxTR_HAS_VARIABLE_ROW_HEIGHT)
+ return item->GetHeight();
+ else
+ return m_lineHeight;
+}
+
+void wxTreeListMainWindow::PaintItem(wxTreeListItem *item, wxDC& dc)
+{
+ // TODO implement "state" icon on items
+
+ wxTreeItemAttr *attr = item->GetAttributes();
+ if ( attr && attr->HasFont() )
+ dc.SetFont(attr->GetFont());
+ else if (item->IsBold())
+ dc.SetFont(m_boldFont);
+
+ long text_w = 0, text_h = 0;
+
+ dc.GetTextExtent( item->GetText(GetMainColumn()), &text_w, &text_h );
+
+ int total_h = GetLineHeight(item);
+
+ if ( item->IsSelected() )
+ {
+ dc.SetBrush(*(m_hasFocus ? m_hilightBrush : m_hilightUnfocusedBrush));
+ }
+ else
+ {
+ wxColour colBg;
+ if ( attr && attr->HasBackgroundColour() )
+ colBg = attr->GetBackgroundColour();
+ else
+ colBg = m_backgroundColour;
+ dc.SetBrush(wxBrush(colBg, wxSOLID));
+ }
+
+ int offset = HasFlag(wxTR_ROW_LINES) ? 1 : 0;
+
+ dc.DrawRectangle(0, item->GetY()+offset,
+ m_owner->GetHeaderWindow()->GetWidth(),
+ total_h-offset);
+
+ dc.SetBackgroundMode(wxTRANSPARENT);
+ int extraH = (total_h > text_h) ? (total_h - text_h)/2 : 0;
+ int extra_offset = 0;
+ for(size_t i = 0; i < GetColumnCount(); ++i) {
+ int coord_x = extra_offset, image_x = coord_x;
+ int clip_width = m_owner->GetHeaderWindow()->GetColumnWidth(i);
+ int image_h = 0, image_w = 0; //2;
+ int image = NO_IMAGE;
+
+ if(i == GetMainColumn()) {
+ image = item->GetCurrentImage();
+ coord_x = item->GetX();
+ }
+ else {
+ image = item->GetImage(i);
+ }
+
+ if(image != NO_IMAGE) {
+ if(m_imageListNormal) {
+ m_imageListNormal->GetSize( image, image_w, image_h );
+ image_w += 4;
+ }
+ else {
+ image = NO_IMAGE;
+ }
+ }
+
+ // honor text alignment
+ wxString text = item->GetText(i);
+
+ switch(m_owner->GetHeaderWindow()->GetColumn(i).GetAlignment()) {
+ case wxTL_ALIGN_LEFT:
+ coord_x += image_w + 2;
+ image_x = coord_x - image_w;
+ break;
+ case wxTL_ALIGN_RIGHT:
+ dc.GetTextExtent(text, &text_w, NULL);
+ coord_x += clip_width - text_w - image_w - 2;
+ image_x = coord_x - image_w;
+ break;
+ case wxTL_ALIGN_CENTER:
+ dc.GetTextExtent(text, &text_w, NULL);
+ //coord_x += (clip_width - text_w)/2 + image_w;
+ image_x += (clip_width - text_w - image_w)/2 + 2;
+ coord_x = image_x + image_w;
+ }
+
+ wxDCClipper clipper(dc, /*coord_x,*/ extra_offset,
+ item->GetY() + extraH, clip_width,
+ total_h);
+
+ if(image != NO_IMAGE) {
+ m_imageListNormal->Draw( image, dc, image_x,
+ item->GetY() +((total_h > image_h)?
+ ((total_h-image_h)/2):0),
+ wxIMAGELIST_DRAW_TRANSPARENT );
+ }
+
+ dc.DrawText( text,
+ (wxCoord)(coord_x /*image_w + item->GetX()*/),
+ (wxCoord)(item->GetY() + extraH));
+ extra_offset += m_owner->GetHeaderWindow()->GetColumnWidth(i);
+ }
+
+ // restore normal font
+ dc.SetFont( m_normalFont );
+}
+
+// Now y stands for the top of the item, whereas it used to stand for middle !
+void wxTreeListMainWindow::PaintLevel( wxTreeListItem *item, wxDC &dc,
+ int level, int &y, int x_offset )
+{
+ int x = level*m_indent + x_offset;
+ if (!HasFlag(wxTR_HIDE_ROOT))
+ {
+ x += m_indent;
+ }
+ else if (level == 0)
+ {
+ // always expand hidden root
+ int origY = y;
+ wxArrayTreeListItems& children = item->GetChildren();
+ int count = children.Count();
+ if (count > 0)
+ {
+ int n = 0, oldY;
+ do {
+ oldY = y;
+ PaintLevel(children[n], dc, 1, y, x_offset);
+ } while (++n < count);
+
+ if (!HasFlag(wxTR_NO_LINES) && HasFlag(wxTR_LINES_AT_ROOT) &&
+ count > 0)
+ {
+ // draw line down to last child
+ origY += GetLineHeight(children[0])>>1;
+ oldY += GetLineHeight(children[n-1])>>1;
+ dc.DrawLine(3, origY, 3, oldY);
+ }
+ }
+ return;
+ }
+
+ item->SetX(x+m_spacing);
+ item->SetY(y);
+
+ int h = GetLineHeight(item);
+ int y_top = y;
+ int y_mid = y_top + (h>>1);
+ y += h;
+
+ int exposed_x = dc.LogicalToDeviceX(0);
+ int exposed_y = dc.LogicalToDeviceY(y_top);
+
+ if (IsExposed(exposed_x, exposed_y, 10000, h)) // 10000 = very much
+ {
+ wxPen *pen =
+#ifndef __WXMAC__
+ // don't draw rect outline if we already have the
+ // background color under Mac
+ (item->IsSelected() && m_hasFocus) ? wxBLACK_PEN :
+#endif // !__WXMAC__
+ wxTRANSPARENT_PEN;
+
+ wxColour colText;
+ if ( item->IsSelected() )
+ {
+ colText = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
+ }
+ else
+ {
+ wxTreeItemAttr *attr = item->GetAttributes();
+ if (attr && attr->HasTextColour())
+ colText = attr->GetTextColour();
+ else
+ //colText = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOWTEXT);
+ colText = GetForegroundColour();
+ }
+
+ // prepare to draw
+ dc.SetTextForeground(colText);
+ dc.SetPen(*pen);
+
+ // draw
+ PaintItem(item, dc);
+
+ if (HasFlag(wxTR_ROW_LINES))
+ {
+ int total_width = m_owner->GetHeaderWindow()->GetWidth();
+ // if the background colour is white, choose a
+ // contrasting color for the lines
+ dc.SetPen(*((GetBackgroundColour() == *wxWHITE)
+ ? wxMEDIUM_GREY_PEN : wxWHITE_PEN));
+ dc.DrawLine(0, y_top, total_width, y_top);
+ dc.DrawLine(0, y, total_width, y);
+ }
+
+ // restore DC objects
+ dc.SetBrush(*wxWHITE_BRUSH);
+ dc.SetPen(m_dottedPen);
+ dc.SetTextForeground(*wxBLACK);
+
+ size_t clip_width = m_owner->GetHeaderWindow()->GetColumn(
+ m_main_column).GetWidth();
+ //m_columns[m_main_column].GetWidth();
+ if (item->HasPlus() && HasButtons()) // should the item show a button?
+ {
+ // clip to the column width
+ wxDCClipper clipper(dc, x_offset, y_top, clip_width, 10000);
+
+ if (!HasFlag(wxTR_NO_LINES))
+ {
+ if (x > (signed)m_indent)
+ dc.DrawLine(x - m_indent, y_mid, x - 5, y_mid);
+ else if (HasFlag(wxTR_LINES_AT_ROOT))
+ dc.DrawLine(3, y_mid, x - 5, y_mid);
+ dc.DrawLine(x + 5, y_mid, x + m_spacing, y_mid);
+ }
+
+ if (m_imageListButtons != NULL)
+ {
+ // draw the image button here
+ int image_h = 0, image_w = 0, image = wxTreeItemIcon_Normal;
+ if (item->IsExpanded()) image = wxTreeItemIcon_Expanded;
+ if (item->IsSelected())
+ image += wxTreeItemIcon_Selected - wxTreeItemIcon_Normal;
+ m_imageListButtons->GetSize(image, image_w, image_h);
+ int xx = x - (image_w>>1);
+ int yy = y_mid - (image_h>>1);
+ dc.SetClippingRegion(xx, yy, image_w, image_h);
+ m_imageListButtons->Draw(image, dc, xx, yy,
+ wxIMAGELIST_DRAW_TRANSPARENT);
+ dc.DestroyClippingRegion();
+ }
+ else if (HasFlag(wxTR_TWIST_BUTTONS))
+ {
+ // draw the twisty button here
+ dc.SetPen(*wxBLACK_PEN);
+ dc.SetBrush(*m_hilightBrush);
+
+ wxPoint button[3];
+
+ if (item->IsExpanded())
+ {
+ button[0].x = x-5;
+ button[0].y = y_mid-2;
+ button[1].x = x+5;
+ button[1].y = y_mid-2;
+ button[2].x = x;
+ button[2].y = y_mid+3;
+ }
+ else
+ {
+ button[0].y = y_mid-5;
+ button[0].x = x-2;
+ button[1].y = y_mid+5;
+ button[1].x = x-2;
+ button[2].y = y_mid;
+ button[2].x = x+3;
+ }
+ dc.DrawPolygon(3, button);
+
+ dc.SetPen(m_dottedPen);
+ }
+ else // if (HasFlag(wxTR_HAS_BUTTONS))
+ {
+ // draw the plus sign here
+ dc.SetPen(*wxGREY_PEN);
+ dc.SetBrush(*wxWHITE_BRUSH);
+ dc.DrawRectangle(x-5, y_mid-4, 11, 9);
+ dc.SetPen(*wxBLACK_PEN);
+ dc.DrawLine(x-2, y_mid, x+3, y_mid);
+ if (!item->IsExpanded())
+ dc.DrawLine(x, y_mid-2, x, y_mid+3);
+ dc.SetPen(m_dottedPen);
+ }
+ }
+ else if (!HasFlag(wxTR_NO_LINES)) // no button; maybe a line?
+ {
+ // clip to the column width
+ wxDCClipper clipper(dc, x_offset, y_top, clip_width, 10000);
+ // draw the horizontal line here
+ int x_start = x;
+ if (x > (signed)m_indent)
+ x_start -= m_indent;
+ else if (HasFlag(wxTR_LINES_AT_ROOT))
+ x_start = 3;
+ dc.DrawLine(x_start, y_mid, x + m_spacing, y_mid);
+ }
+ }
+
+ if (item->IsExpanded())
+ {
+ wxArrayTreeListItems& children = item->GetChildren();
+ int count = children.Count();
+ if (count > 0)
+ {
+ int n = 0, oldY;
+ ++level;
+ do {
+ oldY = y;
+ PaintLevel(children[n], dc, level, y, x_offset);
+ } while (++n < count);
+
+ if (!HasFlag(wxTR_NO_LINES) && count > 0)
+ {
+ size_t clip_width = m_owner->GetHeaderWindow()->GetColumn(
+ m_main_column).GetWidth();
+ //m_columns[m_main_column].GetWidth();
+ // clip to the column width
+ wxDCClipper clipper(dc, x_offset, y_top, clip_width, 10000);
+ // draw line down to last child
+ oldY += GetLineHeight(children[n-1])>>1;
+ if (HasButtons()) y_mid += 5;
+ dc.DrawLine(x, y_mid, x, oldY);
+ }
+ }
+ }
+}
+
+void wxTreeListMainWindow::DrawDropEffect(wxTreeListItem *item)
+{
+ if ( item )
+ {
+ if ( item->HasPlus() )
+ {
+ // it's a folder, indicate it by a border
+ DrawBorder(item);
+ }
+ else
+ {
+ // draw a line under the drop target because the item will be
+ // dropped there
+ DrawLine(item, TRUE /* below */);
+ }
+
+ SetCursor(wxCURSOR_BULLSEYE);
+ }
+ else
+ {
+ // can't drop here
+ SetCursor(wxCURSOR_NO_ENTRY);
+ }
+}
+
+void wxTreeListMainWindow::DrawBorder(const wxTreeItemId &item)
+{
+ wxCHECK_RET( item.IsOk(), _T("invalid item in wxTreeListMainWindow::DrawLine") );
+
+ wxTreeListItem *i = (wxTreeListItem*) item.m_pItem;
+
+ wxClientDC dc(this);
+ PrepareDC( dc );
+ dc.SetLogicalFunction(wxINVERT);
+ dc.SetBrush(*wxTRANSPARENT_BRUSH);
+
+ int w = i->GetWidth() + 2;
+ int h = GetLineHeight(i) + 2;
+
+ dc.DrawRectangle( i->GetX() - 1, i->GetY() - 1, w, h);
+}
+
+void wxTreeListMainWindow::DrawLine(const wxTreeItemId &item, bool below)
+{
+ wxCHECK_RET( item.IsOk(), _T("invalid item in wxTreeListMainWindow::DrawLine") );
+
+ wxTreeListItem *i = (wxTreeListItem*) item.m_pItem;
+
+ wxClientDC dc(this);
+ PrepareDC( dc );
+ dc.SetLogicalFunction(wxINVERT);
+
+ int x = i->GetX(),
+ y = i->GetY();
+ if ( below )
+ {
+ y += GetLineHeight(i) - 1;
+ }
+
+ dc.DrawLine( x, y, x + i->GetWidth(), y);
+}
+
+// ----------------------------------------------------------------------------
+// wxWindows callbacks
+// ----------------------------------------------------------------------------
+
+void wxTreeListMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
+{
+ wxPaintDC dc(this);
+
+ PrepareDC( dc );
+
+ if(!GetColumnCount()) return; // ALB
+
+ if ( !m_anchor)
+ return;
+
+ dc.SetFont( m_normalFont );
+ dc.SetPen( m_dottedPen );
+
+ // this is now done dynamically
+ //if(GetImageList() == NULL)
+ // m_lineHeight = (int)(dc.GetCharHeight() + 4);
+
+ int y = 0; //HEADER_HEIGHT; //2;
+ int x_offset = 0;
+ for(size_t i = 0; i < GetMainColumn(); ++i) {
+ x_offset += m_owner->GetHeaderWindow()->GetColumnWidth(i);
+ }
+ PaintLevel( m_anchor, dc, 0, y, x_offset );
+}
+
+void wxTreeListMainWindow::OnSetFocus( wxFocusEvent &event )
+{
+ m_hasFocus = TRUE;
+
+ RefreshSelected();
+
+ event.Skip();
+}
+
+void wxTreeListMainWindow::OnKillFocus( wxFocusEvent &event )
+{
+ m_hasFocus = FALSE;
+
+ RefreshSelected();
+
+ event.Skip();
+}
+
+void wxTreeListMainWindow::OnChar( wxKeyEvent &event )
+{
+ wxTreeEvent te( wxEVT_COMMAND_TREE_KEY_DOWN, m_owner->GetId() );
+ te.SetKeyEvent( event );
+ te.SetEventObject( /*this*/m_owner );
+ if ( m_owner->GetEventHandler()->ProcessEvent( te ) )
+ {
+ // intercepted by the user code
+ return;
+ }
+
+ if ( (m_current == 0) || (m_key_current == 0) )
+ {
+ event.Skip();
+ return;
+ }
+
+ // how should the selection work for this event?
+ bool is_multiple, extended_select, unselect_others;
+ EventFlagsToSelType(GetWindowStyleFlag(),
+ event.ShiftDown(),
+ event.ControlDown(),
+ is_multiple, extended_select, unselect_others);
+
+ // + : Expand (not on Win32)
+ // - : Collaspe (not on Win32)
+ // * : Expand all/Collapse all
+ // ' ' | return : activate
+ // up : go up (not last children!)
+ // down : go down
+ // left : go to parent (or collapse on Win32)
+ // right : open if parent and go next (or expand on Win32)
+ // home : go to root
+ // end : go to last item without opening parents
+ switch (event.KeyCode())
+ {
+#ifndef __WXMSW__ // mimic the standard win32 tree ctrl
+ case '+':
+ case WXK_ADD:
+ if (m_current->HasPlus() && !IsExpanded(m_current))
+ {
+ Expand(m_current);
+ }
+ break;
+#endif // __WXMSW__
+
+ case '*':
+ case WXK_MULTIPLY:
+ if ( !IsExpanded(m_current) )
+ {
+ // expand all
+ ExpandAll(m_current);
+ break;
+ }
+ //else: fall through to Collapse() it
+
+#ifndef __WXMSW__ // mimic the standard wxTreeCtrl behaviour
+ case '-':
+ case WXK_SUBTRACT:
+ if (IsExpanded(m_current))
+ {
+ Collapse(m_current);
+ }
+ break;
+#endif // __WXMSW__
+
+ case ' ':
+ case WXK_RETURN:
+ {
+ wxTreeEvent event( wxEVT_COMMAND_TREE_ITEM_ACTIVATED,
+ m_owner->GetId() );
+ event.SetItem( (long) m_current);
+ event.SetEventObject( /*this*/m_owner );
+ m_owner->GetEventHandler()->ProcessEvent( event );
+ }
+ break;
+
+ // up goes to the previous sibling or to the last
+ // of its children if it's expanded
+ case WXK_UP:
+ {
+ wxTreeItemId prev = GetPrevSibling( m_key_current );
+ if (!prev)
+ {
+ prev = GetParent( m_key_current );
+ if ((prev == GetRootItem()) && HasFlag(wxTR_HIDE_ROOT))
+ {
+ break; // don't go to root if it is hidden
+ }
+ if (prev)
+ {
+ long cookie = 0;
+ wxTreeItemId current = m_key_current;
+ // TODO: Huh? If we get here, we'd better be the first child of our parent. How else could it be?
+ if (current == GetFirstChild( prev, cookie ))
+ {
+ // otherwise we return to where we came from
+ SelectItem( prev, unselect_others, extended_select );
+ m_key_current= (wxTreeListItem*) prev.m_pItem;
+ EnsureVisible( prev );
+ break;
+ }
+ }
+ }
+ if (prev)
+ {
+ while ( IsExpanded(prev) && HasChildren(prev) )
+ {
+ wxTreeItemId child = GetLastChild(prev);
+ if ( child )
+ {
+ prev = child;
+ }
+ }
+
+ SelectItem( prev, unselect_others, extended_select );
+ m_key_current=(wxTreeListItem*) prev.m_pItem;
+ EnsureVisible( prev );
+ }
+ }
+ break;
+
+ // left arrow goes to the parent
+ case WXK_LEFT:
+#if defined(__WXMSW__) // mimic the standard win32 tree ctrl
+ if (IsExpanded(m_current))
+ {
+ Collapse(m_current);
+ }
+ else
+#endif // __WXMSW__
+ {
+ wxTreeItemId prev = GetParent( m_current );
+ if ((prev == GetRootItem()) && HasFlag(wxTR_HIDE_ROOT))
+ {
+ // don't go to root if it is hidden
+ prev = GetPrevSibling( m_current );
+ }
+ if (prev)
+ {
+ EnsureVisible( prev );
+ SelectItem( prev, unselect_others, extended_select );
+ }
+ }
+ break;
+
+ case WXK_RIGHT:
+#if defined(__WXMSW__) // mimic the standard win32 tree ctrl
+ if (m_current->HasPlus() && !IsExpanded(m_current))
+ {
+ Expand(m_current);
+ break;
+ }
+#endif // __WXMSW__
+
+ // this works the same as the down arrow except that we
+ // also expand the item if it wasn't expanded yet
+ Expand(m_current);
+ // fall through
+
+ case WXK_DOWN:
+ {
+ if (IsExpanded(m_key_current) && HasChildren(m_key_current))
+ {
+ long cookie = 0;
+ wxTreeItemId child = GetFirstChild( m_key_current, cookie );
+ SelectItem( child, unselect_others, extended_select );
+ m_key_current=(wxTreeListItem*) child.m_pItem;
+ EnsureVisible( child );
+ }
+ else
+ {
+ wxTreeItemId next = GetNextSibling( m_key_current );
+ if (!next)
+ {
+ wxTreeItemId current = m_key_current;
+ while (current && !next)
+ {
+ current = GetParent( current );
+ if (current) next = GetNextSibling( current );
+ }
+ }
+ if (next)
+ {
+ SelectItem( next, unselect_others, extended_select );
+ m_key_current=(wxTreeListItem*) next.m_pItem;
+ EnsureVisible( next );
+ }
+ }
+ }
+ break;
+
+ // selects the last visible tree item
+ case WXK_END:
+ {
+ wxTreeItemId last = GetRootItem();
+
+ while ( last.IsOk() && IsExpanded(last) )
+ {
+ wxTreeItemId lastChild = GetLastChild(last);
+
+ // it may happen if the item was expanded but then all of
+ // its children have been deleted - so IsExpanded() returned
+ // TRUE, but GetLastChild() returned invalid item
+ if ( !lastChild )
+ break;
+
+ last = lastChild;
+ }
+
+ if ( last.IsOk() )
+ {
+ EnsureVisible( last );
+ SelectItem( last, unselect_others, extended_select );
+ }
+ }
+ break;
+
+ // selects the root item
+ case WXK_HOME:
+ {
+ wxTreeItemId prev = GetRootItem();
+ if (!prev) break;
+ if (HasFlag(wxTR_HIDE_ROOT))
+ {
+ long dummy;
+ prev = GetFirstChild(prev, dummy);
+ if (!prev) break;
+ }
+ EnsureVisible( prev );
+ SelectItem( prev, unselect_others, extended_select );
+ }
+ break;
+
+ default:
+ event.Skip();
+ }
+}
+
+wxTreeItemId wxTreeListMainWindow::HitTest(const wxPoint& point, int& flags,
+ int& column)
+{
+ // JACS: removed wxYieldIfNeeded() because it can cause the window
+ // to be deleted from under us if a close window event is pending
+
+ int w, h;
+ GetSize(&w, &h);
+ flags=0;
+ if (point.x<0) flags |= wxTREE_HITTEST_TOLEFT;
+ if (point.x>w) flags |= wxTREE_HITTEST_TORIGHT;
+ if (point.y<0) flags |= wxTREE_HITTEST_ABOVE;
+ if (point.y>h) flags |= wxTREE_HITTEST_BELOW;
+ if (flags) return wxTreeItemId();
+
+ if (m_anchor == NULL)
+ {
+ flags = wxTREE_HITTEST_NOWHERE;
+ return wxTreeItemId();
+ }
+
+ wxClientDC dc(this);
+ PrepareDC(dc);
+ wxCoord x = dc.DeviceToLogicalX( point.x );
+ wxCoord y = dc.DeviceToLogicalY( point.y );
+ wxTreeListItem *hit = m_anchor->HitTest(wxPoint(x, y), this, flags,
+ column, 0);
+ if (hit == NULL)
+ {
+ flags = wxTREE_HITTEST_NOWHERE;
+ return wxTreeItemId();
+ }
+ return hit;
+}
+
+// get the bounding rectangle of the item (or of its label only)
+bool wxTreeListMainWindow::GetBoundingRect(const wxTreeItemId& item,
+ wxRect& rect,
+ bool WXUNUSED(textOnly)) const
+{
+ wxCHECK_MSG( item.IsOk(), FALSE, _T("invalid item in wxTreeListMainWindow::GetBoundingRect") );
+
+ wxTreeListItem *i = (wxTreeListItem*) item.m_pItem;
+
+ int startX, startY;
+ GetViewStart(& startX, & startY);
+
+ rect.x = i->GetX() - startX*PIXELS_PER_UNIT;
+ rect.y = i->GetY() - startY*PIXELS_PER_UNIT;
+ rect.width = i->GetWidth();
+ //rect.height = i->GetHeight();
+ rect.height = GetLineHeight(i);
+
+ return TRUE;
+}
+
+/* **** */
+
+void wxTreeListMainWindow::Edit( const wxTreeItemId& item )
+{
+ if (!item.IsOk()) return;
+
+ m_currentEdit = (wxTreeListItem*) item.m_pItem;
+
+ wxTreeEvent te( wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, m_owner->GetId() );
+ te.SetItem( (long) m_currentEdit);
+ te.SetEventObject( /*this*/m_owner );
+ m_owner->GetEventHandler()->ProcessEvent( te );
+
+ if (!te.IsAllowed()) return;
+
+ // We have to call this here because the label in
+ // question might just have been added and no screen
+ // update taken place.
+ if (m_dirty) wxYieldIfNeeded();
+
+ wxString s = m_currentEdit->GetText(/*ALB*/m_main_column);
+ int x = m_currentEdit->GetX();
+ int y = m_currentEdit->GetY();
+ int w = m_currentEdit->GetWidth();
+ int h = m_currentEdit->GetHeight();
+
+ int image_h = 0;
+ int image_w = 0;
+
+ int image = m_currentEdit->GetCurrentImage();
+ if ( image != NO_IMAGE )
+ {
+ if ( m_imageListNormal )
+ {
+ m_imageListNormal->GetSize( image, image_w, image_h );
+ image_w += 4;
+ }
+ else
+ {
+ wxFAIL_MSG(_T("you must create an image list to use images!"));
+ }
+ }
+ x += image_w;
+ w -= image_w + 4; // I don't know why +4 is needed
+
+ wxClientDC dc(this);
+ PrepareDC( dc );
+ x = dc.LogicalToDeviceX( x );
+ y = dc.LogicalToDeviceY( y );
+
+ wxTreeListTextCtrl *text = new wxTreeListTextCtrl(this, -1,
+ &m_renameAccept,
+ &m_renameRes,
+ this,
+ s,
+ wxPoint(x-4,y-4),
+ wxSize(w+11,h+8));
+ text->SetFocus();
+}
+
+void wxTreeListMainWindow::OnRenameTimer()
+{
+ Edit( m_current );
+}
+
+void wxTreeListMainWindow::OnRenameAccept()
+{
+ // TODO if the validator fails this causes a crash
+ wxTreeEvent le( wxEVT_COMMAND_TREE_END_LABEL_EDIT, m_owner->GetId() );
+ le.SetItem( (long) m_currentEdit );
+ le.SetEventObject( /*this*/m_owner );
+ le.SetLabel( m_renameRes );
+ m_owner->GetEventHandler()->ProcessEvent( le );
+
+ if (!le.IsAllowed()) return;
+
+ SetItemText( m_currentEdit, m_renameRes );
+}
+
+void wxTreeListMainWindow::OnMouse( wxMouseEvent &event )
+{
+ if ( !m_anchor ) return;
+
+ // we process left mouse up event (enables in-place edit), right down
+ // (pass to the user code), left dbl click (activate item) and
+ // dragging/moving events for items drag-and-drop
+ if ( !(event.LeftDown() ||
+ event.LeftUp() ||
+ event.RightDown() ||
+ event.LeftDClick() ||
+ event.Dragging() ||
+ ((event.Moving() || event.RightUp()) && m_isDragging)) )
+ {
+ event.Skip();
+
+ return;
+ }
+
+ if ( event.LeftDown() )
+ SetFocus();
+
+ wxClientDC dc(this);
+ PrepareDC(dc);
+ wxCoord x = dc.DeviceToLogicalX( event.GetX() );
+ wxCoord y = dc.DeviceToLogicalY( event.GetY() );
+
+ int flags = 0;
+ wxTreeListItem *item = m_anchor->HitTest(wxPoint(x,y), this, flags, 0);
+
+ if ( event.Dragging() && !m_isDragging )
+ {
+ if (m_dragCount == 0)
+ m_dragStart = wxPoint(x,y);
+
+ m_dragCount++;
+
+ if (m_dragCount != 3)
+ {
+ // wait until user drags a bit further...
+ return;
+ }
+
+ wxEventType command = event.RightIsDown()
+ ? wxEVT_COMMAND_TREE_BEGIN_RDRAG
+ : wxEVT_COMMAND_TREE_BEGIN_DRAG;
+
+ wxTreeEvent nevent( command,/*ALB*/ m_owner->GetId() );
+ nevent.SetItem( (long) m_current);
+ nevent.SetEventObject(/*this*/m_owner); // ALB
+
+ // by default the dragging is not supported, the user code must
+ // explicitly allow the event for it to take place
+ nevent.Veto();
+
+ if ( m_owner->GetEventHandler()->ProcessEvent(nevent) &&
+ nevent.IsAllowed() )
+ {
+ // we're going to drag this item
+ m_isDragging = TRUE;
+
+ // remember the old cursor because we will change it while
+ // dragging
+ m_oldCursor = m_cursor;
+
+ // in a single selection control, hide the selection temporarily
+ if ( !(GetWindowStyleFlag() & wxTR_MULTIPLE) )
+ {
+ m_oldSelection = (wxTreeListItem*) GetSelection().m_pItem;
+
+ if ( m_oldSelection )
+ {
+ m_oldSelection->SetHilight(FALSE);
+ RefreshLine(m_oldSelection);
+ }
+ }
+
+ CaptureMouse();
+ }
+ }
+ else if ( event.Moving() )
+ {
+ if ( item != m_dropTarget )
+ {
+ // unhighlight the previous drop target
+ DrawDropEffect(m_dropTarget);
+
+ m_dropTarget = item;
+
+ // highlight the current drop target if any
+ DrawDropEffect(m_dropTarget);
+
+ wxYieldIfNeeded();
+ }
+ }
+ else if ( (event.LeftUp() || event.RightUp()) && m_isDragging )
+ {
+ // erase the highlighting
+ DrawDropEffect(m_dropTarget);
+
+ if ( m_oldSelection )
+ {
+ m_oldSelection->SetHilight(TRUE);
+ RefreshLine(m_oldSelection);
+ m_oldSelection = (wxTreeListItem *)NULL;
+ }
+
+ // generate the drag end event
+ wxTreeEvent event(wxEVT_COMMAND_TREE_END_DRAG,/*ALB*/m_owner->GetId());
+
+ event.SetItem( (long) item );
+ event.SetPoint( wxPoint(x, y) );
+ event.SetEventObject(/*this*/m_owner);
+
+ (void)m_owner->GetEventHandler()->ProcessEvent(event);
+
+ m_isDragging = FALSE;
+ m_dropTarget = (wxTreeListItem *)NULL;
+
+ ReleaseMouse();
+
+ SetCursor(m_oldCursor);
+
+ wxYieldIfNeeded();
+ }
+ else
+ {
+ // here we process only the messages which happen on tree items
+
+ m_dragCount = 0;
+
+ if (item == NULL) return; /* we hit the blank area */
+
+ if ( event.RightDown() )
+ {
+ SetFocus();
+ wxTreeEvent nevent(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK,
+ m_owner->GetId());
+ nevent.SetItem( (long) item );
+ int nx, ny;
+ CalcScrolledPosition(x, y, &nx, &ny);
+ nevent.SetPoint( wxPoint(nx, ny));
+ nevent.SetEventObject(/*this*/m_owner);
+ m_owner->GetEventHandler()->ProcessEvent(nevent);
+ }
+ else if ( event.LeftUp() )
+ {
+ if ( m_lastOnSame )
+ {
+ if ( (item == m_current) &&
+ (flags & wxTREE_HITTEST_ONITEMLABEL) &&
+ HasFlag(wxTR_EDIT_LABELS) )
+ {
+ if ( m_renameTimer->IsRunning() )
+ m_renameTimer->Stop();
+
+ m_renameTimer->Start( 100, TRUE );
+ }
+
+ m_lastOnSame = FALSE;
+ }
+ }
+ else // !RightDown() && !LeftUp() ==> LeftDown() || LeftDClick()
+ {
+ if ( event.LeftDown() )
+ {
+ SetFocus();
+ m_lastOnSame = item == m_current;
+ }
+
+ if ( flags & wxTREE_HITTEST_ONITEMBUTTON )
+ {
+ // only toggle the item for a single click, double click on
+ // the button doesn't do anything (it toggles the item twice)
+ if ( event.LeftDown() )
+ {
+ Toggle( item );
+ }
+
+ // don't select the item if the button was clicked
+ return;
+ }
+
+ // how should the selection work for this event?
+ bool is_multiple, extended_select, unselect_others;
+ EventFlagsToSelType(GetWindowStyleFlag(),
+ event.ShiftDown(),
+ event.ControlDown(),
+ is_multiple, extended_select, unselect_others);
+
+ SelectItem(item, unselect_others, extended_select);
+
+ // For some reason, Windows isn't recognizing a left double-click,
+ // so we need to simulate it here. Allow 200 milliseconds for now.
+ if ( event.LeftDClick() )
+ {
+ // double clicking should not start editing the item label
+ m_renameTimer->Stop();
+ m_lastOnSame = FALSE;
+
+ // send activate event first
+ wxTreeEvent nevent( wxEVT_COMMAND_TREE_ITEM_ACTIVATED,
+ m_owner->GetId() );
+ nevent.SetItem( (long) item );
+ int nx, ny;
+ CalcScrolledPosition(x, y, &nx, &ny);
+ nevent.SetPoint( wxPoint(nx, ny) );
+ nevent.SetEventObject( /*this*/m_owner );
+ if ( !m_owner->GetEventHandler()->ProcessEvent( nevent ) )
+ {
+ // if the user code didn't process the activate event,
+ // handle it ourselves by toggling the item when it is
+ // double clicked
+ if ( item->HasPlus() )
+ {
+ Toggle(item);
+ }
+ }
+ }
+ }
+ }
+}
+
+void wxTreeListMainWindow::OnIdle( wxIdleEvent &WXUNUSED(event) )
+{
+ /* after all changes have been done to the tree control,
+ * we actually redraw the tree when everything is over */
+
+ if (!m_dirty) return;
+
+ m_dirty = FALSE;
+
+ CalculatePositions();
+ Refresh();
+ AdjustMyScrollbars();
+}
+
+void wxTreeListMainWindow::OnSize(wxSizeEvent& WXUNUSED(event))
+{
+// int w, h;
+// GetClientSize(&w, &h);
+// m_header_win->SetSize(0, 0, w, HEADER_HEIGHT);
+}
+
+void wxTreeListMainWindow::OnScroll(wxScrollWinEvent& event)
+{
+ // FIXME
+#if defined(__WXGTK__) && !defined(__WXUNIVERSAL__)
+ wxScrolledWindow::OnScroll(event);
+#else
+ HandleOnScroll( event );
+#endif
+
+ if(event.GetOrientation() == wxHORIZONTAL)
+ {
+ m_owner->GetHeaderWindow()->Refresh();
+#ifdef __WXMAC__
+ m_owner->GetHeaderWindow()->MacUpdateImmediately();
+#endif
+ }
+}
+
+
+void wxTreeListMainWindow::CalculateSize( wxTreeListItem *item, wxDC &dc )
+{
+ wxCoord text_w = 0;
+ wxCoord text_h = 0;
+
+ if (item->IsBold())
+ dc.SetFont(m_boldFont);
+
+ dc.GetTextExtent( item->GetText(/*ALB*/m_main_column), &text_w, &text_h );
+ text_h+=2;
+
+ // restore normal font
+ dc.SetFont( m_normalFont );
+
+ int image_h = 0;
+ int image_w = 0;
+ int image = item->GetCurrentImage();
+ if ( image != NO_IMAGE )
+ {
+ if ( m_imageListNormal )
+ {
+ m_imageListNormal->GetSize( image, image_w, image_h );
+ image_w += 4;
+ image_h += 2;
+ }
+ }
+
+ int total_h = (image_h > text_h) ? image_h : text_h;
+
+// if (total_h < 30)
+// total_h += 2; // at least 2 pixels
+// else
+// total_h += total_h/10; // otherwise 10% extra spacing
+
+ item->SetHeight(total_h);
+ if (total_h>m_lineHeight)
+ m_lineHeight=total_h;
+
+ item->SetWidth(image_w+text_w+2);
+}
+
+// -----------------------------------------------------------------------------
+// for developper : y is now the top of the level
+// not the middle of it !
+void wxTreeListMainWindow::CalculateLevel( wxTreeListItem *item, wxDC &dc,
+ int level, int &y, int x_offset )
+{
+ int x = level*m_indent + x_offset;
+ if (!HasFlag(wxTR_HIDE_ROOT))
+ {
+ x += m_indent;
+ }
+ else if (level == 0)
+ {
+ // a hidden root is not evaluated, but its
+ // children are always calculated
+ goto Recurse;
+ }
+
+ CalculateSize( item, dc );
+
+ // set its position
+ item->SetX( x+m_spacing );
+ item->SetY( y );
+ y += GetLineHeight(item);
+
+ if ( !item->IsExpanded() )
+ {
+ // we don't need to calculate collapsed branches
+ return;
+ }
+
+ Recurse:
+ wxArrayTreeListItems& children = item->GetChildren();
+ size_t n, count = children.Count();
+ ++level;
+ for (n = 0; n < count; ++n )
+ CalculateLevel( children[n], dc, level, y, x_offset ); // recurse
+}
+
+void wxTreeListMainWindow::CalculatePositions()
+{
+ if ( !m_anchor ) return;
+
+ wxClientDC dc(this);
+ PrepareDC( dc );
+
+ dc.SetFont( m_normalFont );
+
+ dc.SetPen( m_dottedPen );
+ //if(GetImageList() == NULL)
+ // m_lineHeight = (int)(dc.GetCharHeight() + 4);
+
+ int y = 2;
+ int x_offset = 0;
+ for(size_t i = 0; i < GetMainColumn(); ++i) {
+ x_offset += m_owner->GetHeaderWindow()->GetColumnWidth(i);
+ }
+ CalculateLevel( m_anchor, dc, 0, y, x_offset ); // start recursion
+}
+
+void wxTreeListMainWindow::RefreshSubtree(wxTreeListItem *item)
+{
+ if (m_dirty) return;
+
+ wxClientDC dc(this);
+ PrepareDC(dc);
+
+ int cw = 0;
+ int ch = 0;
+ GetClientSize( &cw, &ch );
+
+ wxRect rect;
+ rect.x = dc.LogicalToDeviceX( 0 );
+ rect.width = cw;
+ rect.y = dc.LogicalToDeviceY( item->GetY() - 2 );
+ rect.height = ch;
+
+ Refresh( TRUE, &rect );
+
+ AdjustMyScrollbars();
+}
+
+void wxTreeListMainWindow::RefreshLine( wxTreeListItem *item )
+{
+ if (m_dirty) return;
+
+ wxClientDC dc(this);
+ PrepareDC( dc );
+
+ int cw = 0;
+ int ch = 0;
+ GetClientSize( &cw, &ch );
+
+ wxRect rect;
+ rect.x = dc.LogicalToDeviceX( 0 );
+ rect.y = dc.LogicalToDeviceY( item->GetY() );
+ rect.width = cw;
+ rect.height = GetLineHeight(item); //dc.GetCharHeight() + 6;
+
+ Refresh( TRUE, &rect );
+}
+
+void wxTreeListMainWindow::RefreshSelected()
+{
+ // TODO: this is awfully inefficient, we should keep the list of all
+ // selected items internally, should be much faster
+ if ( m_anchor )
+ RefreshSelectedUnder(m_anchor);
+}
+
+void wxTreeListMainWindow::RefreshSelectedUnder(wxTreeListItem *item)
+{
+ if ( item->IsSelected() )
+ RefreshLine(item);
+
+ const wxArrayTreeListItems& children = item->GetChildren();
+ size_t count = children.GetCount();
+ for ( size_t n = 0; n < count; n++ )
+ {
+ RefreshSelectedUnder(children[n]);
+ }
+}
+
+// ----------------------------------------------------------------------------
+// changing colours: we need to refresh the tree control
+// ----------------------------------------------------------------------------
+
+bool wxTreeListMainWindow::SetBackgroundColour(const wxColour& colour)
+{
+ if ( !wxWindow::SetBackgroundColour(colour) )
+ return FALSE;
+
+ Refresh();
+
+ return TRUE;
+}
+
+bool wxTreeListMainWindow::SetForegroundColour(const wxColour& colour)
+{
+ if ( !wxWindow::SetForegroundColour(colour) )
+ return FALSE;
+
+ Refresh();
+
+ return TRUE;
+}
+
+//----------- ALB -------------
+inline
+void wxTreeListMainWindow::SetItemText(const wxTreeItemId& item, size_t column,
+ const wxString& text)
+{
+ wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
+
+ wxClientDC dc(this);
+ wxTreeListItem *pItem = (wxTreeListItem*) item.m_pItem;
+ pItem->SetText(column, text);
+ CalculateSize(pItem, dc);
+ RefreshLine(pItem);
+}
+
+inline
+wxString wxTreeListMainWindow::GetItemText(const wxTreeItemId& item,
+ size_t column) const
+{
+ wxCHECK_MSG( item.IsOk(), wxT(""), wxT("invalid tree item") );
+
+ return ((wxTreeListItem*) item.m_pItem)->GetText(column);
+}
+
+//-----------------------------
+
+//-----------------------------------------------------------------------------
+// wxTreeListCtrl
+//-----------------------------------------------------------------------------
+
+IMPLEMENT_DYNAMIC_CLASS(wxTreeListCtrl, wxControl);
+
+BEGIN_EVENT_TABLE(wxTreeListCtrl, wxControl)
+ EVT_SIZE(wxTreeListCtrl::OnSize)
+END_EVENT_TABLE();
+
+bool wxTreeListCtrl::Create(wxWindow *parent, wxWindowID id,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style, const wxValidator &validator,
+ const wxString& name)
+{
+ long main_style = style & ~(wxRAISED_BORDER|wxSUNKEN_BORDER
+ |wxSIMPLE_BORDER|wxNO_BORDER|wxDOUBLE_BORDER
+ |wxSTATIC_BORDER);
+ if(!wxControl::Create(parent, id, pos, size, style, validator, name))
+ return false;
+
+ m_main_win = new wxTreeListMainWindow(this, -1, wxPoint(0, 0), size,
+ main_style, validator);
+ m_header_win = new wxTreeListHeaderWindow(this, -1, m_main_win,
+ wxPoint(0, 0), wxDefaultSize,
+ wxTAB_TRAVERSAL);
+ return TRUE;
+}
+
+void wxTreeListCtrl::OnSize(wxSizeEvent& event)
+{
+ int w, h;
+ GetClientSize(&w, &h);
+ if(m_header_win)
+ m_header_win->SetSize(0, 0, w, HEADER_HEIGHT);
+ if(m_main_win)
+ m_main_win->SetSize(0, HEADER_HEIGHT + 1, w, h - HEADER_HEIGHT - 1);
+}
+
+size_t wxTreeListCtrl::GetCount() const { return m_main_win->GetCount(); }
+
+unsigned int wxTreeListCtrl::GetIndent() const
+{ return m_main_win->GetIndent(); }
+
+void wxTreeListCtrl::SetIndent(unsigned int indent)
+{ m_main_win->SetIndent(indent); }
+
+unsigned int wxTreeListCtrl::GetSpacing() const
+{ return m_main_win->GetSpacing(); }
+
+void wxTreeListCtrl::SetSpacing(unsigned int spacing)
+{ m_main_win->SetSpacing(spacing); }
+
+unsigned int wxTreeListCtrl::GetLineSpacing() const
+{ return m_main_win->GetLineSpacing(); }
+
+void wxTreeListCtrl::SetLineSpacing(unsigned int spacing)
+{ m_main_win->SetLineSpacing(spacing); }
+
+wxImageList* wxTreeListCtrl::GetImageList() const
+{ return m_main_win->GetImageList(); }
+
+wxImageList* wxTreeListCtrl::GetStateImageList() const
+{ return m_main_win->GetStateImageList(); }
+
+wxImageList* wxTreeListCtrl::GetButtonsImageList() const
+{ return m_main_win->GetButtonsImageList(); }
+
+void wxTreeListCtrl::SetImageList(wxImageList* imageList)
+{ m_main_win->SetImageList(imageList); }
+
+void wxTreeListCtrl::SetStateImageList(wxImageList* imageList)
+{ m_main_win->SetStateImageList(imageList); }
+
+void wxTreeListCtrl::SetButtonsImageList(wxImageList* imageList)
+{ m_main_win->SetButtonsImageList(imageList); }
+
+void wxTreeListCtrl::AssignImageList(wxImageList* imageList)
+{ m_main_win->AssignImageList(imageList); }
+
+void wxTreeListCtrl::AssignStateImageList(wxImageList* imageList)
+{ m_main_win->AssignStateImageList(imageList); }
+
+void wxTreeListCtrl::AssignButtonsImageList(wxImageList* imageList)
+{ m_main_win->AssignButtonsImageList(imageList); }
+
+wxString wxTreeListCtrl::GetItemText(const wxTreeItemId& item, size_t column)
+ const
+{ return m_main_win->GetItemText(item, column); }
+
+int wxTreeListCtrl::GetItemImage(const wxTreeItemId& item, size_t column,
+ wxTreeItemIcon which) const
+{ return m_main_win->GetItemImage(item, column, which); }
+
+wxTreeItemData* wxTreeListCtrl::GetItemData(const wxTreeItemId& item) const
+{ return m_main_win->GetItemData(item); }
+
+bool wxTreeListCtrl::GetItemBold(const wxTreeItemId& item) const
+{ return m_main_win->GetItemBold(item); }
+
+wxColour wxTreeListCtrl::GetItemTextColour(const wxTreeItemId& item) const
+{ return m_main_win->GetItemTextColour(item); }
+
+wxColour wxTreeListCtrl::GetItemBackgroundColour(const wxTreeItemId& item)
+ const
+{ return m_main_win->GetItemBackgroundColour(item); }
+
+wxFont wxTreeListCtrl::GetItemFont(const wxTreeItemId& item) const
+{ return m_main_win->GetItemFont(item); }
+
+
+void wxTreeListCtrl::SetItemText(const wxTreeItemId& item, size_t column,
+ const wxString& text)
+{ m_main_win->SetItemText(item, column, text); }
+
+void wxTreeListCtrl::SetItemImage(const wxTreeItemId& item,
+ size_t column,
+ int image,
+ wxTreeItemIcon which)
+{ m_main_win->SetItemImage(item, column, image, which); }
+
+void wxTreeListCtrl::SetItemData(const wxTreeItemId& item,
+ wxTreeItemData* data)
+{ m_main_win->SetItemData(item, data); }
+
+void wxTreeListCtrl::SetItemHasChildren(const wxTreeItemId& item, bool has)
+{ m_main_win->SetItemHasChildren(item, has); }
+
+void wxTreeListCtrl::SetItemBold(const wxTreeItemId& item, bool bold)
+{ m_main_win->SetItemBold(item, bold); }
+
+void wxTreeListCtrl::SetItemTextColour(const wxTreeItemId& item,
+ const wxColour& col)
+{ m_main_win->SetItemTextColour(item, col); }
+
+void wxTreeListCtrl::SetItemBackgroundColour(const wxTreeItemId& item,
+ const wxColour& col)
+{ m_main_win->SetItemBackgroundColour(item, col); }
+
+void wxTreeListCtrl::SetItemFont(const wxTreeItemId& item,
+ const wxFont& font)
+{ m_main_win->SetItemFont(item, font); }
+
+bool wxTreeListCtrl::SetFont(const wxFont& font)
+{
+ if(m_header_win) m_header_win->SetFont(font);
+ if(m_main_win)
+ return m_main_win->SetFont(font);
+ else return FALSE;
+}
+
+void wxTreeListCtrl::SetWindowStyle(const long style)
+{
+ if(m_main_win)
+ m_main_win->SetWindowStyle(style);
+ // TODO: provide something like wxTL_NO_HEADERS to hide m_header_win
+}
+
+long wxTreeListCtrl::GetWindowStyle() const
+{
+ long style = m_windowStyle;
+ if(m_main_win)
+ style |= m_main_win->GetWindowStyle();
+ return style;
+}
+
+bool wxTreeListCtrl::IsVisible(const wxTreeItemId& item) const
+{ return m_main_win->IsVisible(item); }
+
+bool wxTreeListCtrl::ItemHasChildren(const wxTreeItemId& item) const
+{ return m_main_win->ItemHasChildren(item); }
+
+bool wxTreeListCtrl::IsExpanded(const wxTreeItemId& item) const
+{ return m_main_win->IsExpanded(item); }
+
+bool wxTreeListCtrl::IsSelected(const wxTreeItemId& item) const
+{ return m_main_win->IsSelected(item); }
+
+bool wxTreeListCtrl::IsBold(const wxTreeItemId& item) const
+{ return m_main_win->IsBold(item); }
+
+size_t wxTreeListCtrl::GetChildrenCount(const wxTreeItemId& item, bool rec)
+{ return m_main_win->GetChildrenCount(item, rec); }
+
+wxTreeItemId wxTreeListCtrl::GetRootItem() const
+{ return m_main_win->GetRootItem(); }
+
+wxTreeItemId wxTreeListCtrl::GetSelection() const
+{ return m_main_win->GetSelection(); }
+
+size_t wxTreeListCtrl::GetSelections(wxArrayTreeItemIds& arr) const
+{ return m_main_win->GetSelections(arr); }
+
+wxTreeItemId wxTreeListCtrl::GetParent(const wxTreeItemId& item) const
+{ return m_main_win->GetParent(item); }
+
+wxTreeItemId wxTreeListCtrl::GetFirstChild(const wxTreeItemId& item,
+ long& cookie) const
+{ return m_main_win->GetFirstChild(item, cookie); }
+
+wxTreeItemId wxTreeListCtrl::GetNextChild(const wxTreeItemId& item,
+ long& cookie) const
+{ return m_main_win->GetNextChild(item, cookie); }
+
+wxTreeItemId wxTreeListCtrl::GetLastChild(const wxTreeItemId& item) const
+{ return m_main_win->GetLastChild(item); }
+
+wxTreeItemId wxTreeListCtrl::GetNextSibling(const wxTreeItemId& item) const
+{ return m_main_win->GetNextSibling(item); }
+
+wxTreeItemId wxTreeListCtrl::GetPrevSibling(const wxTreeItemId& item) const
+{ return m_main_win->GetPrevSibling(item); }
+
+wxTreeItemId wxTreeListCtrl::GetFirstVisibleItem() const
+{ return m_main_win->GetFirstVisibleItem(); }
+
+wxTreeItemId wxTreeListCtrl::GetNextVisible(const wxTreeItemId& item) const
+{ return m_main_win->GetNextVisible(item); }
+
+wxTreeItemId wxTreeListCtrl::GetPrevVisible(const wxTreeItemId& item) const
+{ return m_main_win->GetPrevVisible(item); }
+
+wxTreeItemId wxTreeListCtrl::GetNext(const wxTreeItemId& item) const
+{ return m_main_win->GetNext(item); }
+
+wxTreeItemId wxTreeListCtrl::AddRoot(const wxString& text, int image,
+ int selectedImage, wxTreeItemData* data)
+{ return m_main_win->AddRoot(text, image, selectedImage, data); }
+
+wxTreeItemId wxTreeListCtrl::PrependItem(const wxTreeItemId& parent,
+ const wxString& text, int image,
+ int selectedImage,
+ wxTreeItemData* data)
+{ return m_main_win->PrependItem(parent, text, image, selectedImage, data); }
+
+wxTreeItemId wxTreeListCtrl::InsertItem(const wxTreeItemId& parent,
+ const wxTreeItemId& previous,
+ const wxString& text, int image,
+ int selectedImage,
+ wxTreeItemData* data)
+{
+ return m_main_win->InsertItem(parent, previous, text, image,
+ selectedImage, data);
+}
+
+wxTreeItemId wxTreeListCtrl::InsertItem(const wxTreeItemId& parent,
+ size_t index,
+ const wxString& text, int image,
+ int selectedImage,
+ wxTreeItemData* data)
+{
+ return m_main_win->InsertItem(parent, index, text, image,
+ selectedImage, data);
+}
+
+wxTreeItemId wxTreeListCtrl::AppendItem(const wxTreeItemId& parent,
+ const wxString& text, int image,
+ int selectedImage,
+ wxTreeItemData* data)
+{ return m_main_win->AppendItem(parent, text, image, selectedImage, data); }
+
+void wxTreeListCtrl::Delete(const wxTreeItemId& item)
+{ m_main_win->Delete(item); }
+
+void wxTreeListCtrl::DeleteChildren(const wxTreeItemId& item)
+{ m_main_win->DeleteChildren(item); }
+
+void wxTreeListCtrl::DeleteAllItems()
+{ m_main_win->DeleteAllItems(); }
+
+void wxTreeListCtrl::Expand(const wxTreeItemId& item)
+{ m_main_win->Expand(item); }
+
+void wxTreeListCtrl::ExpandAll(const wxTreeItemId& item)
+{ m_main_win->ExpandAll(item); }
+
+void wxTreeListCtrl::Collapse(const wxTreeItemId& item)
+{ m_main_win->Collapse(item); }
+
+void wxTreeListCtrl::CollapseAndReset(const wxTreeItemId& item)
+{ m_main_win->CollapseAndReset(item); }
+
+void wxTreeListCtrl::Toggle(const wxTreeItemId& item)
+{ m_main_win->Toggle(item); }
+
+void wxTreeListCtrl::Unselect()
+{ m_main_win->Unselect(); }
+
+void wxTreeListCtrl::UnselectAll()
+{ m_main_win->UnselectAll(); }
+
+void wxTreeListCtrl::SelectItem(const wxTreeItemId& item, bool unselect_others,
+ bool extended_select)
+{ m_main_win->SelectItem(item, unselect_others, extended_select); }
+
+void wxTreeListCtrl::EnsureVisible(const wxTreeItemId& item)
+{ m_main_win->EnsureVisible(item); }
+
+void wxTreeListCtrl::ScrollTo(const wxTreeItemId& item)
+{ m_main_win->ScrollTo(item); }
+
+wxTreeItemId wxTreeListCtrl::HitTest(const wxPoint& pos, int& flags,
+ int& column)
+{
+ return m_main_win->HitTest(m_main_win->ScreenToClient(ClientToScreen(pos)),
+ flags, column);
+}
+
+bool wxTreeListCtrl::GetBoundingRect(const wxTreeItemId& item, wxRect& rect,
+ bool textOnly) const
+{ return m_main_win->GetBoundingRect(item, rect, textOnly); }
+
+void wxTreeListCtrl::Edit(const wxTreeItemId& item)
+{ m_main_win->Edit(item); }
+
+int wxTreeListCtrl::OnCompareItems(const wxTreeItemId& item1,
+ const wxTreeItemId& item2)
+{
+ // ALB: do the comparison here, and not delegate to m_main_win, in order
+ // to let the user override it
+ //return m_main_win->OnCompareItems(item1, item2);
+ return wxStrcmp(GetItemText(item1), GetItemText(item2));
+}
+
+void wxTreeListCtrl::SortChildren(const wxTreeItemId& item)
+{ m_main_win->SortChildren(item); }
+
+bool wxTreeListCtrl::SetBackgroundColour(const wxColour& colour)
+{ return m_main_win->SetBackgroundColour(colour); }
+
+bool wxTreeListCtrl::SetForegroundColour(const wxColour& colour)
+{ return m_main_win->SetForegroundColour(colour); }
+
+size_t wxTreeListCtrl::GetColumnCount() const
+{ return m_main_win->GetColumnCount(); }
+
+void wxTreeListCtrl::SetColumnWidth(size_t column, size_t width)
+{ m_header_win->SetColumnWidth(column, width); }
+
+int wxTreeListCtrl::GetColumnWidth(size_t column) const
+{ return m_header_win->GetColumnWidth(column); }
+
+void wxTreeListCtrl::SetMainColumn(size_t column)
+{ m_main_win->SetMainColumn(column); }
+
+size_t wxTreeListCtrl::GetMainColumn() const
+{ return m_main_win->GetMainColumn(); }
+
+void wxTreeListCtrl::SetColumnText(size_t column, const wxString& text)
+{
+ m_header_win->SetColumnText(column, text);
+ m_header_win->Refresh();
+}
+
+wxString wxTreeListCtrl::GetColumnText(size_t column) const
+{ return m_header_win->GetColumnText(column); }
+
+void wxTreeListCtrl::AddColumn(const wxTreeListColumnInfo& col)
+{ m_header_win->AddColumn(col); }
+
+void wxTreeListCtrl::InsertColumn(size_t before,
+ const wxTreeListColumnInfo& col)
+{ m_header_win->InsertColumn(before, col); }
+
+void wxTreeListCtrl::RemoveColumn(size_t column)
+{ m_header_win->RemoveColumn(column); }
+
+void wxTreeListCtrl::SetColumn(size_t column, const wxTreeListColumnInfo& col)
+{ m_header_win->SetColumn(column, col); }
+
+const wxTreeListColumnInfo& wxTreeListCtrl::GetColumn(size_t column) const
+{ return m_header_win->GetColumn(column); }
+
+wxTreeListColumnInfo& wxTreeListCtrl::GetColumn(size_t column)
+{ return m_header_win->GetColumn(column); }
+
+void wxTreeListCtrl::SetColumnImage(size_t column, int image)
+{
+ m_header_win->SetColumn(column, GetColumn(column).SetImage(image));
+}
+
+int wxTreeListCtrl::GetColumnImage(size_t column) const
+{
+ return m_header_win->GetColumn(column).GetImage();
+}
+
+void wxTreeListCtrl::SetColumnAlignment(size_t column,
+ wxTreeListColumnAlign align)
+{
+ m_header_win->SetColumn(column, GetColumn(column).SetAlignment(align));
+}
+
+wxTreeListColumnAlign wxTreeListCtrl::GetColumnAlignment(size_t column) const
+{
+ return m_header_win->GetColumn(column).GetAlignment();
+}
+
+void wxTreeListCtrl::Refresh(bool erase, const wxRect* rect)
+{
+ m_main_win->Refresh(erase, rect);
+ m_header_win->Refresh(erase, rect);
+}
+
+void wxTreeListCtrl::SetFocus()
+{ m_main_win->SetFocus(); }
diff --git a/wxPython/contrib/gizmos/treelistctrl.h b/wxPython/contrib/gizmos/treelistctrl.h
new file mode 100644
index 0000000000..a1e75e9ade
--- /dev/null
+++ b/wxPython/contrib/gizmos/treelistctrl.h
@@ -0,0 +1,509 @@
+// -*- C++ -*- //////////////////////////////////////////////////////////////
+// Name: treelistctrl.h (derived by wx/treectrlg.h)
+// Purpose: wxTreeListCtrl class
+// Author: Robert Roebling
+// Modified by: Alberto Griggio, 2002
+// Created: 01/02/97
+// RCS-ID: $Id$
+// Copyright: (c) 1997,1998 Robert Roebling
+// Licence: wxWindows license
+/////////////////////////////////////////////////////////////////////////////
+
+
+#ifndef TREELISTCTRL_H
+#define TREELISTCTRL_H
+
+#if defined(__GNUG__) && !defined(__APPLE__)
+ #pragma interface "treelistctrl.h"
+#endif
+
+#include
+#include
+#include
+#include // for wxListEvent
+
+#ifdef GIZMOISDLL
+#define GIZMODLLEXPORT WXDLLEXPORT
+#else
+#define GIZMODLLEXPORT
+#endif
+
+
+class GIZMODLLEXPORT wxTreeListItem;
+class GIZMODLLEXPORT wxTreeListHeaderWindow;
+class GIZMODLLEXPORT wxTreeListMainWindow;
+
+//-----------------------------------------------------------------------------
+// wxTreeListColumnAttrs
+//-----------------------------------------------------------------------------
+
+enum wxTreeListColumnAlign {
+ wxTL_ALIGN_LEFT,
+ wxTL_ALIGN_RIGHT,
+ wxTL_ALIGN_CENTER
+};
+
+
+class GIZMODLLEXPORT wxTreeListColumnInfo: public wxObject {
+public:
+ enum { DEFAULT_COL_WIDTH = 100 };
+
+ wxTreeListColumnInfo(const wxChar* text = wxT(""),
+ int image = -1,
+ size_t width = DEFAULT_COL_WIDTH,
+ wxTreeListColumnAlign alignment = wxTL_ALIGN_LEFT)
+ {
+ m_image = image;
+ m_selected_image = -1;
+ m_text = text;
+ m_width = width;
+ m_alignment = alignment;
+ }
+
+ wxTreeListColumnInfo(const wxTreeListColumnInfo& other)
+ {
+ m_image = other.m_image;
+ m_selected_image = other.m_selected_image;
+ m_text = other.m_text;
+ m_width = other.m_width;
+ m_alignment = other.m_alignment;
+ }
+
+ ~wxTreeListColumnInfo() {}
+
+ // getters
+ wxTreeListColumnAlign GetAlignment() const { return m_alignment; }
+ wxString GetText() const { return m_text; }
+ int GetImage() const { return m_image; }
+ int GetSelectedImage() const { return m_selected_image; }
+ size_t GetWidth() const { return m_width; }
+
+ // setters
+ wxTreeListColumnInfo& SetAlignment(wxTreeListColumnAlign alignment)
+ { m_alignment = alignment; return *this; }
+
+ wxTreeListColumnInfo& SetText(const wxString& text)
+ { m_text = text; return *this; }
+
+ wxTreeListColumnInfo& SetImage(int image)
+ { m_image = image; return *this; }
+
+ wxTreeListColumnInfo& SetSelectedImage(int image)
+ { m_selected_image = image; return *this; }
+
+ wxTreeListColumnInfo& SetWidth(size_t with)
+ { m_width = with; return *this; }
+
+private:
+ wxTreeListColumnAlign m_alignment;
+ wxString m_text;
+ int m_image;
+ int m_selected_image;
+ size_t m_width;
+};
+
+//----------------------------------------------------------------------------
+// wxTreeListCtrl - the multicolumn tree control
+//----------------------------------------------------------------------------
+
+// additional flag for HitTest
+const int wxTREE_HITTEST_ONITEMCOLUMN = 0x2000;
+extern GIZMODLLEXPORT const wxChar* wxTreeListCtrlNameStr;
+
+
+class GIZMODLLEXPORT wxTreeListCtrl : public wxControl
+{
+public:
+ // creation
+ // --------
+ wxTreeListCtrl() {}
+
+ wxTreeListCtrl(wxWindow *parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTR_DEFAULT_STYLE,
+ const wxValidator &validator = wxDefaultValidator,
+ const wxString& name = wxTreeListCtrlNameStr )
+ : m_header_win(0), m_main_win(0)
+ {
+ Create(parent, id, pos, size, style, validator, name);
+ }
+
+ virtual ~wxTreeListCtrl() {}
+
+ bool Create(wxWindow *parent, wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTR_DEFAULT_STYLE,
+ const wxValidator &validator = wxDefaultValidator,
+ const wxString& name = wxTreeListCtrlNameStr );
+
+ void Refresh(bool erase=TRUE, const wxRect* rect=NULL);
+ void SetFocus();
+ // accessors
+ // ---------
+
+ // get the total number of items in the control
+ size_t GetCount() const;
+
+ // indent is the number of pixels the children are indented relative to
+ // the parents position. SetIndent() also redraws the control
+ // immediately.
+ unsigned int GetIndent() const;
+ void SetIndent(unsigned int indent);
+
+ // spacing is the number of pixels between the start and the Text
+ unsigned int GetSpacing() const;
+ void SetSpacing(unsigned int spacing);
+
+ // line spacing is the space above and below the text on each line
+ unsigned int GetLineSpacing() const;
+ void SetLineSpacing(unsigned int spacing);
+
+ // image list: these functions allow to associate an image list with
+ // the control and retrieve it. Note that when assigned with
+ // SetImageList, the control does _not_ delete
+ // the associated image list when it's deleted in order to allow image
+ // lists to be shared between different controls. If you use
+ // AssignImageList, the control _does_ delete the image list.
+ //
+ // The normal image list is for the icons which correspond to the
+ // normal tree item state (whether it is selected or not).
+ // Additionally, the application might choose to show a state icon
+ // which corresponds to an app-defined item state (for example,
+ // checked/unchecked) which are taken from the state image list.
+ wxImageList *GetImageList() const;
+ wxImageList *GetStateImageList() const;
+ wxImageList *GetButtonsImageList() const;
+
+ void SetImageList(wxImageList *imageList);
+ void SetStateImageList(wxImageList *imageList);
+ void SetButtonsImageList(wxImageList *imageList);
+ void AssignImageList(wxImageList *imageList);
+ void AssignStateImageList(wxImageList *imageList);
+ void AssignButtonsImageList(wxImageList *imageList);
+
+
+ // Functions to work with tree list ctrl columns
+
+ // adds a column
+ void AddColumn(const wxString& text)
+ { AddColumn(wxTreeListColumnInfo().SetText(text)); }
+ void AddColumn(const wxTreeListColumnInfo& col);
+
+ // inserts a column before the given one
+ void InsertColumn(size_t before, const wxString& text)
+ { InsertColumn(before, wxTreeListColumnInfo().SetText(text)); }
+ void InsertColumn(size_t before, const wxTreeListColumnInfo& col);
+
+ // deletes the given column - does not delete the corresponding column
+ // of each item
+ void RemoveColumn(size_t column);
+
+ // returns the number of columns in the ctrl
+ size_t GetColumnCount() const;
+
+ void SetColumnWidth(size_t column, size_t width);
+ int GetColumnWidth(size_t column) const;
+
+ // tells which column is the "main" one, i.e. the "threaded" one
+ void SetMainColumn(size_t column);
+ size_t GetMainColumn() const;
+
+ void SetColumnText(size_t column, const wxString& text);
+ wxString GetColumnText(size_t column) const;
+
+ void SetColumn(size_t column, const wxTreeListColumnInfo& info);
+ wxTreeListColumnInfo& GetColumn(size_t column);
+ const wxTreeListColumnInfo& GetColumn(size_t column) const;
+
+ // other column-related methods
+ void SetColumnAlignment(size_t column, wxTreeListColumnAlign align);
+ wxTreeListColumnAlign GetColumnAlignment(size_t column) const;
+
+ void SetColumnImage(size_t column, int image);
+ int GetColumnImage(size_t column) const;
+
+ // Functions to work with tree list ctrl items.
+
+ // accessors
+ // ---------
+
+ // retrieve item's label (of the main column)
+ wxString GetItemText(const wxTreeItemId& item) const
+ { return GetItemText(item, GetMainColumn()); }
+ // retrieves item's label of the given column
+ wxString GetItemText(const wxTreeItemId& item, size_t column) const;
+
+ // get one of the images associated with the item (normal by default)
+ int GetItemImage(const wxTreeItemId& item,
+ wxTreeItemIcon which = wxTreeItemIcon_Normal) const
+ { return GetItemImage(item, GetMainColumn(), which); }
+ int GetItemImage(const wxTreeItemId& item, size_t column,
+ wxTreeItemIcon which = wxTreeItemIcon_Normal) const;
+
+ // get the data associated with the item
+ wxTreeItemData *GetItemData(const wxTreeItemId& item) const;
+
+ bool GetItemBold(const wxTreeItemId& item) const;
+ wxColour GetItemTextColour(const wxTreeItemId& item) const;
+ wxColour GetItemBackgroundColour(const wxTreeItemId& item) const;
+ wxFont GetItemFont(const wxTreeItemId& item) const;
+
+ // modifiers
+ // ---------
+
+ // set item's label
+ void SetItemText(const wxTreeItemId& item, const wxString& text)
+ { SetItemText(item, GetMainColumn(), text); }
+ void SetItemText(const wxTreeItemId& item, size_t column,
+ const wxString& text);
+
+ // get one of the images associated with the item (normal by default)
+ void SetItemImage(const wxTreeItemId& item, int image,
+ wxTreeItemIcon which = wxTreeItemIcon_Normal)
+ { SetItemImage(item, GetMainColumn(), image, which); }
+ // the which parameter is ignored for all columns but the main one
+ void SetItemImage(const wxTreeItemId& item, size_t column, int image,
+ wxTreeItemIcon which = wxTreeItemIcon_Normal);
+
+ // associate some data with the item
+ void SetItemData(const wxTreeItemId& item, wxTreeItemData *data);
+
+ // force appearance of [+] button near the item. This is useful to
+ // allow the user to expand the items which don't have any children now
+ // - but instead add them only when needed, thus minimizing memory
+ // usage and loading time.
+ void SetItemHasChildren(const wxTreeItemId& item, bool has = TRUE);
+
+ // the item will be shown in bold
+ void SetItemBold(const wxTreeItemId& item, bool bold = TRUE);
+
+ // set the item's text colour
+ void SetItemTextColour(const wxTreeItemId& item, const wxColour& col);
+
+ // set the item's background colour
+ void SetItemBackgroundColour(const wxTreeItemId& item,
+ const wxColour& col);
+
+ // set the item's font (should be of the same height for all items)
+ void SetItemFont(const wxTreeItemId& item, const wxFont& font);
+
+ // set the window font
+ virtual bool SetFont( const wxFont &font );
+
+ // set the styles.
+ void SetWindowStyle(const long styles);
+ long GetWindowStyle() const;
+ long GetWindowStyleFlag() const { return GetWindowStyle(); }
+
+ // item status inquiries
+ // ---------------------
+
+ // is the item visible (it might be outside the view or not expanded)?
+ bool IsVisible(const wxTreeItemId& item) const;
+ // does the item has any children?
+ bool HasChildren(const wxTreeItemId& item) const
+ { return ItemHasChildren(item); }
+ bool ItemHasChildren(const wxTreeItemId& item) const;
+ // is the item expanded (only makes sense if HasChildren())?
+ bool IsExpanded(const wxTreeItemId& item) const;
+ // is this item currently selected (the same as has focus)?
+ bool IsSelected(const wxTreeItemId& item) const;
+ // is item text in bold font?
+ bool IsBold(const wxTreeItemId& item) const;
+ // does the layout include space for a button?
+
+ // number of children
+ // ------------------
+
+ // if 'recursively' is FALSE, only immediate children count, otherwise
+ // the returned number is the number of all items in this branch
+ size_t GetChildrenCount(const wxTreeItemId& item, bool recursively = TRUE);
+
+ // navigation
+ // ----------
+
+ // wxTreeItemId.IsOk() will return FALSE if there is no such item
+
+ // get the root tree item
+ wxTreeItemId GetRootItem() const;
+
+ // get the item currently selected (may return NULL if no selection)
+ wxTreeItemId GetSelection() const;
+
+ // get the items currently selected, return the number of such item
+ size_t GetSelections(wxArrayTreeItemIds&) const;
+
+ // get the parent of this item (may return NULL if root)
+ wxTreeItemId GetParent(const wxTreeItemId& item) const;
+
+ // for this enumeration function you must pass in a "cookie" parameter
+ // which is opaque for the application but is necessary for the library
+ // to make these functions reentrant (i.e. allow more than one
+ // enumeration on one and the same object simultaneously). Of course,
+ // the "cookie" passed to GetFirstChild() and GetNextChild() should be
+ // the same!
+
+ // get the first child of this item
+ wxTreeItemId GetFirstChild(const wxTreeItemId& item, long& cookie) const;
+ // get the next child
+ wxTreeItemId GetNextChild(const wxTreeItemId& item, long& cookie) const;
+ // get the last child of this item - this method doesn't use cookies
+ wxTreeItemId GetLastChild(const wxTreeItemId& item) const;
+
+ // get the next sibling of this item
+ wxTreeItemId GetNextSibling(const wxTreeItemId& item) const;
+ // get the previous sibling
+ wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const;
+
+ // get first visible item
+ wxTreeItemId GetFirstVisibleItem() const;
+ // get the next visible item: item must be visible itself!
+ // see IsVisible() and wxTreeCtrl::GetFirstVisibleItem()
+ wxTreeItemId GetNextVisible(const wxTreeItemId& item) const;
+ // get the previous visible item: item must be visible itself!
+ wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const;
+
+ // Only for internal use right now, but should probably be public
+ wxTreeItemId GetNext(const wxTreeItemId& item) const;
+
+ // operations
+ // ----------
+
+ // add the root node to the tree
+ wxTreeItemId AddRoot(const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxTreeItemData *data = NULL);
+
+ // insert a new item in as the first child of the parent
+ wxTreeItemId PrependItem(const wxTreeItemId& parent,
+ const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxTreeItemData *data = NULL);
+
+ // insert a new item after a given one
+ wxTreeItemId InsertItem(const wxTreeItemId& parent,
+ const wxTreeItemId& idPrevious,
+ const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxTreeItemData *data = NULL);
+
+ // insert a new item before the one with the given index
+ wxTreeItemId InsertItem(const wxTreeItemId& parent,
+ size_t index,
+ const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxTreeItemData *data = NULL);
+
+ // insert a new item in as the last child of the parent
+ wxTreeItemId AppendItem(const wxTreeItemId& parent,
+ const wxString& text,
+ int image = -1, int selectedImage = -1,
+ wxTreeItemData *data = NULL);
+
+ // delete this item and associated data if any
+ void Delete(const wxTreeItemId& item);
+ // delete all children (but don't delete the item itself)
+ // NB: this won't send wxEVT_COMMAND_TREE_ITEM_DELETED events
+ void DeleteChildren(const wxTreeItemId& item);
+ // delete all items from the tree
+ // NB: this won't send wxEVT_COMMAND_TREE_ITEM_DELETED events
+ void DeleteAllItems();
+
+ // expand this item
+ void Expand(const wxTreeItemId& item);
+ // expand this item and all subitems recursively
+ void ExpandAll(const wxTreeItemId& item);
+ // collapse the item without removing its children
+ void Collapse(const wxTreeItemId& item);
+ // collapse the item and remove all children
+ void CollapseAndReset(const wxTreeItemId& item);
+ // toggles the current state
+ void Toggle(const wxTreeItemId& item);
+
+ // remove the selection from currently selected item (if any)
+ void Unselect();
+ void UnselectAll();
+ // select this item
+ void SelectItem(const wxTreeItemId& item, bool unselect_others=TRUE,
+ bool extended_select=FALSE);
+ // make sure this item is visible (expanding the parent item and/or
+ // scrolling to this item if necessary)
+ void EnsureVisible(const wxTreeItemId& item);
+ // scroll to this item (but don't expand its parent)
+ void ScrollTo(const wxTreeItemId& item);
+ //void AdjustMyScrollbars();
+
+ // The first function is more portable (because easier to implement
+ // on other platforms), but the second one returns some extra info.
+ wxTreeItemId HitTest(const wxPoint& point)
+ { int dummy; return HitTest(point, dummy); }
+ wxTreeItemId HitTest(const wxPoint& point, int& flags)
+ { int col; return HitTest(point, flags, col); }
+ wxTreeItemId HitTest(const wxPoint& point, int& flags, int& column);
+
+ // get the bounding rectangle of the item (or of its label only)
+ bool GetBoundingRect(const wxTreeItemId& item,
+ wxRect& rect,
+ bool textOnly = FALSE) const;
+
+ // Start editing the item label: this (temporarily) replaces the item
+ // with a one line edit control. The item will be selected if it hadn't
+ // been before.
+ void EditLabel( const wxTreeItemId& item ) { Edit( item ); }
+ void Edit( const wxTreeItemId& item );
+
+ // sorting
+ // this function is called to compare 2 items and should return -1, 0
+ // or +1 if the first item is less than, equal to or greater than the
+ // second one. The base class version performs alphabetic comparaison
+ // of item labels (GetText)
+ virtual int OnCompareItems(const wxTreeItemId& item1,
+ const wxTreeItemId& item2);
+ // sort the children of this item using OnCompareItems
+ //
+ // NB: this function is not reentrant and not MT-safe (FIXME)!
+ void SortChildren(const wxTreeItemId& item);
+
+ // deprecated functions: use Set/GetItemImage directly
+ // get the selected item image
+ int GetItemSelectedImage(const wxTreeItemId& item) const
+ { return GetItemImage(item, wxTreeItemIcon_Selected); }
+ // set the selected item image
+ void SetItemSelectedImage(const wxTreeItemId& item, int image)
+ { SetItemImage(item, image, wxTreeItemIcon_Selected); }
+
+ // implementation only from now on
+
+ // overridden base class virtuals
+ virtual bool SetBackgroundColour(const wxColour& colour);
+ virtual bool SetForegroundColour(const wxColour& colour);
+
+
+ wxTreeListHeaderWindow* GetHeaderWindow() const
+ { return m_header_win; }
+
+ wxTreeListMainWindow* GetMainWindow() const
+ { return m_main_win; }
+
+
+protected:
+ // header window, responsible for column visualization and manipulation
+ wxTreeListHeaderWindow* m_header_win;
+ // main window, the "true" tree ctrl
+ wxTreeListMainWindow* m_main_win;
+
+ // the common part of all ctors
+ void Init();
+
+ void OnSize(wxSizeEvent& event);
+
+
+private:
+ DECLARE_EVENT_TABLE()
+ DECLARE_DYNAMIC_CLASS(wxTreeListCtrl)
+};
+
+#endif // TREELISTCTRL_H
+
diff --git a/wxPython/contrib/glcanvas/gtk/glcanvas.py b/wxPython/contrib/glcanvas/gtk/glcanvas.py
index 3f0bd13708..1ad92b3818 100644
--- a/wxPython/contrib/glcanvas/gtk/glcanvas.py
+++ b/wxPython/contrib/glcanvas/gtk/glcanvas.py
@@ -54,36 +54,36 @@ class wxGLContextPtr(wxObjectPtr):
except:
pass
def SetCurrent(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_SetCurrent,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_SetCurrent(self, *_args, **_kwargs)
return val
def SetColour(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_SetColour,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_SetColour(self, *_args, **_kwargs)
return val
def SwapBuffers(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_SwapBuffers,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_SwapBuffers(self, *_args, **_kwargs)
return val
def SetupPixelFormat(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_SetupPixelFormat,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_SetupPixelFormat(self, *_args, **_kwargs)
return val
def SetupPalette(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_SetupPalette,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_SetupPalette(self, *_args, **_kwargs)
return val
def CreateDefaultPalette(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_CreateDefaultPalette,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_CreateDefaultPalette(self, *_args, **_kwargs)
if val: val = wxPalettePtr(val) ; val.thisown = 1
return val
def GetPalette(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_GetPalette,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_GetPalette(self, *_args, **_kwargs)
if val: val = wxPalettePtr(val)
return val
def GetWindow(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_GetWindow,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_GetWindow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGLContext instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGLContext(wxGLContextPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(glcanvasc.new_wxGLContext,_args,_kwargs)
+ self.this = glcanvasc.new_wxGLContext(*_args,**_kwargs)
self.thisown = 1
@@ -94,30 +94,30 @@ class wxGLCanvasPtr(wxWindowPtr):
self.this = this
self.thisown = 0
def SetCurrent(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_SetCurrent(self, *_args, **_kwargs)
return val
def SetColour(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_SetColour(self, *_args, **_kwargs)
return val
def SwapBuffers(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_SwapBuffers(self, *_args, **_kwargs)
return val
def GetContext(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_GetContext(self, *_args, **_kwargs)
if val: val = wxGLContextPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGLCanvas(wxGLCanvasPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
+ self.this = glcanvasc.new_wxGLCanvas(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxGLCanvasWithContext(*_args,**_kwargs):
- val = wxGLCanvasPtr(apply(glcanvasc.new_wxGLCanvasWithContext,_args,_kwargs))
+ val = wxGLCanvasPtr(glcanvasc.new_wxGLCanvasWithContext(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(self)
return val
diff --git a/wxPython/contrib/glcanvas/mac/glcanvas.py b/wxPython/contrib/glcanvas/mac/glcanvas.py
index 163eccb7cc..a63c8ac7d3 100644
--- a/wxPython/contrib/glcanvas/mac/glcanvas.py
+++ b/wxPython/contrib/glcanvas/mac/glcanvas.py
@@ -54,19 +54,19 @@ class wxGLContextPtr(wxObjectPtr):
except:
pass
def SetCurrent(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_SetCurrent,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_SetCurrent(self, *_args, **_kwargs)
return val
def SetColour(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_SetColour,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_SetColour(self, *_args, **_kwargs)
return val
def SwapBuffers(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_SwapBuffers,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_SwapBuffers(self, *_args, **_kwargs)
return val
def GetWindow(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_GetWindow,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_GetWindow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGLContext instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGLContext(wxGLContextPtr):
def __init__(self,this):
self.this = this
@@ -79,30 +79,30 @@ class wxGLCanvasPtr(wxWindowPtr):
self.this = this
self.thisown = 0
def SetCurrent(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_SetCurrent(self, *_args, **_kwargs)
return val
def SetColour(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_SetColour(self, *_args, **_kwargs)
return val
def SwapBuffers(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_SwapBuffers(self, *_args, **_kwargs)
return val
def GetContext(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_GetContext(self, *_args, **_kwargs)
if val: val = wxGLContextPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGLCanvas(wxGLCanvasPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
+ self.this = glcanvasc.new_wxGLCanvas(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxGLCanvasWithContext(*_args,**_kwargs):
- val = wxGLCanvasPtr(apply(glcanvasc.new_wxGLCanvasWithContext,_args,_kwargs))
+ val = wxGLCanvasPtr(glcanvasc.new_wxGLCanvasWithContext(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(self)
return val
diff --git a/wxPython/contrib/glcanvas/msw/glcanvas.py b/wxPython/contrib/glcanvas/msw/glcanvas.py
index a7b7b8dd67..fa4d7f1c4a 100644
--- a/wxPython/contrib/glcanvas/msw/glcanvas.py
+++ b/wxPython/contrib/glcanvas/msw/glcanvas.py
@@ -54,22 +54,22 @@ class wxGLContextPtr(wxObjectPtr):
except:
pass
def SetCurrent(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_SetCurrent,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_SetCurrent(self, *_args, **_kwargs)
return val
def SetColour(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_SetColour,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_SetColour(self, *_args, **_kwargs)
return val
def SwapBuffers(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_SwapBuffers,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_SwapBuffers(self, *_args, **_kwargs)
return val
def GetWindow(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLContext_GetWindow,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLContext_GetWindow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGLContext instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGLContext(wxGLContextPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(glcanvasc.new_wxGLContext,_args,_kwargs)
+ self.this = glcanvasc.new_wxGLContext(*_args,**_kwargs)
self.thisown = 1
@@ -80,44 +80,44 @@ class wxGLCanvasPtr(wxWindowPtr):
self.this = this
self.thisown = 0
def SetCurrent(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_SetCurrent(self, *_args, **_kwargs)
return val
def SetColour(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_SetColour(self, *_args, **_kwargs)
return val
def SwapBuffers(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_SwapBuffers(self, *_args, **_kwargs)
return val
def GetContext(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_GetContext(self, *_args, **_kwargs)
if val: val = wxGLContextPtr(val)
return val
def SetupPixelFormat(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SetupPixelFormat,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_SetupPixelFormat(self, *_args, **_kwargs)
return val
def SetupPalette(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SetupPalette,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_SetupPalette(self, *_args, **_kwargs)
return val
def CreateDefaultPalette(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_CreateDefaultPalette,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_CreateDefaultPalette(self, *_args, **_kwargs)
if val: val = wxPalettePtr(val) ; val.thisown = 1
return val
def GetPalette(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_GetPalette,(self,) + _args, _kwargs)
+ val = glcanvasc.wxGLCanvas_GetPalette(self, *_args, **_kwargs)
if val: val = wxPalettePtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGLCanvas(wxGLCanvasPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
+ self.this = glcanvasc.new_wxGLCanvas(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxGLCanvasWithContext(*_args,**_kwargs):
- val = wxGLCanvasPtr(apply(glcanvasc.new_wxGLCanvasWithContext,_args,_kwargs))
+ val = wxGLCanvasPtr(glcanvasc.new_wxGLCanvasWithContext(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(self)
return val
diff --git a/wxPython/contrib/iewin/iewin.py b/wxPython/contrib/iewin/iewin.py
index 1bc59d7e3a..e6f2b0a9fe 100644
--- a/wxPython/contrib/iewin/iewin.py
+++ b/wxPython/contrib/iewin/iewin.py
@@ -67,19 +67,19 @@ class wxMSHTMLEventPtr(wxNotifyEventPtr):
self.this = this
self.thisown = 0
def GetText1(self, *_args, **_kwargs):
- val = apply(iewinc.wxMSHTMLEvent_GetText1,(self,) + _args, _kwargs)
+ val = iewinc.wxMSHTMLEvent_GetText1(self, *_args, **_kwargs)
return val
def GetLong1(self, *_args, **_kwargs):
- val = apply(iewinc.wxMSHTMLEvent_GetLong1,(self,) + _args, _kwargs)
+ val = iewinc.wxMSHTMLEvent_GetLong1(self, *_args, **_kwargs)
return val
def GetLong2(self, *_args, **_kwargs):
- val = apply(iewinc.wxMSHTMLEvent_GetLong2,(self,) + _args, _kwargs)
+ val = iewinc.wxMSHTMLEvent_GetLong2(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMSHTMLEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMSHTMLEvent(wxMSHTMLEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(iewinc.new_wxMSHTMLEvent,_args,_kwargs)
+ self.this = iewinc.new_wxMSHTMLEvent(*_args,**_kwargs)
self.thisown = 1
@@ -90,53 +90,53 @@ class wxIEHtmlWinPtr(wxWindowPtr):
self.this = this
self.thisown = 0
def LoadUrl(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_LoadUrl,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_LoadUrl(self, *_args, **_kwargs)
return val
def LoadString(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_LoadString,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_LoadString(self, *_args, **_kwargs)
return val
def LoadStream(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_LoadStream,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_LoadStream(self, *_args, **_kwargs)
return val
def SetCharset(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_SetCharset,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_SetCharset(self, *_args, **_kwargs)
return val
def SetEditMode(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_SetEditMode,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_SetEditMode(self, *_args, **_kwargs)
return val
def GetEditMode(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_GetEditMode,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_GetEditMode(self, *_args, **_kwargs)
return val
def GetStringSelection(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_GetStringSelection,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_GetStringSelection(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_GetText,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_GetText(self, *_args, **_kwargs)
return val
def GoBack(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_GoBack,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_GoBack(self, *_args, **_kwargs)
return val
def GoForward(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_GoForward,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_GoForward(self, *_args, **_kwargs)
return val
def GoHome(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_GoHome,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_GoHome(self, *_args, **_kwargs)
return val
def GoSearch(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_GoSearch,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_GoSearch(self, *_args, **_kwargs)
return val
def RefreshPage(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_RefreshPage,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_RefreshPage(self, *_args, **_kwargs)
return val
def Stop(self, *_args, **_kwargs):
- val = apply(iewinc.wxIEHtmlWin_Stop,(self,) + _args, _kwargs)
+ val = iewinc.wxIEHtmlWin_Stop(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxIEHtmlWin instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
Navigate = LoadUrl
class wxIEHtmlWin(wxIEHtmlWinPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(iewinc.new_wxIEHtmlWin,_args,_kwargs)
+ self.this = iewinc.new_wxIEHtmlWin(*_args,**_kwargs)
self.thisown = 1
diff --git a/wxPython/contrib/ogl/oglbasic.py b/wxPython/contrib/ogl/oglbasic.py
index f9270c70d8..c2ed2695e5 100644
--- a/wxPython/contrib/ogl/oglbasic.py
+++ b/wxPython/contrib/ogl/oglbasic.py
@@ -49,97 +49,97 @@ class wxShapeRegionPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def SetText(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_SetText,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_SetText(self, *_args, **_kwargs)
return val
def SetFont(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_SetFont,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_SetFont(self, *_args, **_kwargs)
return val
def SetMinSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_SetMinSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_SetMinSize(self, *_args, **_kwargs)
return val
def SetSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_SetSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_SetSize(self, *_args, **_kwargs)
return val
def SetPosition(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_SetPosition,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_SetPosition(self, *_args, **_kwargs)
return val
def SetProportions(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_SetProportions,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_SetProportions(self, *_args, **_kwargs)
return val
def SetFormatMode(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_SetFormatMode,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_SetFormatMode(self, *_args, **_kwargs)
return val
def SetName(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_SetName,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_SetName(self, *_args, **_kwargs)
return val
def SetColour(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_SetColour,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_SetColour(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetText,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetText(self, *_args, **_kwargs)
return val
def GetFont(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetFont,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val)
return val
def GetMinSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetMinSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetMinSize(self, *_args, **_kwargs)
return val
def GetProportion(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetProportion,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetProportion(self, *_args, **_kwargs)
return val
def GetSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetSize(self, *_args, **_kwargs)
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetPosition,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetPosition(self, *_args, **_kwargs)
return val
def GetFormatMode(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetFormatMode,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetFormatMode(self, *_args, **_kwargs)
return val
def GetName(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetName,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetName(self, *_args, **_kwargs)
return val
def GetColour(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetColour,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetColour(self, *_args, **_kwargs)
return val
def GetActualColourObject(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetActualColourObject,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetActualColourObject(self, *_args, **_kwargs)
if val: val = wxColourPtr(val)
return val
def GetFormattedText(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetFormattedText,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetFormattedText(self, *_args, **_kwargs)
return val
def GetPenColour(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetPenColour,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetPenColour(self, *_args, **_kwargs)
return val
def GetPenStyle(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetPenStyle,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetPenStyle(self, *_args, **_kwargs)
return val
def SetPenStyle(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_SetPenStyle,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_SetPenStyle(self, *_args, **_kwargs)
return val
def SetPenColour(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_SetPenColour,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_SetPenColour(self, *_args, **_kwargs)
return val
def GetActualPen(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetActualPen,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetActualPen(self, *_args, **_kwargs)
if val: val = wxPenPtr(val)
return val
def GetWidth(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetWidth,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetWidth(self, *_args, **_kwargs)
return val
def GetHeight(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_GetHeight,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_GetHeight(self, *_args, **_kwargs)
return val
def ClearText(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxShapeRegion_ClearText,(self,) + _args, _kwargs)
+ val = oglbasicc.wxShapeRegion_ClearText(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxShapeRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxShapeRegion(wxShapeRegionPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglbasicc.new_wxShapeRegion,_args,_kwargs)
+ self.this = oglbasicc.new_wxShapeRegion(*_args,**_kwargs)
self.thisown = 1
@@ -150,121 +150,121 @@ class wxPyShapeEvtHandlerPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler__setCallbackInfo(self, *_args, **_kwargs)
return val
def Destroy(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_Destroy,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_Destroy(self, *_args, **_kwargs)
return val
def _setOORInfo(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler__setOORInfo,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler__setOORInfo(self, *_args, **_kwargs)
return val
def SetShape(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_SetShape,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_SetShape(self, *_args, **_kwargs)
return val
def GetShape(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_GetShape,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_GetShape(self, *_args, **_kwargs)
return val
def SetPreviousHandler(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_SetPreviousHandler,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_SetPreviousHandler(self, *_args, **_kwargs)
return val
def GetPreviousHandler(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_GetPreviousHandler,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_GetPreviousHandler(self, *_args, **_kwargs)
return val
def CreateNewCopy(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_CreateNewCopy,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_CreateNewCopy(self, *_args, **_kwargs)
return val
def base_OnDelete(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnDelete,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnDelete(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnErase,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShapeEvtHandler_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShapeEvtHandler_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyShapeEvtHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyShapeEvtHandler(wxPyShapeEvtHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglbasicc.new_wxPyShapeEvtHandler,_args,_kwargs)
+ self.this = oglbasicc.new_wxPyShapeEvtHandler(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyShapeEvtHandler)
self._setOORInfo(self)
@@ -277,506 +277,506 @@ class wxPyShapePtr(wxPyShapeEvtHandlerPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape__setCallbackInfo(self, *_args, **_kwargs)
return val
def GetBoundingBoxMax(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetBoundingBoxMax,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetBoundingBoxMax(self, *_args, **_kwargs)
return val
def GetBoundingBoxMin(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetBoundingBoxMin,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetBoundingBoxMin(self, *_args, **_kwargs)
return val
def GetPerimeterPoint(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetPerimeterPoint,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetPerimeterPoint(self, *_args, **_kwargs)
return val
def GetCanvas(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetCanvas,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetCanvas(self, *_args, **_kwargs)
return val
def SetCanvas(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetCanvas,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetCanvas(self, *_args, **_kwargs)
return val
def AddToCanvas(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_AddToCanvas,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_AddToCanvas(self, *_args, **_kwargs)
return val
def InsertInCanvas(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_InsertInCanvas,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_InsertInCanvas(self, *_args, **_kwargs)
return val
def RemoveFromCanvas(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_RemoveFromCanvas,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_RemoveFromCanvas(self, *_args, **_kwargs)
return val
def GetX(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetX,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetX(self, *_args, **_kwargs)
return val
def GetY(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetY,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetY(self, *_args, **_kwargs)
return val
def SetX(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetX,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetX(self, *_args, **_kwargs)
return val
def SetY(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetY,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetY(self, *_args, **_kwargs)
return val
def GetParent(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetParent,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetParent(self, *_args, **_kwargs)
return val
def SetParent(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetParent,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetParent(self, *_args, **_kwargs)
return val
def GetTopAncestor(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetTopAncestor,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetTopAncestor(self, *_args, **_kwargs)
return val
def GetChildren(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetChildren,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetChildren(self, *_args, **_kwargs)
return val
def Unlink(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Unlink,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Unlink(self, *_args, **_kwargs)
return val
def SetDrawHandles(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetDrawHandles,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetDrawHandles(self, *_args, **_kwargs)
return val
def GetDrawHandles(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetDrawHandles,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetDrawHandles(self, *_args, **_kwargs)
return val
def MakeControlPoints(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_MakeControlPoints,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_MakeControlPoints(self, *_args, **_kwargs)
return val
def DeleteControlPoints(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_DeleteControlPoints,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_DeleteControlPoints(self, *_args, **_kwargs)
return val
def ResetControlPoints(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_ResetControlPoints,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_ResetControlPoints(self, *_args, **_kwargs)
return val
def GetEventHandler(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetEventHandler,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetEventHandler(self, *_args, **_kwargs)
return val
def SetEventHandler(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetEventHandler,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetEventHandler(self, *_args, **_kwargs)
return val
def MakeMandatoryControlPoints(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_MakeMandatoryControlPoints,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_MakeMandatoryControlPoints(self, *_args, **_kwargs)
return val
def ResetMandatoryControlPoints(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_ResetMandatoryControlPoints,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_ResetMandatoryControlPoints(self, *_args, **_kwargs)
return val
def Recompute(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Recompute,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Recompute(self, *_args, **_kwargs)
return val
def CalculateSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_CalculateSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_CalculateSize(self, *_args, **_kwargs)
return val
def Select(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Select,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Select(self, *_args, **_kwargs)
return val
def SetHighlight(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetHighlight,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetHighlight(self, *_args, **_kwargs)
return val
def IsHighlighted(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_IsHighlighted,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_IsHighlighted(self, *_args, **_kwargs)
return val
def Selected(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Selected,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Selected(self, *_args, **_kwargs)
return val
def AncestorSelected(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_AncestorSelected,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_AncestorSelected(self, *_args, **_kwargs)
return val
def SetSensitivityFilter(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetSensitivityFilter,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetSensitivityFilter(self, *_args, **_kwargs)
return val
def GetSensitivityFilter(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetSensitivityFilter,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetSensitivityFilter(self, *_args, **_kwargs)
return val
def SetDraggable(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetDraggable,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetDraggable(self, *_args, **_kwargs)
return val
def SetFixedSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetFixedSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetFixedSize(self, *_args, **_kwargs)
return val
def GetFixedSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetFixedSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetFixedSize(self, *_args, **_kwargs)
return val
def GetFixedWidth(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetFixedWidth,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetFixedWidth(self, *_args, **_kwargs)
return val
def GetFixedHeight(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetFixedHeight,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetFixedHeight(self, *_args, **_kwargs)
return val
def SetSpaceAttachments(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetSpaceAttachments,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetSpaceAttachments(self, *_args, **_kwargs)
return val
def GetSpaceAttachments(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetSpaceAttachments,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetSpaceAttachments(self, *_args, **_kwargs)
return val
def SetShadowMode(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetShadowMode,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetShadowMode(self, *_args, **_kwargs)
return val
def GetShadowMode(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetShadowMode,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetShadowMode(self, *_args, **_kwargs)
return val
def HitTest(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_HitTest,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_HitTest(self, *_args, **_kwargs)
return val
def SetCentreResize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetCentreResize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetCentreResize(self, *_args, **_kwargs)
return val
def GetCentreResize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetCentreResize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetCentreResize(self, *_args, **_kwargs)
return val
def SetMaintainAspectRatio(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetMaintainAspectRatio,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetMaintainAspectRatio(self, *_args, **_kwargs)
return val
def GetMaintainAspectRatio(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetMaintainAspectRatio,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetMaintainAspectRatio(self, *_args, **_kwargs)
return val
def GetLines(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetLines,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetLines(self, *_args, **_kwargs)
return val
def SetDisableLabel(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetDisableLabel,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetDisableLabel(self, *_args, **_kwargs)
return val
def GetDisableLabel(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetDisableLabel,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetDisableLabel(self, *_args, **_kwargs)
return val
def SetAttachmentMode(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetAttachmentMode,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetAttachmentMode(self, *_args, **_kwargs)
return val
def GetAttachmentMode(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetAttachmentMode,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetAttachmentMode(self, *_args, **_kwargs)
return val
def SetId(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetId,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetId(self, *_args, **_kwargs)
return val
def GetId(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetId,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetId(self, *_args, **_kwargs)
return val
def SetPen(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetPen,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetPen(self, *_args, **_kwargs)
return val
def SetBrush(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetBrush,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetBrush(self, *_args, **_kwargs)
return val
def Show(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Show,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Show(self, *_args, **_kwargs)
return val
def IsShown(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_IsShown,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_IsShown(self, *_args, **_kwargs)
return val
def Move(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Move,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Move(self, *_args, **_kwargs)
return val
def Erase(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Erase,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Erase(self, *_args, **_kwargs)
return val
def EraseContents(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_EraseContents,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_EraseContents(self, *_args, **_kwargs)
return val
def Draw(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Draw,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Draw(self, *_args, **_kwargs)
return val
def Flash(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Flash,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Flash(self, *_args, **_kwargs)
return val
def MoveLinks(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_MoveLinks,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_MoveLinks(self, *_args, **_kwargs)
return val
def DrawContents(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_DrawContents,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_DrawContents(self, *_args, **_kwargs)
return val
def SetSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetSize(self, *_args, **_kwargs)
return val
def SetAttachmentSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetAttachmentSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetAttachmentSize(self, *_args, **_kwargs)
return val
def Attach(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Attach,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Attach(self, *_args, **_kwargs)
return val
def Detach(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Detach,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Detach(self, *_args, **_kwargs)
return val
def Constrain(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Constrain,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Constrain(self, *_args, **_kwargs)
return val
def AddLine(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_AddLine,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_AddLine(self, *_args, **_kwargs)
return val
def GetLinePosition(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetLinePosition,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetLinePosition(self, *_args, **_kwargs)
return val
def AddText(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_AddText,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_AddText(self, *_args, **_kwargs)
return val
def GetPen(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetPen,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetPen(self, *_args, **_kwargs)
if val: val = wxPenPtr(val)
return val
def GetBrush(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetBrush,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetBrush(self, *_args, **_kwargs)
if val: val = wxBrushPtr(val)
return val
def SetDefaultRegionSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetDefaultRegionSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetDefaultRegionSize(self, *_args, **_kwargs)
return val
def FormatText(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_FormatText,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_FormatText(self, *_args, **_kwargs)
return val
def SetFormatMode(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetFormatMode,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetFormatMode(self, *_args, **_kwargs)
return val
def GetFormatMode(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetFormatMode,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetFormatMode(self, *_args, **_kwargs)
return val
def SetFont(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetFont,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetFont(self, *_args, **_kwargs)
return val
def GetFont(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetFont,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val)
return val
def SetTextColour(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetTextColour,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetTextColour(self, *_args, **_kwargs)
return val
def GetTextColour(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetTextColour,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetTextColour(self, *_args, **_kwargs)
return val
def GetNumberOfTextRegions(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetNumberOfTextRegions,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetNumberOfTextRegions(self, *_args, **_kwargs)
return val
def SetRegionName(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetRegionName,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetRegionName(self, *_args, **_kwargs)
return val
def GetRegionName(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetRegionName,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetRegionName(self, *_args, **_kwargs)
return val
def GetRegionId(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetRegionId,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetRegionId(self, *_args, **_kwargs)
return val
def NameRegions(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_NameRegions,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_NameRegions(self, *_args, **_kwargs)
return val
def GetRegions(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetRegions,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetRegions(self, *_args, **_kwargs)
return val
def AddRegion(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_AddRegion,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_AddRegion(self, *_args, **_kwargs)
return val
def ClearRegions(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_ClearRegions,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_ClearRegions(self, *_args, **_kwargs)
return val
def AssignNewIds(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_AssignNewIds,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_AssignNewIds(self, *_args, **_kwargs)
return val
def FindRegion(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_FindRegion,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_FindRegion(self, *_args, **_kwargs)
return val
def FindRegionNames(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_FindRegionNames,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_FindRegionNames(self, *_args, **_kwargs)
return val
def ClearText(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_ClearText,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_ClearText(self, *_args, **_kwargs)
return val
def RemoveLine(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_RemoveLine,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_RemoveLine(self, *_args, **_kwargs)
return val
def GetAttachmentPosition(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetAttachmentPosition,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetAttachmentPosition(self, *_args, **_kwargs)
return val
def GetNumberOfAttachments(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetNumberOfAttachments,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetNumberOfAttachments(self, *_args, **_kwargs)
return val
def AttachmentIsValid(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_AttachmentIsValid,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_AttachmentIsValid(self, *_args, **_kwargs)
return val
def GetAttachmentPositionEdge(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetAttachmentPositionEdge,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetAttachmentPositionEdge(self, *_args, **_kwargs)
return val
def CalcSimpleAttachment(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_CalcSimpleAttachment,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_CalcSimpleAttachment(self, *_args, **_kwargs)
if val: val = wxRealPointPtr(val) ; val.thisown = 1
return val
def AttachmentSortTest(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_AttachmentSortTest,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_AttachmentSortTest(self, *_args, **_kwargs)
return val
def EraseLinks(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_EraseLinks,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_EraseLinks(self, *_args, **_kwargs)
return val
def DrawLinks(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_DrawLinks,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_DrawLinks(self, *_args, **_kwargs)
return val
def MoveLineToNewAttachment(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_MoveLineToNewAttachment,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_MoveLineToNewAttachment(self, *_args, **_kwargs)
return val
def ApplyAttachmentOrdering(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_ApplyAttachmentOrdering,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_ApplyAttachmentOrdering(self, *_args, **_kwargs)
return val
def GetBranchingAttachmentRoot(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetBranchingAttachmentRoot,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetBranchingAttachmentRoot(self, *_args, **_kwargs)
if val: val = wxRealPointPtr(val) ; val.thisown = 1
return val
def GetBranchingAttachmentInfo(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetBranchingAttachmentInfo,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetBranchingAttachmentInfo(self, *_args, **_kwargs)
return val
def GetBranchingAttachmentPoint(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetBranchingAttachmentPoint,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetBranchingAttachmentPoint(self, *_args, **_kwargs)
return val
def GetAttachmentLineCount(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetAttachmentLineCount,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetAttachmentLineCount(self, *_args, **_kwargs)
return val
def SetBranchNeckLength(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetBranchNeckLength,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetBranchNeckLength(self, *_args, **_kwargs)
return val
def GetBranchNeckLength(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetBranchNeckLength,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetBranchNeckLength(self, *_args, **_kwargs)
return val
def SetBranchStemLength(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetBranchStemLength,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetBranchStemLength(self, *_args, **_kwargs)
return val
def GetBranchStemLength(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetBranchStemLength,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetBranchStemLength(self, *_args, **_kwargs)
return val
def SetBranchSpacing(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetBranchSpacing,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetBranchSpacing(self, *_args, **_kwargs)
return val
def GetBranchSpacing(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetBranchSpacing,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetBranchSpacing(self, *_args, **_kwargs)
return val
def SetBranchStyle(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_SetBranchStyle,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_SetBranchStyle(self, *_args, **_kwargs)
return val
def GetBranchStyle(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetBranchStyle,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetBranchStyle(self, *_args, **_kwargs)
return val
def PhysicalToLogicalAttachment(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_PhysicalToLogicalAttachment,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_PhysicalToLogicalAttachment(self, *_args, **_kwargs)
return val
def LogicalToPhysicalAttachment(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_LogicalToPhysicalAttachment,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_LogicalToPhysicalAttachment(self, *_args, **_kwargs)
return val
def Draggable(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Draggable,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Draggable(self, *_args, **_kwargs)
return val
def HasDescendant(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_HasDescendant,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_HasDescendant(self, *_args, **_kwargs)
return val
def CreateNewCopy(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_CreateNewCopy,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_CreateNewCopy(self, *_args, **_kwargs)
return val
def Copy(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Copy,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Copy(self, *_args, **_kwargs)
return val
def CopyWithHandler(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_CopyWithHandler,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_CopyWithHandler(self, *_args, **_kwargs)
return val
def Rotate(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Rotate,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Rotate(self, *_args, **_kwargs)
return val
def GetRotation(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetRotation,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetRotation(self, *_args, **_kwargs)
return val
def ClearAttachments(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_ClearAttachments,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_ClearAttachments(self, *_args, **_kwargs)
return val
def Recentre(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_Recentre,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_Recentre(self, *_args, **_kwargs)
return val
def ClearPointList(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_ClearPointList,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_ClearPointList(self, *_args, **_kwargs)
return val
def GetBackgroundPen(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetBackgroundPen,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetBackgroundPen(self, *_args, **_kwargs)
if val: val = wxPenPtr(val) ; val.thisown = 1
return val
def GetBackgroundBrush(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_GetBackgroundBrush,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_GetBackgroundBrush(self, *_args, **_kwargs)
if val: val = wxBrushPtr(val) ; val.thisown = 1
return val
def base_OnDelete(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnDelete,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnDelete(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnErase,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglbasicc.wxPyShape_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglbasicc.wxPyShape_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
def SetClientData(self, data):
self.clientData = data
diff --git a/wxPython/contrib/ogl/oglcanvas.py b/wxPython/contrib/ogl/oglcanvas.py
index 6a6a7459bd..652eba725a 100644
--- a/wxPython/contrib/ogl/oglcanvas.py
+++ b/wxPython/contrib/ogl/oglcanvas.py
@@ -50,82 +50,82 @@ class wxDiagramPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def AddShape(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_AddShape,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_AddShape(self, *_args, **_kwargs)
return val
def Clear(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_Clear,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_Clear(self, *_args, **_kwargs)
return val
def DeleteAllShapes(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_DeleteAllShapes,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_DeleteAllShapes(self, *_args, **_kwargs)
return val
def DrawOutline(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_DrawOutline,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_DrawOutline(self, *_args, **_kwargs)
return val
def FindShape(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_FindShape,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_FindShape(self, *_args, **_kwargs)
return val
def GetCanvas(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_GetCanvas,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_GetCanvas(self, *_args, **_kwargs)
return val
def GetCount(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_GetCount,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_GetCount(self, *_args, **_kwargs)
return val
def GetGridSpacing(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_GetGridSpacing,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_GetGridSpacing(self, *_args, **_kwargs)
return val
def GetMouseTolerance(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_GetMouseTolerance,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_GetMouseTolerance(self, *_args, **_kwargs)
return val
def GetShapeList(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_GetShapeList,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_GetShapeList(self, *_args, **_kwargs)
return val
def GetQuickEditMode(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_GetQuickEditMode,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_GetQuickEditMode(self, *_args, **_kwargs)
return val
def GetSnapToGrid(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_GetSnapToGrid,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_GetSnapToGrid(self, *_args, **_kwargs)
return val
def InsertShape(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_InsertShape,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_InsertShape(self, *_args, **_kwargs)
return val
def RecentreAll(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_RecentreAll,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_RecentreAll(self, *_args, **_kwargs)
return val
def Redraw(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_Redraw,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_Redraw(self, *_args, **_kwargs)
return val
def RemoveAllShapes(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_RemoveAllShapes,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_RemoveAllShapes(self, *_args, **_kwargs)
return val
def RemoveShape(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_RemoveShape,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_RemoveShape(self, *_args, **_kwargs)
return val
def SetCanvas(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_SetCanvas,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_SetCanvas(self, *_args, **_kwargs)
return val
def SetGridSpacing(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_SetGridSpacing,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_SetGridSpacing(self, *_args, **_kwargs)
return val
def SetMouseTolerance(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_SetMouseTolerance,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_SetMouseTolerance(self, *_args, **_kwargs)
return val
def SetQuickEditMode(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_SetQuickEditMode,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_SetQuickEditMode(self, *_args, **_kwargs)
return val
def SetSnapToGrid(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_SetSnapToGrid,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_SetSnapToGrid(self, *_args, **_kwargs)
return val
def ShowAll(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_ShowAll,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_ShowAll(self, *_args, **_kwargs)
return val
def Snap(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxDiagram_Snap,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxDiagram_Snap(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDiagram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDiagram(wxDiagramPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglcanvasc.new_wxDiagram,_args,_kwargs)
+ self.this = oglcanvasc.new_wxDiagram(*_args,**_kwargs)
self.thisown = 1
@@ -136,71 +136,71 @@ class wxPyShapeCanvasPtr(wxScrolledWindowPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas__setCallbackInfo(self, *_args, **_kwargs)
return val
def AddShape(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_AddShape,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_AddShape(self, *_args, **_kwargs)
return val
def FindShape(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_FindShape,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_FindShape(self, *_args, **_kwargs)
return val
def FindFirstSensitiveShape(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_FindFirstSensitiveShape,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_FindFirstSensitiveShape(self, *_args, **_kwargs)
return val
def GetDiagram(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_GetDiagram,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_GetDiagram(self, *_args, **_kwargs)
return val
def GetQuickEditMode(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_GetQuickEditMode,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_GetQuickEditMode(self, *_args, **_kwargs)
return val
def InsertShape(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_InsertShape,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_InsertShape(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_base_OnRightClick(self, *_args, **_kwargs)
return val
def Redraw(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_Redraw,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_Redraw(self, *_args, **_kwargs)
return val
def RemoveShape(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_RemoveShape,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_RemoveShape(self, *_args, **_kwargs)
return val
def SetDiagram(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_SetDiagram,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_SetDiagram(self, *_args, **_kwargs)
return val
def Snap(self, *_args, **_kwargs):
- val = apply(oglcanvasc.wxPyShapeCanvas_Snap,(self,) + _args, _kwargs)
+ val = oglcanvasc.wxPyShapeCanvas_Snap(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyShapeCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
def GetShapeList(self):
return self.GetDiagram().GetShapeList()
class wxPyShapeCanvas(wxPyShapeCanvasPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglcanvasc.new_wxPyShapeCanvas,_args,_kwargs)
+ self.this = oglcanvasc.new_wxPyShapeCanvas(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyShapeCanvas)
self._setOORInfo(self)
diff --git a/wxPython/contrib/ogl/oglhelpers.h b/wxPython/contrib/ogl/oglhelpers.h
index 010e72e0a0..d5c9281858 100644
--- a/wxPython/contrib/ogl/oglhelpers.h
+++ b/wxPython/contrib/ogl/oglhelpers.h
@@ -54,8 +54,7 @@
DEC_PYCALLBACK__WXCP2DBL2INT (OnSizingEndDragLeft); \
DEC_PYCALLBACK__2DBL (OnBeginSize); \
DEC_PYCALLBACK__2DBL (OnEndSize); \
- \
- PYPRIVATE;
+ PYPRIVATE
#define WXSHAPE_IMP_CALLBACKS(CLASS, PARENT) \
@@ -87,7 +86,7 @@
IMP_PYCALLBACK__WXCP2DBL2INT (CLASS, PARENT, OnSizingBeginDragLeft);\
IMP_PYCALLBACK__WXCP2DBL2INT (CLASS, PARENT, OnSizingEndDragLeft); \
IMP_PYCALLBACK__2DBL (CLASS, PARENT, OnBeginSize); \
- IMP_PYCALLBACK__2DBL (CLASS, PARENT, OnEndSize); \
+ IMP_PYCALLBACK__2DBL (CLASS, PARENT, OnEndSize)
// This one may be difficult...
diff --git a/wxPython/contrib/ogl/oglshapes.py b/wxPython/contrib/ogl/oglshapes.py
index 4090867d08..1cbd1eeb8f 100644
--- a/wxPython/contrib/ogl/oglshapes.py
+++ b/wxPython/contrib/ogl/oglshapes.py
@@ -56,129 +56,129 @@ class wxPseudoMetaFilePtr(wxObjectPtr):
except:
pass
def Draw(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_Draw,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_Draw(self, *_args, **_kwargs)
return val
def Clear(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_Clear,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_Clear(self, *_args, **_kwargs)
return val
def Copy(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_Copy,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_Copy(self, *_args, **_kwargs)
return val
def Scale(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_Scale,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_Scale(self, *_args, **_kwargs)
return val
def ScaleTo(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_ScaleTo,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_ScaleTo(self, *_args, **_kwargs)
return val
def Translate(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_Translate,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_Translate(self, *_args, **_kwargs)
return val
def Rotate(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_Rotate,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_Rotate(self, *_args, **_kwargs)
return val
def LoadFromMetaFile(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_LoadFromMetaFile,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_LoadFromMetaFile(self, *_args, **_kwargs)
return val
def GetBounds(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_GetBounds,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_GetBounds(self, *_args, **_kwargs)
return val
def CalculateSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_CalculateSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_CalculateSize(self, *_args, **_kwargs)
return val
def SetRotateable(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_SetRotateable,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_SetRotateable(self, *_args, **_kwargs)
return val
def GetRotateable(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_GetRotateable,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_GetRotateable(self, *_args, **_kwargs)
return val
def SetSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_SetSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_SetSize(self, *_args, **_kwargs)
return val
def SetFillBrush(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_SetFillBrush,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_SetFillBrush(self, *_args, **_kwargs)
return val
def GetFillBrush(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_GetFillBrush,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_GetFillBrush(self, *_args, **_kwargs)
if val: val = wxBrushPtr(val)
return val
def SetOutlinePen(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_SetOutlinePen,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_SetOutlinePen(self, *_args, **_kwargs)
return val
def GetOutlinePen(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_GetOutlinePen,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_GetOutlinePen(self, *_args, **_kwargs)
if val: val = wxPenPtr(val)
return val
def SetOutlineOp(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_SetOutlineOp,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_SetOutlineOp(self, *_args, **_kwargs)
return val
def GetOutlineOp(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_GetOutlineOp,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_GetOutlineOp(self, *_args, **_kwargs)
return val
def IsValid(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_IsValid,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_IsValid(self, *_args, **_kwargs)
return val
def DrawLine(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_DrawLine,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_DrawLine(self, *_args, **_kwargs)
return val
def DrawRectangle(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_DrawRectangle,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_DrawRectangle(self, *_args, **_kwargs)
return val
def DrawRoundedRectangle(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_DrawRoundedRectangle,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_DrawRoundedRectangle(self, *_args, **_kwargs)
return val
def DrawArc(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_DrawArc,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_DrawArc(self, *_args, **_kwargs)
return val
def DrawEllipticArc(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_DrawEllipticArc,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_DrawEllipticArc(self, *_args, **_kwargs)
return val
def DrawEllipse(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_DrawEllipse,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_DrawEllipse(self, *_args, **_kwargs)
return val
def DrawPoint(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_DrawPoint,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_DrawPoint(self, *_args, **_kwargs)
return val
def DrawText(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_DrawText,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_DrawText(self, *_args, **_kwargs)
return val
def DrawLines(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_DrawLines,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_DrawLines(self, *_args, **_kwargs)
return val
def DrawPolygon(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_DrawPolygon,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_DrawPolygon(self, *_args, **_kwargs)
return val
def DrawSpline(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_DrawSpline,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_DrawSpline(self, *_args, **_kwargs)
return val
def SetClippingRect(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_SetClippingRect,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_SetClippingRect(self, *_args, **_kwargs)
return val
def DestroyClippingRect(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_DestroyClippingRect,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_DestroyClippingRect(self, *_args, **_kwargs)
return val
def SetPen(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_SetPen,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_SetPen(self, *_args, **_kwargs)
return val
def SetBrush(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_SetBrush,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_SetBrush(self, *_args, **_kwargs)
return val
def SetFont(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_SetFont,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_SetFont(self, *_args, **_kwargs)
return val
def SetTextColour(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_SetTextColour,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_SetTextColour(self, *_args, **_kwargs)
return val
def SetBackgroundColour(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_SetBackgroundColour,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_SetBackgroundColour(self, *_args, **_kwargs)
return val
def SetBackgroundMode(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPseudoMetaFile_SetBackgroundMode,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPseudoMetaFile_SetBackgroundMode(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPseudoMetaFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPseudoMetaFile(wxPseudoMetaFilePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapesc.new_wxPseudoMetaFile,_args,_kwargs)
+ self.this = oglshapesc.new_wxPseudoMetaFile(*_args,**_kwargs)
self.thisown = 1
@@ -189,103 +189,103 @@ class wxPyRectangleShapePtr(wxPyShapePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape__setCallbackInfo(self, *_args, **_kwargs)
return val
def SetCornerRadius(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_SetCornerRadius,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_SetCornerRadius(self, *_args, **_kwargs)
return val
def base_OnDelete(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnDelete,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnDelete(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnErase,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyRectangleShape_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyRectangleShape_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyRectangleShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyRectangleShape(wxPyRectangleShapePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapesc.new_wxPyRectangleShape,_args,_kwargs)
+ self.this = oglshapesc.new_wxPyRectangleShape(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyRectangleShape)
self._setOORInfo(self)
@@ -298,103 +298,103 @@ class wxPyControlPointPtr(wxPyRectangleShapePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint__setCallbackInfo(self, *_args, **_kwargs)
return val
def SetCornerRadius(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_SetCornerRadius,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_SetCornerRadius(self, *_args, **_kwargs)
return val
def base_OnDelete(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnDelete,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnDelete(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnErase,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyControlPoint_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyControlPoint_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyControlPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyControlPoint(wxPyControlPointPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapesc.new_wxPyControlPoint,_args,_kwargs)
+ self.this = oglshapesc.new_wxPyControlPoint(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyControlPoint)
self._setOORInfo(self)
@@ -407,113 +407,113 @@ class wxPyBitmapShapePtr(wxPyRectangleShapePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape__setCallbackInfo(self, *_args, **_kwargs)
return val
def GetBitmap(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_GetBitmap,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_GetBitmap(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val)
return val
def GetFilename(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_GetFilename,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_GetFilename(self, *_args, **_kwargs)
return val
def SetBitmap(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_SetBitmap,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_SetBitmap(self, *_args, **_kwargs)
return val
def SetFilename(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_SetFilename,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_SetFilename(self, *_args, **_kwargs)
return val
def base_OnDelete(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnDelete,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnDelete(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnErase,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyBitmapShape_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyBitmapShape_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyBitmapShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyBitmapShape(wxPyBitmapShapePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapesc.new_wxPyBitmapShape,_args,_kwargs)
+ self.this = oglshapesc.new_wxPyBitmapShape(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyBitmapShape)
self._setOORInfo(self)
@@ -526,184 +526,184 @@ class wxPyDrawnShapePtr(wxPyRectangleShapePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape__setCallbackInfo(self, *_args, **_kwargs)
return val
def CalculateSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_CalculateSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_CalculateSize(self, *_args, **_kwargs)
return val
def DestroyClippingRect(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_DestroyClippingRect,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_DestroyClippingRect(self, *_args, **_kwargs)
return val
def DrawArc(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_DrawArc,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_DrawArc(self, *_args, **_kwargs)
return val
def DrawAtAngle(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_DrawAtAngle,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_DrawAtAngle(self, *_args, **_kwargs)
return val
def DrawEllipticArc(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_DrawEllipticArc,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_DrawEllipticArc(self, *_args, **_kwargs)
return val
def DrawLine(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_DrawLine,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_DrawLine(self, *_args, **_kwargs)
return val
def DrawLines(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_DrawLines,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_DrawLines(self, *_args, **_kwargs)
return val
def DrawPoint(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_DrawPoint,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_DrawPoint(self, *_args, **_kwargs)
return val
def DrawPolygon(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_DrawPolygon,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_DrawPolygon(self, *_args, **_kwargs)
return val
def DrawRectangle(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_DrawRectangle,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_DrawRectangle(self, *_args, **_kwargs)
return val
def DrawRoundedRectangle(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_DrawRoundedRectangle,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_DrawRoundedRectangle(self, *_args, **_kwargs)
return val
def DrawSpline(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_DrawSpline,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_DrawSpline(self, *_args, **_kwargs)
return val
def DrawText(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_DrawText,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_DrawText(self, *_args, **_kwargs)
return val
def GetAngle(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_GetAngle,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_GetAngle(self, *_args, **_kwargs)
return val
def GetMetaFile(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_GetMetaFile,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_GetMetaFile(self, *_args, **_kwargs)
return val
def GetRotation(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_GetRotation,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_GetRotation(self, *_args, **_kwargs)
return val
def LoadFromMetaFile(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_LoadFromMetaFile,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_LoadFromMetaFile(self, *_args, **_kwargs)
return val
def Rotate(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_Rotate,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_Rotate(self, *_args, **_kwargs)
return val
def SetClippingRect(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_SetClippingRect,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_SetClippingRect(self, *_args, **_kwargs)
return val
def SetDrawnBackgroundColour(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_SetDrawnBackgroundColour,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_SetDrawnBackgroundColour(self, *_args, **_kwargs)
return val
def SetDrawnBackgroundMode(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_SetDrawnBackgroundMode,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_SetDrawnBackgroundMode(self, *_args, **_kwargs)
return val
def SetDrawnBrush(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_SetDrawnBrush,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_SetDrawnBrush(self, *_args, **_kwargs)
return val
def SetDrawnFont(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_SetDrawnFont,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_SetDrawnFont(self, *_args, **_kwargs)
return val
def SetDrawnPen(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_SetDrawnPen,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_SetDrawnPen(self, *_args, **_kwargs)
return val
def SetDrawnTextColour(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_SetDrawnTextColour,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_SetDrawnTextColour(self, *_args, **_kwargs)
return val
def Scale(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_Scale,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_Scale(self, *_args, **_kwargs)
return val
def SetSaveToFile(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_SetSaveToFile,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_SetSaveToFile(self, *_args, **_kwargs)
return val
def Translate(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_Translate,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_Translate(self, *_args, **_kwargs)
return val
def base_OnDelete(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnDelete,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnDelete(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnErase,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDrawnShape_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDrawnShape_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyDrawnShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyDrawnShape(wxPyDrawnShapePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapesc.new_wxPyDrawnShape,_args,_kwargs)
+ self.this = oglshapesc.new_wxPyDrawnShape(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyDrawnShape)
self._setOORInfo(self)
@@ -716,19 +716,19 @@ class wxOGLConstraintPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def Evaluate(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxOGLConstraint_Evaluate,(self,) + _args, _kwargs)
+ val = oglshapesc.wxOGLConstraint_Evaluate(self, *_args, **_kwargs)
return val
def SetSpacing(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxOGLConstraint_SetSpacing,(self,) + _args, _kwargs)
+ val = oglshapesc.wxOGLConstraint_SetSpacing(self, *_args, **_kwargs)
return val
def Equals(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxOGLConstraint_Equals,(self,) + _args, _kwargs)
+ val = oglshapesc.wxOGLConstraint_Equals(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxOGLConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxOGLConstraint(wxOGLConstraintPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapesc.new_wxOGLConstraint,_args,_kwargs)
+ self.this = oglshapesc.new_wxOGLConstraint(*_args,**_kwargs)
self.thisown = 1
@@ -739,142 +739,142 @@ class wxPyCompositeShapePtr(wxPyRectangleShapePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape__setCallbackInfo(self, *_args, **_kwargs)
return val
def AddChild(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_AddChild,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_AddChild(self, *_args, **_kwargs)
return val
def AddConstraint(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_AddConstraint,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_AddConstraint(self, *_args, **_kwargs)
return val
def AddConstrainedShapes(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_AddConstrainedShapes,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_AddConstrainedShapes(self, *_args, **_kwargs)
return val
def AddSimpleConstraint(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_AddSimpleConstraint,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_AddSimpleConstraint(self, *_args, **_kwargs)
return val
def CalculateSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_CalculateSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_CalculateSize(self, *_args, **_kwargs)
return val
def ContainsDivision(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_ContainsDivision,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_ContainsDivision(self, *_args, **_kwargs)
return val
def DeleteConstraint(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_DeleteConstraint,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_DeleteConstraint(self, *_args, **_kwargs)
return val
def DeleteConstraintsInvolvingChild(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_DeleteConstraintsInvolvingChild,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_DeleteConstraintsInvolvingChild(self, *_args, **_kwargs)
return val
def FindContainerImage(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_FindContainerImage,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_FindContainerImage(self, *_args, **_kwargs)
return val
def GetConstraints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_GetConstraints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_GetConstraints(self, *_args, **_kwargs)
return val
def GetDivisions(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_GetDivisions,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_GetDivisions(self, *_args, **_kwargs)
return val
def MakeContainer(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_MakeContainer,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_MakeContainer(self, *_args, **_kwargs)
return val
def Recompute(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_Recompute,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_Recompute(self, *_args, **_kwargs)
return val
def RemoveChild(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_RemoveChild,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_RemoveChild(self, *_args, **_kwargs)
return val
def base_OnDelete(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnDelete,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnDelete(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnErase,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyCompositeShape_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyCompositeShape_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyCompositeShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyCompositeShape(wxPyCompositeShapePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapesc.new_wxPyCompositeShape,_args,_kwargs)
+ self.this = oglshapesc.new_wxPyCompositeShape(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyCompositeShape)
self._setOORInfo(self)
@@ -887,106 +887,106 @@ class wxPyDividedShapePtr(wxPyRectangleShapePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape__setCallbackInfo(self, *_args, **_kwargs)
return val
def EditRegions(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_EditRegions,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_EditRegions(self, *_args, **_kwargs)
return val
def SetRegionSizes(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_SetRegionSizes,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_SetRegionSizes(self, *_args, **_kwargs)
return val
def base_OnDelete(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnDelete,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnDelete(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnErase,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDividedShape_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDividedShape_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyDividedShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyDividedShape(wxPyDividedShapePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapesc.new_wxPyDividedShape,_args,_kwargs)
+ self.this = oglshapesc.new_wxPyDividedShape(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyDividedShape)
self._setOORInfo(self)
@@ -999,177 +999,177 @@ class wxPyDivisionShapePtr(wxPyCompositeShapePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape__setCallbackInfo(self, *_args, **_kwargs)
return val
def AdjustBottom(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_AdjustBottom,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_AdjustBottom(self, *_args, **_kwargs)
return val
def AdjustLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_AdjustLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_AdjustLeft(self, *_args, **_kwargs)
return val
def AdjustRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_AdjustRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_AdjustRight(self, *_args, **_kwargs)
return val
def AdjustTop(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_AdjustTop,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_AdjustTop(self, *_args, **_kwargs)
return val
def Divide(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_Divide,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_Divide(self, *_args, **_kwargs)
return val
def EditEdge(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_EditEdge,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_EditEdge(self, *_args, **_kwargs)
return val
def GetBottomSide(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_GetBottomSide,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_GetBottomSide(self, *_args, **_kwargs)
return val
def GetHandleSide(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_GetHandleSide,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_GetHandleSide(self, *_args, **_kwargs)
return val
def GetLeftSide(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_GetLeftSide,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_GetLeftSide(self, *_args, **_kwargs)
return val
def GetLeftSideColour(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_GetLeftSideColour,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_GetLeftSideColour(self, *_args, **_kwargs)
return val
def GetLeftSidePen(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_GetLeftSidePen,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_GetLeftSidePen(self, *_args, **_kwargs)
if val: val = wxPenPtr(val)
return val
def GetRightSide(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_GetRightSide,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_GetRightSide(self, *_args, **_kwargs)
return val
def GetTopSide(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_GetTopSide,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_GetTopSide(self, *_args, **_kwargs)
return val
def GetTopSidePen(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_GetTopSidePen,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_GetTopSidePen(self, *_args, **_kwargs)
if val: val = wxPenPtr(val)
return val
def ResizeAdjoining(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_ResizeAdjoining,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_ResizeAdjoining(self, *_args, **_kwargs)
return val
def PopupMenu(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_PopupMenu,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_PopupMenu(self, *_args, **_kwargs)
return val
def SetBottomSide(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_SetBottomSide,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_SetBottomSide(self, *_args, **_kwargs)
return val
def SetHandleSide(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_SetHandleSide,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_SetHandleSide(self, *_args, **_kwargs)
return val
def SetLeftSide(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_SetLeftSide,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_SetLeftSide(self, *_args, **_kwargs)
return val
def SetLeftSideColour(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_SetLeftSideColour,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_SetLeftSideColour(self, *_args, **_kwargs)
return val
def SetLeftSidePen(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_SetLeftSidePen,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_SetLeftSidePen(self, *_args, **_kwargs)
return val
def SetRightSide(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_SetRightSide,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_SetRightSide(self, *_args, **_kwargs)
return val
def SetTopSide(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_SetTopSide,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_SetTopSide(self, *_args, **_kwargs)
return val
def SetTopSideColour(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_SetTopSideColour,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_SetTopSideColour(self, *_args, **_kwargs)
return val
def SetTopSidePen(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_SetTopSidePen,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_SetTopSidePen(self, *_args, **_kwargs)
return val
def base_OnDelete(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnDelete,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnDelete(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnErase,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglshapesc.wxPyDivisionShape_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglshapesc.wxPyDivisionShape_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyDivisionShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyDivisionShape(wxPyDivisionShapePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapesc.new_wxPyDivisionShape,_args,_kwargs)
+ self.this = oglshapesc.new_wxPyDivisionShape(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyDivisionShape)
self._setOORInfo(self)
diff --git a/wxPython/contrib/ogl/oglshapes2.py b/wxPython/contrib/ogl/oglshapes2.py
index 60d4c2947e..1be62f6cd7 100644
--- a/wxPython/contrib/ogl/oglshapes2.py
+++ b/wxPython/contrib/ogl/oglshapes2.py
@@ -52,97 +52,97 @@ class wxPyEllipseShapePtr(wxPyShapePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape__setCallbackInfo(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnErase,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyEllipseShape_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyEllipseShape_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyEllipseShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyEllipseShape(wxPyEllipseShapePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapes2c.new_wxPyEllipseShape,_args,_kwargs)
+ self.this = oglshapes2c.new_wxPyEllipseShape(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyEllipseShape)
self._setOORInfo(self)
@@ -155,97 +155,97 @@ class wxPyCircleShapePtr(wxPyEllipseShapePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape__setCallbackInfo(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnErase,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyCircleShape_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyCircleShape_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyCircleShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyCircleShape(wxPyCircleShapePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapes2c.new_wxPyCircleShape,_args,_kwargs)
+ self.this = oglshapes2c.new_wxPyCircleShape(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyCircleShape)
self._setOORInfo(self)
@@ -264,58 +264,58 @@ class wxArrowHeadPtr(wxObjectPtr):
except:
pass
def _GetType(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead__GetType,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead__GetType(self, *_args, **_kwargs)
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_GetPosition,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_GetPosition(self, *_args, **_kwargs)
return val
def SetPosition(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_SetPosition,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_SetPosition(self, *_args, **_kwargs)
return val
def GetXOffset(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_GetXOffset,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_GetXOffset(self, *_args, **_kwargs)
return val
def GetYOffset(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_GetYOffset,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_GetYOffset(self, *_args, **_kwargs)
return val
def GetSpacing(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_GetSpacing,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_GetSpacing(self, *_args, **_kwargs)
return val
def GetSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_GetSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_GetSize(self, *_args, **_kwargs)
return val
def GetName(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_GetName,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_GetName(self, *_args, **_kwargs)
return val
def SetXOffset(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_SetXOffset,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_SetXOffset(self, *_args, **_kwargs)
return val
def SetYOffset(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_SetYOffset,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_SetYOffset(self, *_args, **_kwargs)
return val
def GetMetaFile(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_GetMetaFile,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_GetMetaFile(self, *_args, **_kwargs)
return val
def GetId(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_GetId,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_GetId(self, *_args, **_kwargs)
return val
def GetArrowEnd(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_GetArrowEnd,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_GetArrowEnd(self, *_args, **_kwargs)
return val
def GetArrowSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_GetArrowSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_GetArrowSize(self, *_args, **_kwargs)
return val
def SetSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_SetSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_SetSize(self, *_args, **_kwargs)
return val
def SetSpacing(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxArrowHead_SetSpacing,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxArrowHead_SetSpacing(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxArrowHead instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxArrowHead(wxArrowHeadPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapes2c.new_wxArrowHead,_args,_kwargs)
+ self.this = oglshapes2c.new_wxArrowHead(*_args,**_kwargs)
self.thisown = 1
@@ -326,218 +326,218 @@ class wxPyLineShapePtr(wxPyShapePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape__setCallbackInfo(self, *_args, **_kwargs)
return val
def AddArrow(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_AddArrow,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_AddArrow(self, *_args, **_kwargs)
return val
def AddArrowOrdered(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_AddArrowOrdered,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_AddArrowOrdered(self, *_args, **_kwargs)
return val
def ClearArrow(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_ClearArrow,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_ClearArrow(self, *_args, **_kwargs)
return val
def ClearArrowsAtPosition(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_ClearArrowsAtPosition,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_ClearArrowsAtPosition(self, *_args, **_kwargs)
return val
def DrawArrow(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_DrawArrow,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_DrawArrow(self, *_args, **_kwargs)
return val
def DeleteArrowHeadId(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_DeleteArrowHeadId,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_DeleteArrowHeadId(self, *_args, **_kwargs)
return val
def DeleteArrowHead(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_DeleteArrowHead,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_DeleteArrowHead(self, *_args, **_kwargs)
return val
def DeleteLineControlPoint(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_DeleteLineControlPoint,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_DeleteLineControlPoint(self, *_args, **_kwargs)
return val
def DrawArrows(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_DrawArrows,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_DrawArrows(self, *_args, **_kwargs)
return val
def DrawRegion(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_DrawRegion,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_DrawRegion(self, *_args, **_kwargs)
return val
def EraseRegion(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_EraseRegion,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_EraseRegion(self, *_args, **_kwargs)
return val
def FindArrowHeadId(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_FindArrowHeadId,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_FindArrowHeadId(self, *_args, **_kwargs)
return val
def FindArrowHead(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_FindArrowHead,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_FindArrowHead(self, *_args, **_kwargs)
return val
def FindLineEndPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_FindLineEndPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_FindLineEndPoints(self, *_args, **_kwargs)
return val
def FindLinePosition(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_FindLinePosition,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_FindLinePosition(self, *_args, **_kwargs)
return val
def FindMinimumWidth(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_FindMinimumWidth,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_FindMinimumWidth(self, *_args, **_kwargs)
return val
def FindNth(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_FindNth,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_FindNth(self, *_args, **_kwargs)
return val
def GetAttachmentFrom(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_GetAttachmentFrom,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_GetAttachmentFrom(self, *_args, **_kwargs)
return val
def GetAttachmentTo(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_GetAttachmentTo,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_GetAttachmentTo(self, *_args, **_kwargs)
return val
def GetEnds(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_GetEnds,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_GetEnds(self, *_args, **_kwargs)
return val
def GetFrom(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_GetFrom,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_GetFrom(self, *_args, **_kwargs)
return val
def GetLabelPosition(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_GetLabelPosition,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_GetLabelPosition(self, *_args, **_kwargs)
return val
def GetNextControlPoint(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_GetNextControlPoint,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_GetNextControlPoint(self, *_args, **_kwargs)
if val: val = wxRealPointPtr(val)
return val
def GetTo(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_GetTo,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_GetTo(self, *_args, **_kwargs)
return val
def Initialise(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_Initialise,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_Initialise(self, *_args, **_kwargs)
return val
def InsertLineControlPoint(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_InsertLineControlPoint,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_InsertLineControlPoint(self, *_args, **_kwargs)
return val
def IsEnd(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_IsEnd,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_IsEnd(self, *_args, **_kwargs)
return val
def IsSpline(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_IsSpline,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_IsSpline(self, *_args, **_kwargs)
return val
def MakeLineControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_MakeLineControlPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_MakeLineControlPoints(self, *_args, **_kwargs)
return val
def GetLineControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_GetLineControlPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_GetLineControlPoints(self, *_args, **_kwargs)
return val
def SetAttachmentFrom(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_SetAttachmentFrom,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_SetAttachmentFrom(self, *_args, **_kwargs)
return val
def SetAttachments(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_SetAttachments,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_SetAttachments(self, *_args, **_kwargs)
return val
def SetAttachmentTo(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_SetAttachmentTo,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_SetAttachmentTo(self, *_args, **_kwargs)
return val
def SetEnds(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_SetEnds,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_SetEnds(self, *_args, **_kwargs)
return val
def SetFrom(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_SetFrom,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_SetFrom(self, *_args, **_kwargs)
return val
def SetIgnoreOffsets(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_SetIgnoreOffsets,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_SetIgnoreOffsets(self, *_args, **_kwargs)
return val
def SetSpline(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_SetSpline,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_SetSpline(self, *_args, **_kwargs)
return val
def SetTo(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_SetTo,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_SetTo(self, *_args, **_kwargs)
return val
def Straighten(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_Straighten,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_Straighten(self, *_args, **_kwargs)
return val
def Unlink(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_Unlink,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_Unlink(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnErase,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyLineShape_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyLineShape_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyLineShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyLineShape(wxPyLineShapePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapes2c.new_wxPyLineShape,_args,_kwargs)
+ self.this = oglshapes2c.new_wxPyLineShape(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyLineShape)
self._setOORInfo(self)
@@ -550,115 +550,115 @@ class wxPyPolygonShapePtr(wxPyShapePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape__setCallbackInfo(self, *_args, **_kwargs)
return val
def Create(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_Create,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_Create(self, *_args, **_kwargs)
return val
def AddPolygonPoint(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_AddPolygonPoint,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_AddPolygonPoint(self, *_args, **_kwargs)
return val
def CalculatePolygonCentre(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_CalculatePolygonCentre,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_CalculatePolygonCentre(self, *_args, **_kwargs)
return val
def DeletePolygonPoint(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_DeletePolygonPoint,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_DeletePolygonPoint(self, *_args, **_kwargs)
return val
def GetPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_GetPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_GetPoints(self, *_args, **_kwargs)
return val
def UpdateOriginalPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_UpdateOriginalPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_UpdateOriginalPoints(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnErase,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyPolygonShape_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyPolygonShape_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyPolygonShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyPolygonShape(wxPyPolygonShapePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapes2c.new_wxPyPolygonShape,_args,_kwargs)
+ self.this = oglshapes2c.new_wxPyPolygonShape(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyPolygonShape)
self._setOORInfo(self)
@@ -671,100 +671,100 @@ class wxPyTextShapePtr(wxPyRectangleShapePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape__setCallbackInfo,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape__setCallbackInfo(self, *_args, **_kwargs)
return val
def base_OnDelete(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnDelete,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnDelete(self, *_args, **_kwargs)
return val
def base_OnDraw(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnDraw,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnDraw(self, *_args, **_kwargs)
return val
def base_OnDrawContents(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnDrawContents,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnDrawContents(self, *_args, **_kwargs)
return val
def base_OnDrawBranches(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnDrawBranches,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnDrawBranches(self, *_args, **_kwargs)
return val
def base_OnMoveLinks(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnMoveLinks,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnMoveLinks(self, *_args, **_kwargs)
return val
def base_OnErase(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnErase,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnErase(self, *_args, **_kwargs)
return val
def base_OnEraseContents(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnEraseContents,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnEraseContents(self, *_args, **_kwargs)
return val
def base_OnHighlight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnHighlight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnHighlight(self, *_args, **_kwargs)
return val
def base_OnLeftClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnLeftClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnLeftClick(self, *_args, **_kwargs)
return val
def base_OnLeftDoubleClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnLeftDoubleClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnLeftDoubleClick(self, *_args, **_kwargs)
return val
def base_OnRightClick(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnRightClick,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnRightClick(self, *_args, **_kwargs)
return val
def base_OnSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnSize(self, *_args, **_kwargs)
return val
def base_OnMovePre(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnMovePre,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnMovePre(self, *_args, **_kwargs)
return val
def base_OnMovePost(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnMovePost,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnMovePost(self, *_args, **_kwargs)
return val
def base_OnDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnDragRight(self, *_args, **_kwargs)
return val
def base_OnBeginDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnBeginDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnBeginDragRight(self, *_args, **_kwargs)
return val
def base_OnEndDragRight(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnEndDragRight,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnEndDragRight(self, *_args, **_kwargs)
return val
def base_OnDrawOutline(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnDrawOutline,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnDrawOutline(self, *_args, **_kwargs)
return val
def base_OnDrawControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnDrawControlPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnDrawControlPoints(self, *_args, **_kwargs)
return val
def base_OnEraseControlPoints(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnEraseControlPoints,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnEraseControlPoints(self, *_args, **_kwargs)
return val
def base_OnMoveLink(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnMoveLink,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnMoveLink(self, *_args, **_kwargs)
return val
def base_OnSizingDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnSizingDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnSizingDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingBeginDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnSizingBeginDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnSizingBeginDragLeft(self, *_args, **_kwargs)
return val
def base_OnSizingEndDragLeft(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnSizingEndDragLeft,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnSizingEndDragLeft(self, *_args, **_kwargs)
return val
def base_OnBeginSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnBeginSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnBeginSize(self, *_args, **_kwargs)
return val
def base_OnEndSize(self, *_args, **_kwargs):
- val = apply(oglshapes2c.wxPyTextShape_base_OnEndSize,(self,) + _args, _kwargs)
+ val = oglshapes2c.wxPyTextShape_base_OnEndSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyTextShape instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyTextShape(wxPyTextShapePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(oglshapes2c.new_wxPyTextShape,_args,_kwargs)
+ self.this = oglshapes2c.new_wxPyTextShape(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyTextShape)
self._setOORInfo(self)
diff --git a/wxPython/contrib/stc/gtk/stc_.cpp b/wxPython/contrib/stc/gtk/stc_.cpp
index f522a3d620..7deb374c77 100644
--- a/wxPython/contrib/stc/gtk/stc_.cpp
+++ b/wxPython/contrib/stc/gtk/stc_.cpp
@@ -1649,6 +1649,43 @@ static PyObject *_wrap_wxStyledTextCtrl_MarkerPrevious(PyObject *self, PyObject
return _resultobj;
}
+#define wxStyledTextCtrl_MarkerDefineBitmap(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerDefineBitmap(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_MarkerDefineBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ wxBitmap * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo2 = 0;
+ char *_kwnames[] = { "self","markerNumber","bmp", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_MarkerDefineBitmap",_kwnames,&_argo0,&_arg1,&_argo2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerDefineBitmap. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo2) {
+ if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxStyledTextCtrl_MarkerDefineBitmap. Expected _wxBitmap_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_MarkerDefineBitmap(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_SetMarginType(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMarginType(_swigarg0,_swigarg1))
static PyObject *_wrap_wxStyledTextCtrl_SetMarginType(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -2275,6 +2312,38 @@ static PyObject *_wrap_wxStyledTextCtrl_StyleSetCharacterSet(PyObject *self, PyO
return _resultobj;
}
+#define wxStyledTextCtrl_StyleSetHotSpot(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetHotSpot(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_StyleSetHotSpot(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ bool _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool2;
+ char *_kwnames[] = { "self","style","hotspot", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetHotSpot",_kwnames,&_argo0,&_arg1,&tempbool2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetHotSpot. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg2 = (bool ) tempbool2;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_StyleSetHotSpot(_arg0,_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_SetSelForeground(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelForeground(_swigarg0,_swigarg1))
static PyObject *_wrap_wxStyledTextCtrl_SetSelForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -3859,6 +3928,128 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompGetDropRestOfWord(PyObject *self
return _resultobj;
}
+#define wxStyledTextCtrl_RegisterImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->RegisterImage(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_RegisterImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ wxBitmap * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo2 = 0;
+ char *_kwnames[] = { "self","type","bmp", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_RegisterImage",_kwnames,&_argo0,&_arg1,&_argo2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_RegisterImage. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo2) {
+ if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxStyledTextCtrl_RegisterImage. Expected _wxBitmap_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_RegisterImage(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_ClearRegisteredImages(_swigobj) (_swigobj->ClearRegisteredImages())
+static PyObject *_wrap_wxStyledTextCtrl_ClearRegisteredImages(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_ClearRegisteredImages",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ClearRegisteredImages. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_ClearRegisteredImages(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_AutoCompGetTypeSeparator(_swigobj) (_swigobj->AutoCompGetTypeSeparator())
+static PyObject *_wrap_wxStyledTextCtrl_AutoCompGetTypeSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_AutoCompGetTypeSeparator",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompGetTypeSeparator. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxStyledTextCtrl_AutoCompGetTypeSeparator(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_AutoCompSetTypeSeparator(_swigobj,_swigarg0) (_swigobj->AutoCompSetTypeSeparator(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_AutoCompSetTypeSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","separatorCharacter", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_AutoCompSetTypeSeparator",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompSetTypeSeparator. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_AutoCompSetTypeSeparator(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0))
static PyObject *_wrap_wxStyledTextCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -6229,6 +6420,78 @@ static PyObject *_wrap_wxStyledTextCtrl_CallTipSetBackground(PyObject *self, PyO
return _resultobj;
}
+#define wxStyledTextCtrl_CallTipSetForeground(_swigobj,_swigarg0) (_swigobj->CallTipSetForeground(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_CallTipSetForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ wxColour * _arg1;
+ PyObject * _argo0 = 0;
+ wxColour temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","fore", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_CallTipSetForeground",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CallTipSetForeground. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxColour_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_CallTipSetForeground(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_CallTipSetForegroundHighlight(_swigobj,_swigarg0) (_swigobj->CallTipSetForegroundHighlight(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_CallTipSetForegroundHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ wxColour * _arg1;
+ PyObject * _argo0 = 0;
+ wxColour temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","fore", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_CallTipSetForegroundHighlight",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CallTipSetForegroundHighlight. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxColour_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_CallTipSetForegroundHighlight(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_VisibleFromDocLine(_swigobj,_swigarg0) (_swigobj->VisibleFromDocLine(_swigarg0))
static PyObject *_wrap_wxStyledTextCtrl_VisibleFromDocLine(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -7209,26 +7472,29 @@ static PyObject *_wrap_wxStyledTextCtrl_TextHeight(PyObject *self, PyObject *arg
return _resultobj;
}
-#define wxStyledTextCtrl_HomeDisplay(_swigobj) (_swigobj->HomeDisplay())
-static PyObject *_wrap_wxStyledTextCtrl_HomeDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStyledTextCtrl_SetUseVerticalScrollBar(_swigobj,_swigarg0) (_swigobj->SetUseVerticalScrollBar(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SetUseVerticalScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxStyledTextCtrl * _arg0;
+ bool _arg1;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ int tempbool1;
+ char *_kwnames[] = { "self","show", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_HomeDisplay",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetUseVerticalScrollBar",_kwnames,&_argo0,&tempbool1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HomeDisplay. Expected _wxStyledTextCtrl_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetUseVerticalScrollBar. Expected _wxStyledTextCtrl_p.");
return NULL;
}
}
+ _arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxStyledTextCtrl_HomeDisplay(_arg0);
+ wxStyledTextCtrl_SetUseVerticalScrollBar(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
@@ -7237,76 +7503,422 @@ static PyObject *_wrap_wxStyledTextCtrl_HomeDisplay(PyObject *self, PyObject *ar
return _resultobj;
}
-#define wxStyledTextCtrl_HomeDisplayExtend(_swigobj) (_swigobj->HomeDisplayExtend())
-static PyObject *_wrap_wxStyledTextCtrl_HomeDisplayExtend(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStyledTextCtrl_GetUseVerticalScrollBar(_swigobj) (_swigobj->GetUseVerticalScrollBar())
+static PyObject *_wrap_wxStyledTextCtrl_GetUseVerticalScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
+ bool _result;
wxStyledTextCtrl * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_HomeDisplayExtend",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetUseVerticalScrollBar",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HomeDisplayExtend. Expected _wxStyledTextCtrl_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetUseVerticalScrollBar. Expected _wxStyledTextCtrl_p.");
return NULL;
}
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxStyledTextCtrl_HomeDisplayExtend(_arg0);
+ _result = (bool )wxStyledTextCtrl_GetUseVerticalScrollBar(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
+} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
-#define wxStyledTextCtrl_LineEndDisplay(_swigobj) (_swigobj->LineEndDisplay())
-static PyObject *_wrap_wxStyledTextCtrl_LineEndDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStyledTextCtrl_AppendText(_swigobj,_swigarg0,_swigarg1) (_swigobj->AppendText(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxStyledTextCtrl * _arg0;
+ int _arg1;
+ wxString * _arg2;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","length","text", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineEndDisplay",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_AppendText",_kwnames,&_argo0,&_arg1,&_obj2))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineEndDisplay. Expected _wxStyledTextCtrl_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AppendText. Expected _wxStyledTextCtrl_p.");
return NULL;
}
}
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxStyledTextCtrl_LineEndDisplay(_arg0);
+ wxStyledTextCtrl_AppendText(_arg0,_arg1,*_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
+{
+ if (_obj2)
+ delete _arg2;
+}
return _resultobj;
}
-#define wxStyledTextCtrl_LineEndDisplayExtend(_swigobj) (_swigobj->LineEndDisplayExtend())
-static PyObject *_wrap_wxStyledTextCtrl_LineEndDisplayExtend(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStyledTextCtrl_GetTwoPhaseDraw(_swigobj) (_swigobj->GetTwoPhaseDraw())
+static PyObject *_wrap_wxStyledTextCtrl_GetTwoPhaseDraw(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
+ bool _result;
wxStyledTextCtrl * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineEndDisplayExtend",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetTwoPhaseDraw",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineEndDisplayExtend. Expected _wxStyledTextCtrl_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetTwoPhaseDraw. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxStyledTextCtrl_GetTwoPhaseDraw(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetTwoPhaseDraw(_swigobj,_swigarg0) (_swigobj->SetTwoPhaseDraw(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SetTwoPhaseDraw(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ char *_kwnames[] = { "self","twoPhase", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetTwoPhaseDraw",_kwnames,&_argo0,&tempbool1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetTwoPhaseDraw. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetTwoPhaseDraw(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_TargetFromSelection(_swigobj) (_swigobj->TargetFromSelection())
+static PyObject *_wrap_wxStyledTextCtrl_TargetFromSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_TargetFromSelection",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_TargetFromSelection. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_TargetFromSelection(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LinesJoin(_swigobj) (_swigobj->LinesJoin())
+static PyObject *_wrap_wxStyledTextCtrl_LinesJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LinesJoin",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LinesJoin. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_LinesJoin(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LinesSplit(_swigobj,_swigarg0) (_swigobj->LinesSplit(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_LinesSplit(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","pixelWidth", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_LinesSplit",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LinesSplit. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_LinesSplit(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetFoldMarginColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetFoldMarginColour(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_SetFoldMarginColour(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","useSetting","back", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetFoldMarginColour",_kwnames,&_argo0,&tempbool1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetFoldMarginColour. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetFoldMarginColour(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetFoldMarginHiColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetFoldMarginHiColour(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_SetFoldMarginHiColour(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","useSetting","fore", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetFoldMarginHiColour",_kwnames,&_argo0,&tempbool1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetFoldMarginHiColour. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetFoldMarginHiColour(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LineDuplicate(_swigobj) (_swigobj->LineDuplicate())
+static PyObject *_wrap_wxStyledTextCtrl_LineDuplicate(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineDuplicate",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineDuplicate. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_LineDuplicate(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_HomeDisplay(_swigobj) (_swigobj->HomeDisplay())
+static PyObject *_wrap_wxStyledTextCtrl_HomeDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_HomeDisplay",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HomeDisplay. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_HomeDisplay(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_HomeDisplayExtend(_swigobj) (_swigobj->HomeDisplayExtend())
+static PyObject *_wrap_wxStyledTextCtrl_HomeDisplayExtend(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_HomeDisplayExtend",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HomeDisplayExtend. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_HomeDisplayExtend(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LineEndDisplay(_swigobj) (_swigobj->LineEndDisplay())
+static PyObject *_wrap_wxStyledTextCtrl_LineEndDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineEndDisplay",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineEndDisplay. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_LineEndDisplay(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LineEndDisplayExtend(_swigobj) (_swigobj->LineEndDisplayExtend())
+static PyObject *_wrap_wxStyledTextCtrl_LineEndDisplayExtend(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineEndDisplayExtend",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineEndDisplayExtend. Expected _wxStyledTextCtrl_p.");
return NULL;
}
}
@@ -8739,6 +9351,34 @@ static PyObject *_wrap_wxStyledTextCtrl_GetXOffset(PyObject *self, PyObject *arg
return _resultobj;
}
+#define wxStyledTextCtrl_ChooseCaretX(_swigobj) (_swigobj->ChooseCaretX())
+static PyObject *_wrap_wxStyledTextCtrl_ChooseCaretX(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_ChooseCaretX",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ChooseCaretX. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_ChooseCaretX(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_SetXCaretPolicy(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetXCaretPolicy(_swigarg0,_swigarg1))
static PyObject *_wrap_wxStyledTextCtrl_SetXCaretPolicy(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -8799,6 +9439,172 @@ static PyObject *_wrap_wxStyledTextCtrl_SetYCaretPolicy(PyObject *self, PyObject
return _resultobj;
}
+#define wxStyledTextCtrl_SetPrintWrapMode(_swigobj,_swigarg0) (_swigobj->SetPrintWrapMode(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SetPrintWrapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","mode", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetPrintWrapMode",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetPrintWrapMode. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetPrintWrapMode(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_GetPrintWrapMode(_swigobj) (_swigobj->GetPrintWrapMode())
+static PyObject *_wrap_wxStyledTextCtrl_GetPrintWrapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetPrintWrapMode",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetPrintWrapMode. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxStyledTextCtrl_GetPrintWrapMode(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetHotspotActiveForeground(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHotspotActiveForeground(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_SetHotspotActiveForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","useSetting","fore", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetHotspotActiveForeground",_kwnames,&_argo0,&tempbool1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetHotspotActiveForeground. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetHotspotActiveForeground(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetHotspotActiveBackground(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHotspotActiveBackground(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_SetHotspotActiveBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","useSetting","back", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetHotspotActiveBackground",_kwnames,&_argo0,&tempbool1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetHotspotActiveBackground. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetHotspotActiveBackground(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetHotspotActiveUnderline(_swigobj,_swigarg0) (_swigobj->SetHotspotActiveUnderline(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SetHotspotActiveUnderline(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ char *_kwnames[] = { "self","underline", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetHotspotActiveUnderline",_kwnames,&_argo0,&tempbool1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetHotspotActiveUnderline. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetHotspotActiveUnderline(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_StartRecord(_swigobj) (_swigobj->StartRecord())
static PyObject *_wrap_wxStyledTextCtrl_StartRecord(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -9586,6 +10392,84 @@ static PyObject *_wrap_wxStyledTextCtrl_SetLastKeydownProcessed(PyObject *self,
return _resultobj;
}
+#define wxStyledTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxStyledTextCtrl * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","filename", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SaveFile. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxStyledTextCtrl_SaveFile(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxStyledTextCtrl * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","filename", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LoadFile. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxStyledTextCtrl_LoadFile(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
static void *SwigwxStyledTextEventTowxCommandEvent(void *ptr) {
wxStyledTextEvent *src;
wxCommandEvent *dest;
@@ -11012,6 +11896,8 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextEvent_SetPosition", (PyCFunction) _wrap_wxStyledTextEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
{ "delete_wxStyledTextEvent", (PyCFunction) _wrap_delete_wxStyledTextEvent, METH_VARARGS | METH_KEYWORDS },
{ "new_wxStyledTextEvent", (PyCFunction) _wrap_new_wxStyledTextEvent, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_LoadFile", (PyCFunction) _wrap_wxStyledTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SaveFile", (PyCFunction) _wrap_wxStyledTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetLastKeydownProcessed", (PyCFunction) _wrap_wxStyledTextCtrl_SetLastKeydownProcessed, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetLastKeydownProcessed", (PyCFunction) _wrap_wxStyledTextCtrl_GetLastKeydownProcessed, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetHScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_SetHScrollBar, METH_VARARGS | METH_KEYWORDS },
@@ -11035,8 +11921,14 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetLexer", (PyCFunction) _wrap_wxStyledTextCtrl_SetLexer, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StopRecord", (PyCFunction) _wrap_wxStyledTextCtrl_StopRecord, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StartRecord", (PyCFunction) _wrap_wxStyledTextCtrl_StartRecord, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetHotspotActiveUnderline", (PyCFunction) _wrap_wxStyledTextCtrl_SetHotspotActiveUnderline, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetHotspotActiveBackground", (PyCFunction) _wrap_wxStyledTextCtrl_SetHotspotActiveBackground, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetHotspotActiveForeground", (PyCFunction) _wrap_wxStyledTextCtrl_SetHotspotActiveForeground, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_GetPrintWrapMode", (PyCFunction) _wrap_wxStyledTextCtrl_GetPrintWrapMode, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetPrintWrapMode", (PyCFunction) _wrap_wxStyledTextCtrl_SetPrintWrapMode, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetYCaretPolicy", (PyCFunction) _wrap_wxStyledTextCtrl_SetYCaretPolicy, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetXCaretPolicy", (PyCFunction) _wrap_wxStyledTextCtrl_SetXCaretPolicy, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_ChooseCaretX", (PyCFunction) _wrap_wxStyledTextCtrl_ChooseCaretX, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetXOffset", (PyCFunction) _wrap_wxStyledTextCtrl_GetXOffset, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetXOffset", (PyCFunction) _wrap_wxStyledTextCtrl_SetXOffset, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_DelLineRight", (PyCFunction) _wrap_wxStyledTextCtrl_DelLineRight, METH_VARARGS | METH_KEYWORDS },
@@ -11088,6 +11980,17 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_LineEndDisplay", (PyCFunction) _wrap_wxStyledTextCtrl_LineEndDisplay, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_HomeDisplayExtend", (PyCFunction) _wrap_wxStyledTextCtrl_HomeDisplayExtend, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_HomeDisplay", (PyCFunction) _wrap_wxStyledTextCtrl_HomeDisplay, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_LineDuplicate", (PyCFunction) _wrap_wxStyledTextCtrl_LineDuplicate, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetFoldMarginHiColour", (PyCFunction) _wrap_wxStyledTextCtrl_SetFoldMarginHiColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetFoldMarginColour", (PyCFunction) _wrap_wxStyledTextCtrl_SetFoldMarginColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_LinesSplit", (PyCFunction) _wrap_wxStyledTextCtrl_LinesSplit, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_LinesJoin", (PyCFunction) _wrap_wxStyledTextCtrl_LinesJoin, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_TargetFromSelection", (PyCFunction) _wrap_wxStyledTextCtrl_TargetFromSelection, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetTwoPhaseDraw", (PyCFunction) _wrap_wxStyledTextCtrl_SetTwoPhaseDraw, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_GetTwoPhaseDraw", (PyCFunction) _wrap_wxStyledTextCtrl_GetTwoPhaseDraw, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_AppendText", (PyCFunction) _wrap_wxStyledTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_GetUseVerticalScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_GetUseVerticalScrollBar, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetUseVerticalScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_SetUseVerticalScrollBar, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_TextHeight", (PyCFunction) _wrap_wxStyledTextCtrl_TextHeight, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetEndAtLastLine", (PyCFunction) _wrap_wxStyledTextCtrl_GetEndAtLastLine, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetEndAtLastLine", (PyCFunction) _wrap_wxStyledTextCtrl_SetEndAtLastLine, METH_VARARGS | METH_KEYWORDS },
@@ -11121,6 +12024,8 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetFoldLevel", (PyCFunction) _wrap_wxStyledTextCtrl_SetFoldLevel, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_DocLineFromVisible", (PyCFunction) _wrap_wxStyledTextCtrl_DocLineFromVisible, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_VisibleFromDocLine", (PyCFunction) _wrap_wxStyledTextCtrl_VisibleFromDocLine, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_CallTipSetForegroundHighlight", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetForegroundHighlight, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_CallTipSetForeground", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetForeground, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_CallTipSetBackground", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetBackground, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_CallTipSetHighlight", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetHighlight, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_CallTipPosAtStart", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipPosAtStart, METH_VARARGS | METH_KEYWORDS },
@@ -11198,6 +12103,10 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetUseTabs", (PyCFunction) _wrap_wxStyledTextCtrl_SetUseTabs, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetIndent", (PyCFunction) _wrap_wxStyledTextCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetIndent", (PyCFunction) _wrap_wxStyledTextCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_AutoCompSetTypeSeparator", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompSetTypeSeparator, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_AutoCompGetTypeSeparator", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetTypeSeparator, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_ClearRegisteredImages", (PyCFunction) _wrap_wxStyledTextCtrl_ClearRegisteredImages, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_RegisterImage", (PyCFunction) _wrap_wxStyledTextCtrl_RegisterImage, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_AutoCompGetDropRestOfWord", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetDropRestOfWord, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_AutoCompSetDropRestOfWord", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompSetDropRestOfWord, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_AutoCompGetAutoHide", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetAutoHide, METH_VARARGS | METH_KEYWORDS },
@@ -11248,6 +12157,7 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetCaretForeground", (PyCFunction) _wrap_wxStyledTextCtrl_SetCaretForeground, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetSelBackground", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelBackground, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetSelForeground", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelForeground, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_StyleSetHotSpot", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetHotSpot, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StyleSetCharacterSet", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetCharacterSet, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StyleSetCase", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetCase, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StyleSetUnderline", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetUnderline, METH_VARARGS | METH_KEYWORDS },
@@ -11268,6 +12178,7 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetMarginWidth", (PyCFunction) _wrap_wxStyledTextCtrl_SetMarginWidth, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetMarginType", (PyCFunction) _wrap_wxStyledTextCtrl_GetMarginType, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetMarginType", (PyCFunction) _wrap_wxStyledTextCtrl_SetMarginType, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_MarkerDefineBitmap", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerDefineBitmap, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_MarkerPrevious", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerPrevious, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_MarkerNext", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerNext, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_MarkerGet", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerGet, METH_VARARGS | METH_KEYWORDS },
@@ -11455,6 +12366,7 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_EOL_CR", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_EOL_LF", PyInt_FromLong((long) 2));
PyDict_SetItemString(d,"wxSTC_CP_UTF8", PyInt_FromLong((long) 65001));
+ PyDict_SetItemString(d,"wxSTC_CP_DBCS", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_MARKER_MAX", PyInt_FromLong((long) 31));
PyDict_SetItemString(d,"wxSTC_MARK_CIRCLE", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_MARK_ROUNDRECT", PyInt_FromLong((long) 1));
@@ -11481,6 +12393,7 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_MARK_BACKGROUND", PyInt_FromLong((long) 22));
PyDict_SetItemString(d,"wxSTC_MARK_DOTDOTDOT", PyInt_FromLong((long) 23));
PyDict_SetItemString(d,"wxSTC_MARK_ARROWS", PyInt_FromLong((long) 24));
+ PyDict_SetItemString(d,"wxSTC_MARK_PIXMAP", PyInt_FromLong((long) 25));
PyDict_SetItemString(d,"wxSTC_MARK_CHARACTER", PyInt_FromLong((long) 10000));
PyDict_SetItemString(d,"wxSTC_MARKNUM_FOLDEREND", PyInt_FromLong((long) 25));
PyDict_SetItemString(d,"wxSTC_MARKNUM_FOLDEROPENMID", PyInt_FromLong((long) 26));
@@ -11541,10 +12454,21 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_FIND_MATCHCASE", PyInt_FromLong((long) 4));
PyDict_SetItemString(d,"wxSTC_FIND_WORDSTART", PyInt_FromLong((long) 0x00100000));
PyDict_SetItemString(d,"wxSTC_FIND_REGEXP", PyInt_FromLong((long) 0x00200000));
+ PyDict_SetItemString(d,"wxSTC_FIND_POSIX", PyInt_FromLong((long) 0x00400000));
PyDict_SetItemString(d,"wxSTC_FOLDLEVELBASE", PyInt_FromLong((long) 0x400));
PyDict_SetItemString(d,"wxSTC_FOLDLEVELWHITEFLAG", PyInt_FromLong((long) 0x1000));
PyDict_SetItemString(d,"wxSTC_FOLDLEVELHEADERFLAG", PyInt_FromLong((long) 0x2000));
+ PyDict_SetItemString(d,"wxSTC_FOLDLEVELBOXHEADERFLAG", PyInt_FromLong((long) 0x4000));
+ PyDict_SetItemString(d,"wxSTC_FOLDLEVELBOXFOOTERFLAG", PyInt_FromLong((long) 0x8000));
+ PyDict_SetItemString(d,"wxSTC_FOLDLEVELCONTRACTED", PyInt_FromLong((long) 0x10000));
+ PyDict_SetItemString(d,"wxSTC_FOLDLEVELUNINDENT", PyInt_FromLong((long) 0x20000));
PyDict_SetItemString(d,"wxSTC_FOLDLEVELNUMBERMASK", PyInt_FromLong((long) 0x0FFF));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED", PyInt_FromLong((long) 0x0002));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED", PyInt_FromLong((long) 0x0004));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LINEAFTER_EXPANDED", PyInt_FromLong((long) 0x0008));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED", PyInt_FromLong((long) 0x0010));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LEVELNUMBERS", PyInt_FromLong((long) 0x0040));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_BOX", PyInt_FromLong((long) 0x0001));
PyDict_SetItemString(d,"wxSTC_TIME_FOREVER", PyInt_FromLong((long) 10000000));
PyDict_SetItemString(d,"wxSTC_WRAP_NONE", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_WRAP_WORD", PyInt_FromLong((long) 1));
@@ -11556,7 +12480,7 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_EDGE_LINE", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_EDGE_BACKGROUND", PyInt_FromLong((long) 2));
PyDict_SetItemString(d,"wxSTC_CURSORNORMAL", PyInt_FromLong((long) -1));
- PyDict_SetItemString(d,"wxSTC_CURSORWAIT", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_CURSORWAIT", PyInt_FromLong((long) 4));
PyDict_SetItemString(d,"wxSTC_VISIBLE_SLOP", PyInt_FromLong((long) 0x01));
PyDict_SetItemString(d,"wxSTC_VISIBLE_STRICT", PyInt_FromLong((long) 0x04));
PyDict_SetItemString(d,"wxSTC_CARET_SLOP", PyInt_FromLong((long) 0x01));
@@ -11629,6 +12553,12 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_LEX_BAAN", PyInt_FromLong((long) 31));
PyDict_SetItemString(d,"wxSTC_LEX_MATLAB", PyInt_FromLong((long) 32));
PyDict_SetItemString(d,"wxSTC_LEX_SCRIPTOL", PyInt_FromLong((long) 33));
+ PyDict_SetItemString(d,"wxSTC_LEX_ASM", PyInt_FromLong((long) 34));
+ PyDict_SetItemString(d,"wxSTC_LEX_CPPNOCASE", PyInt_FromLong((long) 35));
+ PyDict_SetItemString(d,"wxSTC_LEX_FORTRAN", PyInt_FromLong((long) 36));
+ PyDict_SetItemString(d,"wxSTC_LEX_F77", PyInt_FromLong((long) 37));
+ PyDict_SetItemString(d,"wxSTC_LEX_CSS", PyInt_FromLong((long) 38));
+ PyDict_SetItemString(d,"wxSTC_LEX_POV", PyInt_FromLong((long) 39));
PyDict_SetItemString(d,"wxSTC_LEX_AUTOMATIC", PyInt_FromLong((long) 1000));
PyDict_SetItemString(d,"wxSTC_P_DEFAULT", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_P_COMMENTLINE", PyInt_FromLong((long) 1));
@@ -11854,6 +12784,9 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_ERR_DIFF_ADDITION", PyInt_FromLong((long) 11));
PyDict_SetItemString(d,"wxSTC_ERR_DIFF_DELETION", PyInt_FromLong((long) 12));
PyDict_SetItemString(d,"wxSTC_ERR_DIFF_MESSAGE", PyInt_FromLong((long) 13));
+ PyDict_SetItemString(d,"wxSTC_ERR_PHP", PyInt_FromLong((long) 14));
+ PyDict_SetItemString(d,"wxSTC_ERR_ELF", PyInt_FromLong((long) 15));
+ PyDict_SetItemString(d,"wxSTC_ERR_IFC", PyInt_FromLong((long) 16));
PyDict_SetItemString(d,"wxSTC_BAT_DEFAULT", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_BAT_COMMENT", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_BAT_WORD", PyInt_FromLong((long) 2));
@@ -11890,22 +12823,29 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_AVE_COMMENT", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_AVE_NUMBER", PyInt_FromLong((long) 2));
PyDict_SetItemString(d,"wxSTC_AVE_WORD", PyInt_FromLong((long) 3));
- PyDict_SetItemString(d,"wxSTC_AVE_KEYWORD", PyInt_FromLong((long) 4));
- PyDict_SetItemString(d,"wxSTC_AVE_STATEMENT", PyInt_FromLong((long) 5));
PyDict_SetItemString(d,"wxSTC_AVE_STRING", PyInt_FromLong((long) 6));
PyDict_SetItemString(d,"wxSTC_AVE_ENUM", PyInt_FromLong((long) 7));
PyDict_SetItemString(d,"wxSTC_AVE_STRINGEOL", PyInt_FromLong((long) 8));
PyDict_SetItemString(d,"wxSTC_AVE_IDENTIFIER", PyInt_FromLong((long) 9));
PyDict_SetItemString(d,"wxSTC_AVE_OPERATOR", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD1", PyInt_FromLong((long) 11));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD2", PyInt_FromLong((long) 12));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD3", PyInt_FromLong((long) 13));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD4", PyInt_FromLong((long) 14));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD5", PyInt_FromLong((long) 15));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD6", PyInt_FromLong((long) 16));
PyDict_SetItemString(d,"wxSTC_ADA_DEFAULT", PyInt_FromLong((long) 0));
- PyDict_SetItemString(d,"wxSTC_ADA_COMMENT", PyInt_FromLong((long) 1));
- PyDict_SetItemString(d,"wxSTC_ADA_NUMBER", PyInt_FromLong((long) 2));
- PyDict_SetItemString(d,"wxSTC_ADA_WORD", PyInt_FromLong((long) 3));
- PyDict_SetItemString(d,"wxSTC_ADA_STRING", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_ADA_WORD", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_ADA_IDENTIFIER", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_ADA_NUMBER", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_ADA_DELIMITER", PyInt_FromLong((long) 4));
PyDict_SetItemString(d,"wxSTC_ADA_CHARACTER", PyInt_FromLong((long) 5));
- PyDict_SetItemString(d,"wxSTC_ADA_OPERATOR", PyInt_FromLong((long) 6));
- PyDict_SetItemString(d,"wxSTC_ADA_IDENTIFIER", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_ADA_CHARACTEREOL", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_ADA_STRING", PyInt_FromLong((long) 7));
PyDict_SetItemString(d,"wxSTC_ADA_STRINGEOL", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_ADA_LABEL", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_ADA_COMMENTLINE", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_ADA_ILLEGAL", PyInt_FromLong((long) 11));
PyDict_SetItemString(d,"wxSTC_BAAN_DEFAULT", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_BAAN_COMMENT", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_BAAN_COMMENTDOC", PyInt_FromLong((long) 2));
@@ -11973,6 +12913,58 @@ 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,"wxSTC_ASM_DEFAULT", PyInt_FromLong((long) 0));
+ PyDict_SetItemString(d,"wxSTC_ASM_COMMENT", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_ASM_NUMBER", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_ASM_STRING", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_ASM_OPERATOR", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_ASM_IDENTIFIER", PyInt_FromLong((long) 5));
+ PyDict_SetItemString(d,"wxSTC_ASM_CPUINSTRUCTION", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_ASM_MATHINSTRUCTION", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_ASM_REGISTER", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_ASM_DIRECTIVE", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_ASM_DIRECTIVEOPERAND", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_F_DEFAULT", PyInt_FromLong((long) 0));
+ PyDict_SetItemString(d,"wxSTC_F_COMMENT", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_F_NUMBER", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_F_STRING1", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_F_STRING2", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_F_STRINGEOL", PyInt_FromLong((long) 5));
+ PyDict_SetItemString(d,"wxSTC_F_OPERATOR", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_F_IDENTIFIER", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_F_WORD", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_F_WORD2", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_F_WORD3", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_F_PREPROCESSOR", PyInt_FromLong((long) 11));
+ PyDict_SetItemString(d,"wxSTC_F_OPERATOR2", PyInt_FromLong((long) 12));
+ PyDict_SetItemString(d,"wxSTC_F_LABEL", PyInt_FromLong((long) 13));
+ PyDict_SetItemString(d,"wxSTC_F_CONTINUATION", PyInt_FromLong((long) 14));
+ PyDict_SetItemString(d,"wxSTC_CSS_DEFAULT", PyInt_FromLong((long) 0));
+ PyDict_SetItemString(d,"wxSTC_CSS_TAG", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_CSS_CLASS", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_CSS_PSEUDOCLASS", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_CSS_UNKNOWN_PSEUDOCLASS", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_CSS_OPERATOR", PyInt_FromLong((long) 5));
+ PyDict_SetItemString(d,"wxSTC_CSS_IDENTIFIER", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_CSS_UNKNOWN_IDENTIFIER", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_CSS_VALUE", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_CSS_COMMENT", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_CSS_ID", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_CSS_IMPORTANT", PyInt_FromLong((long) 11));
+ PyDict_SetItemString(d,"wxSTC_CSS_DIRECTIVE", PyInt_FromLong((long) 12));
+ PyDict_SetItemString(d,"wxSTC_CSS_DOUBLESTRING", PyInt_FromLong((long) 13));
+ PyDict_SetItemString(d,"wxSTC_CSS_SINGLESTRING", PyInt_FromLong((long) 14));
+ PyDict_SetItemString(d,"wxSTC_POV_DEFAULT", PyInt_FromLong((long) 0));
+ PyDict_SetItemString(d,"wxSTC_POV_COMMENT", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_POV_COMMENTLINE", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_POV_COMMENTDOC", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_POV_NUMBER", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_POV_WORD", PyInt_FromLong((long) 5));
+ PyDict_SetItemString(d,"wxSTC_POV_STRING", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_POV_OPERATOR", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_POV_IDENTIFIER", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_POV_BRACE", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_POV_WORD2", PyInt_FromLong((long) 10));
PyDict_SetItemString(d,"wxSTC_CMD_REDO", PyInt_FromLong((long) 2011));
PyDict_SetItemString(d,"wxSTC_CMD_SELECTALL", PyInt_FromLong((long) 2013));
PyDict_SetItemString(d,"wxSTC_CMD_UNDO", PyInt_FromLong((long) 2176));
@@ -12020,6 +13012,7 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_CMD_LINECUT", PyInt_FromLong((long) 2337));
PyDict_SetItemString(d,"wxSTC_CMD_LINEDELETE", PyInt_FromLong((long) 2338));
PyDict_SetItemString(d,"wxSTC_CMD_LINETRANSPOSE", PyInt_FromLong((long) 2339));
+ PyDict_SetItemString(d,"wxSTC_CMD_LINEDUPLICATE", PyInt_FromLong((long) 2404));
PyDict_SetItemString(d,"wxSTC_CMD_LOWERCASE", PyInt_FromLong((long) 2340));
PyDict_SetItemString(d,"wxSTC_CMD_UPPERCASE", PyInt_FromLong((long) 2341));
PyDict_SetItemString(d,"wxSTC_CMD_LINESCROLLDOWN", PyInt_FromLong((long) 2342));
@@ -12029,12 +13022,22 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_CMD_HOMEDISPLAYEXTEND", PyInt_FromLong((long) 2346));
PyDict_SetItemString(d,"wxSTC_CMD_LINEENDDISPLAY", PyInt_FromLong((long) 2347));
PyDict_SetItemString(d,"wxSTC_CMD_LINEENDDISPLAYEXTEND", PyInt_FromLong((long) 2348));
+ PyDict_SetItemString(d,"wxSTC_CMD_HOMEWRAP", PyInt_FromLong((long) 2349));
+ PyDict_SetItemString(d,"wxSTC_CMD_HOMEWRAPEXTEND", PyInt_FromLong((long) 2450));
+ PyDict_SetItemString(d,"wxSTC_CMD_LINEENDWRAP", PyInt_FromLong((long) 2451));
+ PyDict_SetItemString(d,"wxSTC_CMD_LINEENDWRAPEXTEND", PyInt_FromLong((long) 2452));
+ PyDict_SetItemString(d,"wxSTC_CMD_VCHOMEWRAP", PyInt_FromLong((long) 2453));
+ PyDict_SetItemString(d,"wxSTC_CMD_VCHOMEWRAPEXTEND", PyInt_FromLong((long) 2454));
PyDict_SetItemString(d,"wxSTC_CMD_WORDPARTLEFT", PyInt_FromLong((long) 2390));
PyDict_SetItemString(d,"wxSTC_CMD_WORDPARTLEFTEXTEND", PyInt_FromLong((long) 2391));
PyDict_SetItemString(d,"wxSTC_CMD_WORDPARTRIGHT", PyInt_FromLong((long) 2392));
PyDict_SetItemString(d,"wxSTC_CMD_WORDPARTRIGHTEXTEND", PyInt_FromLong((long) 2393));
PyDict_SetItemString(d,"wxSTC_CMD_DELLINELEFT", PyInt_FromLong((long) 2395));
PyDict_SetItemString(d,"wxSTC_CMD_DELLINERIGHT", PyInt_FromLong((long) 2396));
+ PyDict_SetItemString(d,"wxSTC_CMD_PARADOWN", PyInt_FromLong((long) 2413));
+ PyDict_SetItemString(d,"wxSTC_CMD_PARADOWNEXTEND", PyInt_FromLong((long) 2414));
+ PyDict_SetItemString(d,"wxSTC_CMD_PARAUP", PyInt_FromLong((long) 2415));
+ PyDict_SetItemString(d,"wxSTC_CMD_PARAUPEXTEND", PyInt_FromLong((long) 2416));
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));
@@ -12059,6 +13062,9 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxEVT_STC_DRAG_OVER", PyInt_FromLong((long) wxEVT_STC_DRAG_OVER));
PyDict_SetItemString(d,"wxEVT_STC_DO_DROP", PyInt_FromLong((long) wxEVT_STC_DO_DROP));
PyDict_SetItemString(d,"wxEVT_STC_ZOOM", PyInt_FromLong((long) wxEVT_STC_ZOOM));
+ PyDict_SetItemString(d,"wxEVT_STC_HOTSPOT_CLICK", PyInt_FromLong((long) wxEVT_STC_HOTSPOT_CLICK));
+ PyDict_SetItemString(d,"wxEVT_STC_HOTSPOT_DCLICK", PyInt_FromLong((long) wxEVT_STC_HOTSPOT_DCLICK));
+ PyDict_SetItemString(d,"wxEVT_STC_CALLTIP_CLICK", PyInt_FromLong((long) wxEVT_STC_CALLTIP_CLICK));
wxClassInfo::CleanUpClasses();
diff --git a/wxPython/contrib/stc/gtk/stc_.py b/wxPython/contrib/stc/gtk/stc_.py
index a3a4fef4a9..93e7f892ef 100644
--- a/wxPython/contrib/stc/gtk/stc_.py
+++ b/wxPython/contrib/stc/gtk/stc_.py
@@ -112,930 +112,1019 @@ def EVT_STC_DO_DROP(win, id, func):
def EVT_STC_ZOOM(win, id, func):
win.Connect(id, -1, wxEVT_STC_ZOOM, func)
+def EVT_STC_HOTSPOT_CLICK(win, id, func):
+ win.Connect(id, -1, wxEVT_STC_HOTSPOT_CLICK, func)
+
+def EVT_STC_HOTSPOT_DCLICK(win, id, func):
+ win.Connect(id, -1, wxEVT_STC_HOTSPOT_DCLICK, func)
+
+def EVT_STC_CALLTIP_CLICK(win, id, func):
+ win.Connect(id, -1, wxEVT_STC_CALLTIP_CLICK, func)
class wxStyledTextCtrlPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def AddText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AddText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AddText(self, *_args, **_kwargs)
return val
def AddStyledText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AddStyledText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AddStyledText(self, *_args, **_kwargs)
return val
def InsertText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_InsertText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_InsertText(self, *_args, **_kwargs)
return val
def ClearAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ClearAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ClearAll(self, *_args, **_kwargs)
return val
def ClearDocumentStyle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ClearDocumentStyle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ClearDocumentStyle(self, *_args, **_kwargs)
return val
def GetLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLength(self, *_args, **_kwargs)
return val
def GetCharAt(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCharAt,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCharAt(self, *_args, **_kwargs)
return val
def GetCurrentPos(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCurrentPos,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCurrentPos(self, *_args, **_kwargs)
return val
def GetAnchor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetAnchor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetAnchor(self, *_args, **_kwargs)
return val
def GetStyleAt(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetStyleAt,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetStyleAt(self, *_args, **_kwargs)
return val
def Redo(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Redo,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Redo(self, *_args, **_kwargs)
return val
def SetUndoCollection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetUndoCollection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetUndoCollection(self, *_args, **_kwargs)
return val
def SelectAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SelectAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SelectAll(self, *_args, **_kwargs)
return val
def SetSavePoint(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSavePoint,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSavePoint(self, *_args, **_kwargs)
return val
def GetStyledText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetStyledText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetStyledText(self, *_args, **_kwargs)
return val
def CanRedo(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CanRedo,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CanRedo(self, *_args, **_kwargs)
return val
def MarkerLineFromHandle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerLineFromHandle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerLineFromHandle(self, *_args, **_kwargs)
return val
def MarkerDeleteHandle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerDeleteHandle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerDeleteHandle(self, *_args, **_kwargs)
return val
def GetUndoCollection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetUndoCollection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetUndoCollection(self, *_args, **_kwargs)
return val
def GetViewWhiteSpace(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetViewWhiteSpace,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetViewWhiteSpace(self, *_args, **_kwargs)
return val
def SetViewWhiteSpace(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetViewWhiteSpace,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetViewWhiteSpace(self, *_args, **_kwargs)
return val
def PositionFromPoint(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_PositionFromPoint,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_PositionFromPoint(self, *_args, **_kwargs)
return val
def PositionFromPointClose(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_PositionFromPointClose,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_PositionFromPointClose(self, *_args, **_kwargs)
return val
def GotoLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GotoLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GotoLine(self, *_args, **_kwargs)
return val
def GotoPos(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GotoPos,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GotoPos(self, *_args, **_kwargs)
return val
def SetAnchor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetAnchor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetAnchor(self, *_args, **_kwargs)
return val
def GetCurLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCurLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCurLine(self, *_args, **_kwargs)
return val
def GetEndStyled(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEndStyled,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEndStyled(self, *_args, **_kwargs)
return val
def ConvertEOLs(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ConvertEOLs,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ConvertEOLs(self, *_args, **_kwargs)
return val
def GetEOLMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEOLMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEOLMode(self, *_args, **_kwargs)
return val
def SetEOLMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEOLMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEOLMode(self, *_args, **_kwargs)
return val
def StartStyling(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StartStyling,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StartStyling(self, *_args, **_kwargs)
return val
def SetStyling(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetStyling,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetStyling(self, *_args, **_kwargs)
return val
def GetBufferedDraw(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetBufferedDraw,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetBufferedDraw(self, *_args, **_kwargs)
return val
def SetBufferedDraw(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetBufferedDraw,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetBufferedDraw(self, *_args, **_kwargs)
return val
def SetTabWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetTabWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetTabWidth(self, *_args, **_kwargs)
return val
def GetTabWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTabWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTabWidth(self, *_args, **_kwargs)
return val
def SetCodePage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCodePage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCodePage(self, *_args, **_kwargs)
return val
def MarkerDefine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerDefine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerDefine(self, *_args, **_kwargs)
return val
def MarkerSetForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerSetForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerSetForeground(self, *_args, **_kwargs)
return val
def MarkerSetBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerSetBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerSetBackground(self, *_args, **_kwargs)
return val
def MarkerAdd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerAdd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerAdd(self, *_args, **_kwargs)
return val
def MarkerDelete(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerDelete,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerDelete(self, *_args, **_kwargs)
return val
def MarkerDeleteAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerDeleteAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerDeleteAll(self, *_args, **_kwargs)
return val
def MarkerGet(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerGet,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerGet(self, *_args, **_kwargs)
return val
def MarkerNext(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerNext,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerNext(self, *_args, **_kwargs)
return val
def MarkerPrevious(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerPrevious,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerPrevious(self, *_args, **_kwargs)
+ return val
+ def MarkerDefineBitmap(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_MarkerDefineBitmap(self, *_args, **_kwargs)
return val
def SetMarginType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginType(self, *_args, **_kwargs)
return val
def GetMarginType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginType(self, *_args, **_kwargs)
return val
def SetMarginWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginWidth(self, *_args, **_kwargs)
return val
def GetMarginWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginWidth(self, *_args, **_kwargs)
return val
def SetMarginMask(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginMask,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginMask(self, *_args, **_kwargs)
return val
def GetMarginMask(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginMask,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginMask(self, *_args, **_kwargs)
return val
def SetMarginSensitive(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginSensitive,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginSensitive(self, *_args, **_kwargs)
return val
def GetMarginSensitive(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginSensitive,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginSensitive(self, *_args, **_kwargs)
return val
def StyleClearAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleClearAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleClearAll(self, *_args, **_kwargs)
return val
def StyleSetForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetForeground(self, *_args, **_kwargs)
return val
def StyleSetBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetBackground(self, *_args, **_kwargs)
return val
def StyleSetBold(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetBold,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetBold(self, *_args, **_kwargs)
return val
def StyleSetItalic(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetItalic,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetItalic(self, *_args, **_kwargs)
return val
def StyleSetSize(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetSize,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetSize(self, *_args, **_kwargs)
return val
def StyleSetFaceName(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetFaceName,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetFaceName(self, *_args, **_kwargs)
return val
def StyleSetEOLFilled(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetEOLFilled,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetEOLFilled(self, *_args, **_kwargs)
return val
def StyleResetDefault(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleResetDefault,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleResetDefault(self, *_args, **_kwargs)
return val
def StyleSetUnderline(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetUnderline,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetUnderline(self, *_args, **_kwargs)
return val
def StyleSetCase(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetCase,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetCase(self, *_args, **_kwargs)
return val
def StyleSetCharacterSet(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetCharacterSet,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetCharacterSet(self, *_args, **_kwargs)
+ return val
+ def StyleSetHotSpot(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_StyleSetHotSpot(self, *_args, **_kwargs)
return val
def SetSelForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelForeground(self, *_args, **_kwargs)
return val
def SetSelBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelBackground(self, *_args, **_kwargs)
return val
def SetCaretForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretForeground(self, *_args, **_kwargs)
return val
def CmdKeyAssign(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CmdKeyAssign,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CmdKeyAssign(self, *_args, **_kwargs)
return val
def CmdKeyClear(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CmdKeyClear,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CmdKeyClear(self, *_args, **_kwargs)
return val
def CmdKeyClearAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CmdKeyClearAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CmdKeyClearAll(self, *_args, **_kwargs)
return val
def SetStyleBytes(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetStyleBytes,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetStyleBytes(self, *_args, **_kwargs)
return val
def StyleSetVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetVisible(self, *_args, **_kwargs)
return val
def GetCaretPeriod(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretPeriod,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretPeriod(self, *_args, **_kwargs)
return val
def SetCaretPeriod(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretPeriod,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretPeriod(self, *_args, **_kwargs)
return val
def SetWordChars(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetWordChars,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetWordChars(self, *_args, **_kwargs)
return val
def BeginUndoAction(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_BeginUndoAction,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_BeginUndoAction(self, *_args, **_kwargs)
return val
def EndUndoAction(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EndUndoAction,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EndUndoAction(self, *_args, **_kwargs)
return val
def IndicatorSetStyle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_IndicatorSetStyle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_IndicatorSetStyle(self, *_args, **_kwargs)
return val
def IndicatorGetStyle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_IndicatorGetStyle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_IndicatorGetStyle(self, *_args, **_kwargs)
return val
def IndicatorSetForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_IndicatorSetForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_IndicatorSetForeground(self, *_args, **_kwargs)
return val
def IndicatorGetForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_IndicatorGetForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_IndicatorGetForeground(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetWhitespaceForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetWhitespaceForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetWhitespaceForeground(self, *_args, **_kwargs)
return val
def SetWhitespaceBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetWhitespaceBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetWhitespaceBackground(self, *_args, **_kwargs)
return val
def SetStyleBits(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetStyleBits,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetStyleBits(self, *_args, **_kwargs)
return val
def GetStyleBits(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetStyleBits,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetStyleBits(self, *_args, **_kwargs)
return val
def SetLineState(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLineState,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLineState(self, *_args, **_kwargs)
return val
def GetLineState(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineState,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineState(self, *_args, **_kwargs)
return val
def GetMaxLineState(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMaxLineState,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMaxLineState(self, *_args, **_kwargs)
return val
def GetCaretLineVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretLineVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretLineVisible(self, *_args, **_kwargs)
return val
def SetCaretLineVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretLineVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretLineVisible(self, *_args, **_kwargs)
return val
def GetCaretLineBack(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretLineBack,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretLineBack(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetCaretLineBack(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretLineBack,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretLineBack(self, *_args, **_kwargs)
return val
def StyleSetChangeable(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetChangeable,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetChangeable(self, *_args, **_kwargs)
return val
def AutoCompShow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompShow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompShow(self, *_args, **_kwargs)
return val
def AutoCompCancel(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompCancel,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompCancel(self, *_args, **_kwargs)
return val
def AutoCompActive(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompActive,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompActive(self, *_args, **_kwargs)
return val
def AutoCompPosStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompPosStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompPosStart(self, *_args, **_kwargs)
return val
def AutoCompComplete(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompComplete,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompComplete(self, *_args, **_kwargs)
return val
def AutoCompStops(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompStops,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompStops(self, *_args, **_kwargs)
return val
def AutoCompSetSeparator(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetSeparator,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetSeparator(self, *_args, **_kwargs)
return val
def AutoCompGetSeparator(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetSeparator,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetSeparator(self, *_args, **_kwargs)
return val
def AutoCompSelect(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSelect,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSelect(self, *_args, **_kwargs)
return val
def AutoCompSetCancelAtStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetCancelAtStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetCancelAtStart(self, *_args, **_kwargs)
return val
def AutoCompGetCancelAtStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetCancelAtStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetCancelAtStart(self, *_args, **_kwargs)
return val
def AutoCompSetFillUps(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetFillUps,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetFillUps(self, *_args, **_kwargs)
return val
def AutoCompSetChooseSingle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetChooseSingle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetChooseSingle(self, *_args, **_kwargs)
return val
def AutoCompGetChooseSingle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetChooseSingle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetChooseSingle(self, *_args, **_kwargs)
return val
def AutoCompSetIgnoreCase(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetIgnoreCase,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetIgnoreCase(self, *_args, **_kwargs)
return val
def AutoCompGetIgnoreCase(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetIgnoreCase,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetIgnoreCase(self, *_args, **_kwargs)
return val
def UserListShow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_UserListShow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_UserListShow(self, *_args, **_kwargs)
return val
def AutoCompSetAutoHide(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetAutoHide,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetAutoHide(self, *_args, **_kwargs)
return val
def AutoCompGetAutoHide(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetAutoHide,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetAutoHide(self, *_args, **_kwargs)
return val
def AutoCompSetDropRestOfWord(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetDropRestOfWord,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetDropRestOfWord(self, *_args, **_kwargs)
return val
def AutoCompGetDropRestOfWord(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetDropRestOfWord,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetDropRestOfWord(self, *_args, **_kwargs)
+ return val
+ def RegisterImage(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_RegisterImage(self, *_args, **_kwargs)
+ return val
+ def ClearRegisteredImages(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_ClearRegisteredImages(self, *_args, **_kwargs)
+ return val
+ def AutoCompGetTypeSeparator(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_AutoCompGetTypeSeparator(self, *_args, **_kwargs)
+ return val
+ def AutoCompSetTypeSeparator(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_AutoCompSetTypeSeparator(self, *_args, **_kwargs)
return val
def SetIndent(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetIndent,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetIndent(self, *_args, **_kwargs)
return val
def GetIndent(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetIndent,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetIndent(self, *_args, **_kwargs)
return val
def SetUseTabs(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetUseTabs,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetUseTabs(self, *_args, **_kwargs)
return val
def GetUseTabs(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetUseTabs,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetUseTabs(self, *_args, **_kwargs)
return val
def SetLineIndentation(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLineIndentation,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLineIndentation(self, *_args, **_kwargs)
return val
def GetLineIndentation(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineIndentation,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineIndentation(self, *_args, **_kwargs)
return val
def GetLineIndentPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineIndentPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineIndentPosition(self, *_args, **_kwargs)
return val
def GetColumn(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetColumn,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetColumn(self, *_args, **_kwargs)
return val
def SetUseHorizontalScrollBar(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetUseHorizontalScrollBar,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetUseHorizontalScrollBar(self, *_args, **_kwargs)
return val
def GetUseHorizontalScrollBar(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetUseHorizontalScrollBar,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetUseHorizontalScrollBar(self, *_args, **_kwargs)
return val
def SetIndentationGuides(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetIndentationGuides,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetIndentationGuides(self, *_args, **_kwargs)
return val
def GetIndentationGuides(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetIndentationGuides,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetIndentationGuides(self, *_args, **_kwargs)
return val
def SetHighlightGuide(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetHighlightGuide,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetHighlightGuide(self, *_args, **_kwargs)
return val
def GetHighlightGuide(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetHighlightGuide,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetHighlightGuide(self, *_args, **_kwargs)
return val
def GetLineEndPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineEndPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineEndPosition(self, *_args, **_kwargs)
return val
def GetCodePage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCodePage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCodePage(self, *_args, **_kwargs)
return val
def GetCaretForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretForeground(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetReadOnly(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetReadOnly,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetReadOnly(self, *_args, **_kwargs)
return val
def SetCurrentPos(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCurrentPos,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCurrentPos(self, *_args, **_kwargs)
return val
def SetSelectionStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelectionStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelectionStart(self, *_args, **_kwargs)
return val
def GetSelectionStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSelectionStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSelectionStart(self, *_args, **_kwargs)
return val
def SetSelectionEnd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelectionEnd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelectionEnd(self, *_args, **_kwargs)
return val
def GetSelectionEnd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSelectionEnd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSelectionEnd(self, *_args, **_kwargs)
return val
def SetPrintMagnification(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetPrintMagnification,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetPrintMagnification(self, *_args, **_kwargs)
return val
def GetPrintMagnification(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetPrintMagnification,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetPrintMagnification(self, *_args, **_kwargs)
return val
def SetPrintColourMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetPrintColourMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetPrintColourMode(self, *_args, **_kwargs)
return val
def GetPrintColourMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetPrintColourMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetPrintColourMode(self, *_args, **_kwargs)
return val
def FindText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_FindText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_FindText(self, *_args, **_kwargs)
return val
def FormatRange(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_FormatRange,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_FormatRange(self, *_args, **_kwargs)
return val
def GetFirstVisibleLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetFirstVisibleLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetFirstVisibleLine(self, *_args, **_kwargs)
return val
def GetLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLine(self, *_args, **_kwargs)
return val
def GetLineCount(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineCount,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineCount(self, *_args, **_kwargs)
return val
def SetMarginLeft(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginLeft,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginLeft(self, *_args, **_kwargs)
return val
def GetMarginLeft(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginLeft,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginLeft(self, *_args, **_kwargs)
return val
def SetMarginRight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginRight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginRight(self, *_args, **_kwargs)
return val
def GetMarginRight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginRight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginRight(self, *_args, **_kwargs)
return val
def GetModify(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetModify,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetModify(self, *_args, **_kwargs)
return val
def SetSelection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelection(self, *_args, **_kwargs)
return val
def GetSelectedText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSelectedText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSelectedText(self, *_args, **_kwargs)
return val
def GetTextRange(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTextRange,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTextRange(self, *_args, **_kwargs)
return val
def HideSelection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_HideSelection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_HideSelection(self, *_args, **_kwargs)
return val
def LineFromPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineFromPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineFromPosition(self, *_args, **_kwargs)
return val
def PositionFromLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_PositionFromLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_PositionFromLine(self, *_args, **_kwargs)
return val
def LineScroll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineScroll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineScroll(self, *_args, **_kwargs)
return val
def EnsureCaretVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EnsureCaretVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EnsureCaretVisible(self, *_args, **_kwargs)
return val
def ReplaceSelection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ReplaceSelection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ReplaceSelection(self, *_args, **_kwargs)
return val
def SetReadOnly(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetReadOnly,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetReadOnly(self, *_args, **_kwargs)
return val
def CanPaste(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CanPaste,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CanPaste(self, *_args, **_kwargs)
return val
def CanUndo(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CanUndo,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CanUndo(self, *_args, **_kwargs)
return val
def EmptyUndoBuffer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EmptyUndoBuffer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EmptyUndoBuffer(self, *_args, **_kwargs)
return val
def Undo(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Undo,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Undo(self, *_args, **_kwargs)
return val
def Cut(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Cut,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Cut(self, *_args, **_kwargs)
return val
def Copy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Copy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Copy(self, *_args, **_kwargs)
return val
def Paste(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Paste,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Paste(self, *_args, **_kwargs)
return val
def Clear(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Clear,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Clear(self, *_args, **_kwargs)
return val
def SetText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetText(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetText(self, *_args, **_kwargs)
return val
def GetTextLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTextLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTextLength(self, *_args, **_kwargs)
return val
def SetOvertype(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetOvertype,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetOvertype(self, *_args, **_kwargs)
return val
def GetOvertype(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetOvertype,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetOvertype(self, *_args, **_kwargs)
return val
def SetCaretWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretWidth(self, *_args, **_kwargs)
return val
def GetCaretWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretWidth(self, *_args, **_kwargs)
return val
def SetTargetStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetTargetStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetTargetStart(self, *_args, **_kwargs)
return val
def GetTargetStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTargetStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTargetStart(self, *_args, **_kwargs)
return val
def SetTargetEnd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetTargetEnd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetTargetEnd(self, *_args, **_kwargs)
return val
def GetTargetEnd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTargetEnd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTargetEnd(self, *_args, **_kwargs)
return val
def ReplaceTarget(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ReplaceTarget,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ReplaceTarget(self, *_args, **_kwargs)
return val
def ReplaceTargetRE(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ReplaceTargetRE,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ReplaceTargetRE(self, *_args, **_kwargs)
return val
def SearchInTarget(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SearchInTarget,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SearchInTarget(self, *_args, **_kwargs)
return val
def SetSearchFlags(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSearchFlags,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSearchFlags(self, *_args, **_kwargs)
return val
def GetSearchFlags(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSearchFlags,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSearchFlags(self, *_args, **_kwargs)
return val
def CallTipShow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipShow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipShow(self, *_args, **_kwargs)
return val
def CallTipCancel(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipCancel,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipCancel(self, *_args, **_kwargs)
return val
def CallTipActive(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipActive,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipActive(self, *_args, **_kwargs)
return val
def CallTipPosAtStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipPosAtStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipPosAtStart(self, *_args, **_kwargs)
return val
def CallTipSetHighlight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipSetHighlight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipSetHighlight(self, *_args, **_kwargs)
return val
def CallTipSetBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipSetBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipSetBackground(self, *_args, **_kwargs)
+ return val
+ def CallTipSetForeground(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_CallTipSetForeground(self, *_args, **_kwargs)
+ return val
+ def CallTipSetForegroundHighlight(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_CallTipSetForegroundHighlight(self, *_args, **_kwargs)
return val
def VisibleFromDocLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_VisibleFromDocLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_VisibleFromDocLine(self, *_args, **_kwargs)
return val
def DocLineFromVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_DocLineFromVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_DocLineFromVisible(self, *_args, **_kwargs)
return val
def SetFoldLevel(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetFoldLevel,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetFoldLevel(self, *_args, **_kwargs)
return val
def GetFoldLevel(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetFoldLevel,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetFoldLevel(self, *_args, **_kwargs)
return val
def GetLastChild(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLastChild,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLastChild(self, *_args, **_kwargs)
return val
def GetFoldParent(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetFoldParent,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetFoldParent(self, *_args, **_kwargs)
return val
def ShowLines(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ShowLines,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ShowLines(self, *_args, **_kwargs)
return val
def HideLines(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_HideLines,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_HideLines(self, *_args, **_kwargs)
return val
def GetLineVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineVisible(self, *_args, **_kwargs)
return val
def SetFoldExpanded(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetFoldExpanded,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetFoldExpanded(self, *_args, **_kwargs)
return val
def GetFoldExpanded(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetFoldExpanded,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetFoldExpanded(self, *_args, **_kwargs)
return val
def ToggleFold(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ToggleFold,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ToggleFold(self, *_args, **_kwargs)
return val
def EnsureVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EnsureVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EnsureVisible(self, *_args, **_kwargs)
return val
def SetFoldFlags(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetFoldFlags,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetFoldFlags(self, *_args, **_kwargs)
return val
def EnsureVisibleEnforcePolicy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EnsureVisibleEnforcePolicy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EnsureVisibleEnforcePolicy(self, *_args, **_kwargs)
return val
def SetTabIndents(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetTabIndents,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetTabIndents(self, *_args, **_kwargs)
return val
def GetTabIndents(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTabIndents,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTabIndents(self, *_args, **_kwargs)
return val
def SetBackSpaceUnIndents(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetBackSpaceUnIndents,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetBackSpaceUnIndents(self, *_args, **_kwargs)
return val
def GetBackSpaceUnIndents(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetBackSpaceUnIndents,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetBackSpaceUnIndents(self, *_args, **_kwargs)
return val
def SetMouseDwellTime(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMouseDwellTime,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMouseDwellTime(self, *_args, **_kwargs)
return val
def GetMouseDwellTime(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMouseDwellTime,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMouseDwellTime(self, *_args, **_kwargs)
return val
def WordStartPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordStartPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordStartPosition(self, *_args, **_kwargs)
return val
def WordEndPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordEndPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordEndPosition(self, *_args, **_kwargs)
return val
def SetWrapMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetWrapMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetWrapMode(self, *_args, **_kwargs)
return val
def GetWrapMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetWrapMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetWrapMode(self, *_args, **_kwargs)
return val
def SetLayoutCache(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLayoutCache,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLayoutCache(self, *_args, **_kwargs)
return val
def GetLayoutCache(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLayoutCache,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLayoutCache(self, *_args, **_kwargs)
return val
def SetScrollWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetScrollWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetScrollWidth(self, *_args, **_kwargs)
return val
def GetScrollWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetScrollWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetScrollWidth(self, *_args, **_kwargs)
return val
def TextWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_TextWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_TextWidth(self, *_args, **_kwargs)
return val
def SetEndAtLastLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEndAtLastLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEndAtLastLine(self, *_args, **_kwargs)
return val
def GetEndAtLastLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEndAtLastLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEndAtLastLine(self, *_args, **_kwargs)
return val
def TextHeight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_TextHeight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_TextHeight(self, *_args, **_kwargs)
+ return val
+ def SetUseVerticalScrollBar(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetUseVerticalScrollBar(self, *_args, **_kwargs)
+ return val
+ def GetUseVerticalScrollBar(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_GetUseVerticalScrollBar(self, *_args, **_kwargs)
+ return val
+ def AppendText(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_AppendText(self, *_args, **_kwargs)
+ return val
+ def GetTwoPhaseDraw(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_GetTwoPhaseDraw(self, *_args, **_kwargs)
+ return val
+ def SetTwoPhaseDraw(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetTwoPhaseDraw(self, *_args, **_kwargs)
+ return val
+ def TargetFromSelection(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_TargetFromSelection(self, *_args, **_kwargs)
+ return val
+ def LinesJoin(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_LinesJoin(self, *_args, **_kwargs)
+ return val
+ def LinesSplit(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_LinesSplit(self, *_args, **_kwargs)
+ return val
+ def SetFoldMarginColour(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetFoldMarginColour(self, *_args, **_kwargs)
+ return val
+ def SetFoldMarginHiColour(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetFoldMarginHiColour(self, *_args, **_kwargs)
+ return val
+ def LineDuplicate(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_LineDuplicate(self, *_args, **_kwargs)
return val
def HomeDisplay(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_HomeDisplay,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_HomeDisplay(self, *_args, **_kwargs)
return val
def HomeDisplayExtend(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_HomeDisplayExtend,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_HomeDisplayExtend(self, *_args, **_kwargs)
return val
def LineEndDisplay(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineEndDisplay,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineEndDisplay(self, *_args, **_kwargs)
return val
def LineEndDisplayExtend(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineEndDisplayExtend,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineEndDisplayExtend(self, *_args, **_kwargs)
return val
def MoveCaretInsideView(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MoveCaretInsideView,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MoveCaretInsideView(self, *_args, **_kwargs)
return val
def LineLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineLength(self, *_args, **_kwargs)
return val
def BraceHighlight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_BraceHighlight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_BraceHighlight(self, *_args, **_kwargs)
return val
def BraceBadLight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_BraceBadLight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_BraceBadLight(self, *_args, **_kwargs)
return val
def BraceMatch(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_BraceMatch,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_BraceMatch(self, *_args, **_kwargs)
return val
def GetViewEOL(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetViewEOL,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetViewEOL(self, *_args, **_kwargs)
return val
def SetViewEOL(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetViewEOL,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetViewEOL(self, *_args, **_kwargs)
return val
def GetDocPointer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetDocPointer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetDocPointer(self, *_args, **_kwargs)
return val
def SetDocPointer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetDocPointer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetDocPointer(self, *_args, **_kwargs)
return val
def SetModEventMask(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetModEventMask,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetModEventMask(self, *_args, **_kwargs)
return val
def GetEdgeColumn(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEdgeColumn,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEdgeColumn(self, *_args, **_kwargs)
return val
def SetEdgeColumn(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEdgeColumn,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEdgeColumn(self, *_args, **_kwargs)
return val
def GetEdgeMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEdgeMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEdgeMode(self, *_args, **_kwargs)
return val
def SetEdgeMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEdgeMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEdgeMode(self, *_args, **_kwargs)
return val
def GetEdgeColour(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEdgeColour,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEdgeColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetEdgeColour(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEdgeColour,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEdgeColour(self, *_args, **_kwargs)
return val
def SearchAnchor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SearchAnchor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SearchAnchor(self, *_args, **_kwargs)
return val
def SearchNext(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SearchNext,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SearchNext(self, *_args, **_kwargs)
return val
def SearchPrev(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SearchPrev,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SearchPrev(self, *_args, **_kwargs)
return val
def LinesOnScreen(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LinesOnScreen,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LinesOnScreen(self, *_args, **_kwargs)
return val
def UsePopUp(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_UsePopUp,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_UsePopUp(self, *_args, **_kwargs)
return val
def SelectionIsRectangle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SelectionIsRectangle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SelectionIsRectangle(self, *_args, **_kwargs)
return val
def SetZoom(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetZoom,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetZoom(self, *_args, **_kwargs)
return val
def GetZoom(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetZoom,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetZoom(self, *_args, **_kwargs)
return val
def CreateDocument(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CreateDocument,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CreateDocument(self, *_args, **_kwargs)
return val
def AddRefDocument(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AddRefDocument,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AddRefDocument(self, *_args, **_kwargs)
return val
def ReleaseDocument(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ReleaseDocument,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ReleaseDocument(self, *_args, **_kwargs)
return val
def GetModEventMask(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetModEventMask,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetModEventMask(self, *_args, **_kwargs)
return val
def SetSTCFocus(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSTCFocus,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSTCFocus(self, *_args, **_kwargs)
return val
def GetSTCFocus(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSTCFocus,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSTCFocus(self, *_args, **_kwargs)
return val
def SetStatus(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetStatus,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetStatus(self, *_args, **_kwargs)
return val
def GetStatus(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetStatus,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetStatus(self, *_args, **_kwargs)
return val
def SetMouseDownCaptures(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMouseDownCaptures,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMouseDownCaptures(self, *_args, **_kwargs)
return val
def GetMouseDownCaptures(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMouseDownCaptures,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMouseDownCaptures(self, *_args, **_kwargs)
return val
def SetCursor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCursor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCursor(self, *_args, **_kwargs)
return val
def GetCursor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCursor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCursor(self, *_args, **_kwargs)
return val
def SetControlCharSymbol(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetControlCharSymbol,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetControlCharSymbol(self, *_args, **_kwargs)
return val
def GetControlCharSymbol(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetControlCharSymbol,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetControlCharSymbol(self, *_args, **_kwargs)
return val
def WordPartLeft(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordPartLeft,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordPartLeft(self, *_args, **_kwargs)
return val
def WordPartLeftExtend(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordPartLeftExtend,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordPartLeftExtend(self, *_args, **_kwargs)
return val
def WordPartRight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordPartRight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordPartRight(self, *_args, **_kwargs)
return val
def WordPartRightExtend(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordPartRightExtend,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordPartRightExtend(self, *_args, **_kwargs)
return val
def SetVisiblePolicy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetVisiblePolicy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetVisiblePolicy(self, *_args, **_kwargs)
return val
def DelLineLeft(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_DelLineLeft,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_DelLineLeft(self, *_args, **_kwargs)
return val
def DelLineRight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_DelLineRight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_DelLineRight(self, *_args, **_kwargs)
return val
def SetXOffset(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetXOffset,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetXOffset(self, *_args, **_kwargs)
return val
def GetXOffset(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetXOffset,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetXOffset(self, *_args, **_kwargs)
+ return val
+ def ChooseCaretX(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_ChooseCaretX(self, *_args, **_kwargs)
return val
def SetXCaretPolicy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetXCaretPolicy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetXCaretPolicy(self, *_args, **_kwargs)
return val
def SetYCaretPolicy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetYCaretPolicy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetYCaretPolicy(self, *_args, **_kwargs)
+ return val
+ def SetPrintWrapMode(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetPrintWrapMode(self, *_args, **_kwargs)
+ return val
+ def GetPrintWrapMode(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_GetPrintWrapMode(self, *_args, **_kwargs)
+ return val
+ def SetHotspotActiveForeground(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetHotspotActiveForeground(self, *_args, **_kwargs)
+ return val
+ def SetHotspotActiveBackground(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetHotspotActiveBackground(self, *_args, **_kwargs)
+ return val
+ def SetHotspotActiveUnderline(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetHotspotActiveUnderline(self, *_args, **_kwargs)
return val
def StartRecord(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StartRecord,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StartRecord(self, *_args, **_kwargs)
return val
def StopRecord(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StopRecord,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StopRecord(self, *_args, **_kwargs)
return val
def SetLexer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLexer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLexer(self, *_args, **_kwargs)
return val
def GetLexer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLexer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLexer(self, *_args, **_kwargs)
return val
def Colourise(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Colourise,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Colourise(self, *_args, **_kwargs)
return val
def SetProperty(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetProperty,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetProperty(self, *_args, **_kwargs)
return val
def SetKeyWords(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetKeyWords,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetKeyWords(self, *_args, **_kwargs)
return val
def SetLexerLanguage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLexerLanguage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLexerLanguage(self, *_args, **_kwargs)
return val
def GetCurrentLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCurrentLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCurrentLine(self, *_args, **_kwargs)
return val
def StyleSetSpec(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetSpec,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetSpec(self, *_args, **_kwargs)
return val
def StyleSetFont(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetFont,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetFont(self, *_args, **_kwargs)
return val
def StyleSetFontAttr(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetFontAttr,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetFontAttr(self, *_args, **_kwargs)
return val
def CmdKeyExecute(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CmdKeyExecute,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CmdKeyExecute(self, *_args, **_kwargs)
return val
def SetMargins(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMargins,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMargins(self, *_args, **_kwargs)
return val
def GetSelection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSelection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSelection(self, *_args, **_kwargs)
return val
def PointFromPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_PointFromPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_PointFromPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def ScrollToLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ScrollToLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ScrollToLine(self, *_args, **_kwargs)
return val
def ScrollToColumn(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ScrollToColumn,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ScrollToColumn(self, *_args, **_kwargs)
return val
def SendMsg(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SendMsg,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SendMsg(self, *_args, **_kwargs)
return val
def SetVScrollBar(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetVScrollBar,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetVScrollBar(self, *_args, **_kwargs)
return val
def SetHScrollBar(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetHScrollBar,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetHScrollBar(self, *_args, **_kwargs)
return val
def GetLastKeydownProcessed(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLastKeydownProcessed,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLastKeydownProcessed(self, *_args, **_kwargs)
return val
def SetLastKeydownProcessed(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLastKeydownProcessed,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLastKeydownProcessed(self, *_args, **_kwargs)
+ return val
+ def SaveFile(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SaveFile(self, *_args, **_kwargs)
+ return val
+ def LoadFile(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_LoadFile(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxStyledTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxStyledTextCtrl(wxStyledTextCtrlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(stc_c.new_wxStyledTextCtrl,_args,_kwargs)
+ self.this = stc_c.new_wxStyledTextCtrl(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -1053,143 +1142,143 @@ class wxStyledTextEventPtr(wxCommandEventPtr):
except:
pass
def SetPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetPosition(self, *_args, **_kwargs)
return val
def SetKey(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetKey,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetKey(self, *_args, **_kwargs)
return val
def SetModifiers(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetModifiers,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetModifiers(self, *_args, **_kwargs)
return val
def SetModificationType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetModificationType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetModificationType(self, *_args, **_kwargs)
return val
def SetText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetText(self, *_args, **_kwargs)
return val
def SetLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetLength(self, *_args, **_kwargs)
return val
def SetLinesAdded(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetLinesAdded,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetLinesAdded(self, *_args, **_kwargs)
return val
def SetLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetLine(self, *_args, **_kwargs)
return val
def SetFoldLevelNow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetFoldLevelNow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetFoldLevelNow(self, *_args, **_kwargs)
return val
def SetFoldLevelPrev(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetFoldLevelPrev,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetFoldLevelPrev(self, *_args, **_kwargs)
return val
def SetMargin(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetMargin,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetMargin(self, *_args, **_kwargs)
return val
def SetMessage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetMessage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetMessage(self, *_args, **_kwargs)
return val
def SetWParam(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetWParam,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetWParam(self, *_args, **_kwargs)
return val
def SetLParam(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetLParam,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetLParam(self, *_args, **_kwargs)
return val
def SetListType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetListType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetListType(self, *_args, **_kwargs)
return val
def SetX(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetX,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetX(self, *_args, **_kwargs)
return val
def SetY(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetY,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetY(self, *_args, **_kwargs)
return val
def SetDragText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetDragText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetDragText(self, *_args, **_kwargs)
return val
def SetDragAllowMove(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetDragAllowMove,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetDragAllowMove(self, *_args, **_kwargs)
return val
def SetDragResult(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetDragResult,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetDragResult(self, *_args, **_kwargs)
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetPosition(self, *_args, **_kwargs)
return val
def GetKey(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetKey,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetKey(self, *_args, **_kwargs)
return val
def GetModifiers(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetModifiers,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetModifiers(self, *_args, **_kwargs)
return val
def GetModificationType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetModificationType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetModificationType(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetText(self, *_args, **_kwargs)
return val
def GetLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetLength(self, *_args, **_kwargs)
return val
def GetLinesAdded(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetLinesAdded,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetLinesAdded(self, *_args, **_kwargs)
return val
def GetLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetLine(self, *_args, **_kwargs)
return val
def GetFoldLevelNow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetFoldLevelNow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetFoldLevelNow(self, *_args, **_kwargs)
return val
def GetFoldLevelPrev(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetFoldLevelPrev,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetFoldLevelPrev(self, *_args, **_kwargs)
return val
def GetMargin(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetMargin,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetMargin(self, *_args, **_kwargs)
return val
def GetMessage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetMessage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetMessage(self, *_args, **_kwargs)
return val
def GetWParam(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetWParam,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetWParam(self, *_args, **_kwargs)
return val
def GetLParam(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetLParam,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetLParam(self, *_args, **_kwargs)
return val
def GetListType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetListType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetListType(self, *_args, **_kwargs)
return val
def GetX(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetX,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetX(self, *_args, **_kwargs)
return val
def GetY(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetY,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetY(self, *_args, **_kwargs)
return val
def GetDragText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetDragText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetDragText(self, *_args, **_kwargs)
return val
def GetDragAllowMove(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetDragAllowMove,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetDragAllowMove(self, *_args, **_kwargs)
return val
def GetDragResult(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetDragResult,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetDragResult(self, *_args, **_kwargs)
return val
def GetShift(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetShift,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetShift(self, *_args, **_kwargs)
return val
def GetControl(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetControl,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetControl(self, *_args, **_kwargs)
return val
def GetAlt(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetAlt,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetAlt(self, *_args, **_kwargs)
return val
def Clone(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_Clone,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_Clone(self, *_args, **_kwargs)
if val: val = wxEventPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxStyledTextEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxStyledTextEvent(wxStyledTextEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(stc_c.new_wxStyledTextEvent,_args,_kwargs)
+ self.this = stc_c.new_wxStyledTextEvent(*_args,**_kwargs)
self.thisown = 1
@@ -1215,6 +1304,7 @@ wxSTC_EOL_CRLF = stc_c.wxSTC_EOL_CRLF
wxSTC_EOL_CR = stc_c.wxSTC_EOL_CR
wxSTC_EOL_LF = stc_c.wxSTC_EOL_LF
wxSTC_CP_UTF8 = stc_c.wxSTC_CP_UTF8
+wxSTC_CP_DBCS = stc_c.wxSTC_CP_DBCS
wxSTC_MARKER_MAX = stc_c.wxSTC_MARKER_MAX
wxSTC_MARK_CIRCLE = stc_c.wxSTC_MARK_CIRCLE
wxSTC_MARK_ROUNDRECT = stc_c.wxSTC_MARK_ROUNDRECT
@@ -1241,6 +1331,7 @@ wxSTC_MARK_CIRCLEMINUSCONNECTED = stc_c.wxSTC_MARK_CIRCLEMINUSCONNECTED
wxSTC_MARK_BACKGROUND = stc_c.wxSTC_MARK_BACKGROUND
wxSTC_MARK_DOTDOTDOT = stc_c.wxSTC_MARK_DOTDOTDOT
wxSTC_MARK_ARROWS = stc_c.wxSTC_MARK_ARROWS
+wxSTC_MARK_PIXMAP = stc_c.wxSTC_MARK_PIXMAP
wxSTC_MARK_CHARACTER = stc_c.wxSTC_MARK_CHARACTER
wxSTC_MARKNUM_FOLDEREND = stc_c.wxSTC_MARKNUM_FOLDEREND
wxSTC_MARKNUM_FOLDEROPENMID = stc_c.wxSTC_MARKNUM_FOLDEROPENMID
@@ -1301,10 +1392,21 @@ wxSTC_FIND_WHOLEWORD = stc_c.wxSTC_FIND_WHOLEWORD
wxSTC_FIND_MATCHCASE = stc_c.wxSTC_FIND_MATCHCASE
wxSTC_FIND_WORDSTART = stc_c.wxSTC_FIND_WORDSTART
wxSTC_FIND_REGEXP = stc_c.wxSTC_FIND_REGEXP
+wxSTC_FIND_POSIX = stc_c.wxSTC_FIND_POSIX
wxSTC_FOLDLEVELBASE = stc_c.wxSTC_FOLDLEVELBASE
wxSTC_FOLDLEVELWHITEFLAG = stc_c.wxSTC_FOLDLEVELWHITEFLAG
wxSTC_FOLDLEVELHEADERFLAG = stc_c.wxSTC_FOLDLEVELHEADERFLAG
+wxSTC_FOLDLEVELBOXHEADERFLAG = stc_c.wxSTC_FOLDLEVELBOXHEADERFLAG
+wxSTC_FOLDLEVELBOXFOOTERFLAG = stc_c.wxSTC_FOLDLEVELBOXFOOTERFLAG
+wxSTC_FOLDLEVELCONTRACTED = stc_c.wxSTC_FOLDLEVELCONTRACTED
+wxSTC_FOLDLEVELUNINDENT = stc_c.wxSTC_FOLDLEVELUNINDENT
wxSTC_FOLDLEVELNUMBERMASK = stc_c.wxSTC_FOLDLEVELNUMBERMASK
+wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED = stc_c.wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED
+wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED = stc_c.wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED
+wxSTC_FOLDFLAG_LINEAFTER_EXPANDED = stc_c.wxSTC_FOLDFLAG_LINEAFTER_EXPANDED
+wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED = stc_c.wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED
+wxSTC_FOLDFLAG_LEVELNUMBERS = stc_c.wxSTC_FOLDFLAG_LEVELNUMBERS
+wxSTC_FOLDFLAG_BOX = stc_c.wxSTC_FOLDFLAG_BOX
wxSTC_TIME_FOREVER = stc_c.wxSTC_TIME_FOREVER
wxSTC_WRAP_NONE = stc_c.wxSTC_WRAP_NONE
wxSTC_WRAP_WORD = stc_c.wxSTC_WRAP_WORD
@@ -1389,6 +1491,12 @@ wxSTC_LEX_PHP = stc_c.wxSTC_LEX_PHP
wxSTC_LEX_BAAN = stc_c.wxSTC_LEX_BAAN
wxSTC_LEX_MATLAB = stc_c.wxSTC_LEX_MATLAB
wxSTC_LEX_SCRIPTOL = stc_c.wxSTC_LEX_SCRIPTOL
+wxSTC_LEX_ASM = stc_c.wxSTC_LEX_ASM
+wxSTC_LEX_CPPNOCASE = stc_c.wxSTC_LEX_CPPNOCASE
+wxSTC_LEX_FORTRAN = stc_c.wxSTC_LEX_FORTRAN
+wxSTC_LEX_F77 = stc_c.wxSTC_LEX_F77
+wxSTC_LEX_CSS = stc_c.wxSTC_LEX_CSS
+wxSTC_LEX_POV = stc_c.wxSTC_LEX_POV
wxSTC_LEX_AUTOMATIC = stc_c.wxSTC_LEX_AUTOMATIC
wxSTC_P_DEFAULT = stc_c.wxSTC_P_DEFAULT
wxSTC_P_COMMENTLINE = stc_c.wxSTC_P_COMMENTLINE
@@ -1614,6 +1722,9 @@ wxSTC_ERR_DIFF_CHANGED = stc_c.wxSTC_ERR_DIFF_CHANGED
wxSTC_ERR_DIFF_ADDITION = stc_c.wxSTC_ERR_DIFF_ADDITION
wxSTC_ERR_DIFF_DELETION = stc_c.wxSTC_ERR_DIFF_DELETION
wxSTC_ERR_DIFF_MESSAGE = stc_c.wxSTC_ERR_DIFF_MESSAGE
+wxSTC_ERR_PHP = stc_c.wxSTC_ERR_PHP
+wxSTC_ERR_ELF = stc_c.wxSTC_ERR_ELF
+wxSTC_ERR_IFC = stc_c.wxSTC_ERR_IFC
wxSTC_BAT_DEFAULT = stc_c.wxSTC_BAT_DEFAULT
wxSTC_BAT_COMMENT = stc_c.wxSTC_BAT_COMMENT
wxSTC_BAT_WORD = stc_c.wxSTC_BAT_WORD
@@ -1650,22 +1761,29 @@ wxSTC_AVE_DEFAULT = stc_c.wxSTC_AVE_DEFAULT
wxSTC_AVE_COMMENT = stc_c.wxSTC_AVE_COMMENT
wxSTC_AVE_NUMBER = stc_c.wxSTC_AVE_NUMBER
wxSTC_AVE_WORD = stc_c.wxSTC_AVE_WORD
-wxSTC_AVE_KEYWORD = stc_c.wxSTC_AVE_KEYWORD
-wxSTC_AVE_STATEMENT = stc_c.wxSTC_AVE_STATEMENT
wxSTC_AVE_STRING = stc_c.wxSTC_AVE_STRING
wxSTC_AVE_ENUM = stc_c.wxSTC_AVE_ENUM
wxSTC_AVE_STRINGEOL = stc_c.wxSTC_AVE_STRINGEOL
wxSTC_AVE_IDENTIFIER = stc_c.wxSTC_AVE_IDENTIFIER
wxSTC_AVE_OPERATOR = stc_c.wxSTC_AVE_OPERATOR
+wxSTC_AVE_WORD1 = stc_c.wxSTC_AVE_WORD1
+wxSTC_AVE_WORD2 = stc_c.wxSTC_AVE_WORD2
+wxSTC_AVE_WORD3 = stc_c.wxSTC_AVE_WORD3
+wxSTC_AVE_WORD4 = stc_c.wxSTC_AVE_WORD4
+wxSTC_AVE_WORD5 = stc_c.wxSTC_AVE_WORD5
+wxSTC_AVE_WORD6 = stc_c.wxSTC_AVE_WORD6
wxSTC_ADA_DEFAULT = stc_c.wxSTC_ADA_DEFAULT
-wxSTC_ADA_COMMENT = stc_c.wxSTC_ADA_COMMENT
-wxSTC_ADA_NUMBER = stc_c.wxSTC_ADA_NUMBER
wxSTC_ADA_WORD = stc_c.wxSTC_ADA_WORD
-wxSTC_ADA_STRING = stc_c.wxSTC_ADA_STRING
-wxSTC_ADA_CHARACTER = stc_c.wxSTC_ADA_CHARACTER
-wxSTC_ADA_OPERATOR = stc_c.wxSTC_ADA_OPERATOR
wxSTC_ADA_IDENTIFIER = stc_c.wxSTC_ADA_IDENTIFIER
+wxSTC_ADA_NUMBER = stc_c.wxSTC_ADA_NUMBER
+wxSTC_ADA_DELIMITER = stc_c.wxSTC_ADA_DELIMITER
+wxSTC_ADA_CHARACTER = stc_c.wxSTC_ADA_CHARACTER
+wxSTC_ADA_CHARACTEREOL = stc_c.wxSTC_ADA_CHARACTEREOL
+wxSTC_ADA_STRING = stc_c.wxSTC_ADA_STRING
wxSTC_ADA_STRINGEOL = stc_c.wxSTC_ADA_STRINGEOL
+wxSTC_ADA_LABEL = stc_c.wxSTC_ADA_LABEL
+wxSTC_ADA_COMMENTLINE = stc_c.wxSTC_ADA_COMMENTLINE
+wxSTC_ADA_ILLEGAL = stc_c.wxSTC_ADA_ILLEGAL
wxSTC_BAAN_DEFAULT = stc_c.wxSTC_BAAN_DEFAULT
wxSTC_BAAN_COMMENT = stc_c.wxSTC_BAAN_COMMENT
wxSTC_BAAN_COMMENTDOC = stc_c.wxSTC_BAAN_COMMENTDOC
@@ -1733,6 +1851,58 @@ 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
+wxSTC_ASM_DEFAULT = stc_c.wxSTC_ASM_DEFAULT
+wxSTC_ASM_COMMENT = stc_c.wxSTC_ASM_COMMENT
+wxSTC_ASM_NUMBER = stc_c.wxSTC_ASM_NUMBER
+wxSTC_ASM_STRING = stc_c.wxSTC_ASM_STRING
+wxSTC_ASM_OPERATOR = stc_c.wxSTC_ASM_OPERATOR
+wxSTC_ASM_IDENTIFIER = stc_c.wxSTC_ASM_IDENTIFIER
+wxSTC_ASM_CPUINSTRUCTION = stc_c.wxSTC_ASM_CPUINSTRUCTION
+wxSTC_ASM_MATHINSTRUCTION = stc_c.wxSTC_ASM_MATHINSTRUCTION
+wxSTC_ASM_REGISTER = stc_c.wxSTC_ASM_REGISTER
+wxSTC_ASM_DIRECTIVE = stc_c.wxSTC_ASM_DIRECTIVE
+wxSTC_ASM_DIRECTIVEOPERAND = stc_c.wxSTC_ASM_DIRECTIVEOPERAND
+wxSTC_F_DEFAULT = stc_c.wxSTC_F_DEFAULT
+wxSTC_F_COMMENT = stc_c.wxSTC_F_COMMENT
+wxSTC_F_NUMBER = stc_c.wxSTC_F_NUMBER
+wxSTC_F_STRING1 = stc_c.wxSTC_F_STRING1
+wxSTC_F_STRING2 = stc_c.wxSTC_F_STRING2
+wxSTC_F_STRINGEOL = stc_c.wxSTC_F_STRINGEOL
+wxSTC_F_OPERATOR = stc_c.wxSTC_F_OPERATOR
+wxSTC_F_IDENTIFIER = stc_c.wxSTC_F_IDENTIFIER
+wxSTC_F_WORD = stc_c.wxSTC_F_WORD
+wxSTC_F_WORD2 = stc_c.wxSTC_F_WORD2
+wxSTC_F_WORD3 = stc_c.wxSTC_F_WORD3
+wxSTC_F_PREPROCESSOR = stc_c.wxSTC_F_PREPROCESSOR
+wxSTC_F_OPERATOR2 = stc_c.wxSTC_F_OPERATOR2
+wxSTC_F_LABEL = stc_c.wxSTC_F_LABEL
+wxSTC_F_CONTINUATION = stc_c.wxSTC_F_CONTINUATION
+wxSTC_CSS_DEFAULT = stc_c.wxSTC_CSS_DEFAULT
+wxSTC_CSS_TAG = stc_c.wxSTC_CSS_TAG
+wxSTC_CSS_CLASS = stc_c.wxSTC_CSS_CLASS
+wxSTC_CSS_PSEUDOCLASS = stc_c.wxSTC_CSS_PSEUDOCLASS
+wxSTC_CSS_UNKNOWN_PSEUDOCLASS = stc_c.wxSTC_CSS_UNKNOWN_PSEUDOCLASS
+wxSTC_CSS_OPERATOR = stc_c.wxSTC_CSS_OPERATOR
+wxSTC_CSS_IDENTIFIER = stc_c.wxSTC_CSS_IDENTIFIER
+wxSTC_CSS_UNKNOWN_IDENTIFIER = stc_c.wxSTC_CSS_UNKNOWN_IDENTIFIER
+wxSTC_CSS_VALUE = stc_c.wxSTC_CSS_VALUE
+wxSTC_CSS_COMMENT = stc_c.wxSTC_CSS_COMMENT
+wxSTC_CSS_ID = stc_c.wxSTC_CSS_ID
+wxSTC_CSS_IMPORTANT = stc_c.wxSTC_CSS_IMPORTANT
+wxSTC_CSS_DIRECTIVE = stc_c.wxSTC_CSS_DIRECTIVE
+wxSTC_CSS_DOUBLESTRING = stc_c.wxSTC_CSS_DOUBLESTRING
+wxSTC_CSS_SINGLESTRING = stc_c.wxSTC_CSS_SINGLESTRING
+wxSTC_POV_DEFAULT = stc_c.wxSTC_POV_DEFAULT
+wxSTC_POV_COMMENT = stc_c.wxSTC_POV_COMMENT
+wxSTC_POV_COMMENTLINE = stc_c.wxSTC_POV_COMMENTLINE
+wxSTC_POV_COMMENTDOC = stc_c.wxSTC_POV_COMMENTDOC
+wxSTC_POV_NUMBER = stc_c.wxSTC_POV_NUMBER
+wxSTC_POV_WORD = stc_c.wxSTC_POV_WORD
+wxSTC_POV_STRING = stc_c.wxSTC_POV_STRING
+wxSTC_POV_OPERATOR = stc_c.wxSTC_POV_OPERATOR
+wxSTC_POV_IDENTIFIER = stc_c.wxSTC_POV_IDENTIFIER
+wxSTC_POV_BRACE = stc_c.wxSTC_POV_BRACE
+wxSTC_POV_WORD2 = stc_c.wxSTC_POV_WORD2
wxSTC_CMD_REDO = stc_c.wxSTC_CMD_REDO
wxSTC_CMD_SELECTALL = stc_c.wxSTC_CMD_SELECTALL
wxSTC_CMD_UNDO = stc_c.wxSTC_CMD_UNDO
@@ -1780,6 +1950,7 @@ wxSTC_CMD_DELWORDRIGHT = stc_c.wxSTC_CMD_DELWORDRIGHT
wxSTC_CMD_LINECUT = stc_c.wxSTC_CMD_LINECUT
wxSTC_CMD_LINEDELETE = stc_c.wxSTC_CMD_LINEDELETE
wxSTC_CMD_LINETRANSPOSE = stc_c.wxSTC_CMD_LINETRANSPOSE
+wxSTC_CMD_LINEDUPLICATE = stc_c.wxSTC_CMD_LINEDUPLICATE
wxSTC_CMD_LOWERCASE = stc_c.wxSTC_CMD_LOWERCASE
wxSTC_CMD_UPPERCASE = stc_c.wxSTC_CMD_UPPERCASE
wxSTC_CMD_LINESCROLLDOWN = stc_c.wxSTC_CMD_LINESCROLLDOWN
@@ -1789,12 +1960,22 @@ wxSTC_CMD_HOMEDISPLAY = stc_c.wxSTC_CMD_HOMEDISPLAY
wxSTC_CMD_HOMEDISPLAYEXTEND = stc_c.wxSTC_CMD_HOMEDISPLAYEXTEND
wxSTC_CMD_LINEENDDISPLAY = stc_c.wxSTC_CMD_LINEENDDISPLAY
wxSTC_CMD_LINEENDDISPLAYEXTEND = stc_c.wxSTC_CMD_LINEENDDISPLAYEXTEND
+wxSTC_CMD_HOMEWRAP = stc_c.wxSTC_CMD_HOMEWRAP
+wxSTC_CMD_HOMEWRAPEXTEND = stc_c.wxSTC_CMD_HOMEWRAPEXTEND
+wxSTC_CMD_LINEENDWRAP = stc_c.wxSTC_CMD_LINEENDWRAP
+wxSTC_CMD_LINEENDWRAPEXTEND = stc_c.wxSTC_CMD_LINEENDWRAPEXTEND
+wxSTC_CMD_VCHOMEWRAP = stc_c.wxSTC_CMD_VCHOMEWRAP
+wxSTC_CMD_VCHOMEWRAPEXTEND = stc_c.wxSTC_CMD_VCHOMEWRAPEXTEND
wxSTC_CMD_WORDPARTLEFT = stc_c.wxSTC_CMD_WORDPARTLEFT
wxSTC_CMD_WORDPARTLEFTEXTEND = stc_c.wxSTC_CMD_WORDPARTLEFTEXTEND
wxSTC_CMD_WORDPARTRIGHT = stc_c.wxSTC_CMD_WORDPARTRIGHT
wxSTC_CMD_WORDPARTRIGHTEXTEND = stc_c.wxSTC_CMD_WORDPARTRIGHTEXTEND
wxSTC_CMD_DELLINELEFT = stc_c.wxSTC_CMD_DELLINELEFT
wxSTC_CMD_DELLINERIGHT = stc_c.wxSTC_CMD_DELLINERIGHT
+wxSTC_CMD_PARADOWN = stc_c.wxSTC_CMD_PARADOWN
+wxSTC_CMD_PARADOWNEXTEND = stc_c.wxSTC_CMD_PARADOWNEXTEND
+wxSTC_CMD_PARAUP = stc_c.wxSTC_CMD_PARAUP
+wxSTC_CMD_PARAUPEXTEND = stc_c.wxSTC_CMD_PARAUPEXTEND
STC_USE_DND = stc_c.STC_USE_DND
wxEVT_STC_CHANGE = stc_c.wxEVT_STC_CHANGE
wxEVT_STC_STYLENEEDED = stc_c.wxEVT_STC_STYLENEEDED
@@ -1819,6 +2000,9 @@ wxEVT_STC_START_DRAG = stc_c.wxEVT_STC_START_DRAG
wxEVT_STC_DRAG_OVER = stc_c.wxEVT_STC_DRAG_OVER
wxEVT_STC_DO_DROP = stc_c.wxEVT_STC_DO_DROP
wxEVT_STC_ZOOM = stc_c.wxEVT_STC_ZOOM
+wxEVT_STC_HOTSPOT_CLICK = stc_c.wxEVT_STC_HOTSPOT_CLICK
+wxEVT_STC_HOTSPOT_DCLICK = stc_c.wxEVT_STC_HOTSPOT_DCLICK
+wxEVT_STC_CALLTIP_CLICK = stc_c.wxEVT_STC_CALLTIP_CLICK
#-------------- USER INCLUDE -----------------------
diff --git a/wxPython/contrib/stc/mac/stc_.cpp b/wxPython/contrib/stc/mac/stc_.cpp
index 0aa420109b..d6c081cfb5 100644
--- a/wxPython/contrib/stc/mac/stc_.cpp
+++ b/wxPython/contrib/stc/mac/stc_.cpp
@@ -1649,6 +1649,43 @@ static PyObject *_wrap_wxStyledTextCtrl_MarkerPrevious(PyObject *self, PyObject
return _resultobj;
}
+#define wxStyledTextCtrl_MarkerDefineBitmap(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerDefineBitmap(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_MarkerDefineBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ wxBitmap * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo2 = 0;
+ char *_kwnames[] = { "self","markerNumber","bmp", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_MarkerDefineBitmap",_kwnames,&_argo0,&_arg1,&_argo2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerDefineBitmap. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo2) {
+ if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxStyledTextCtrl_MarkerDefineBitmap. Expected _wxBitmap_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_MarkerDefineBitmap(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_SetMarginType(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMarginType(_swigarg0,_swigarg1))
static PyObject *_wrap_wxStyledTextCtrl_SetMarginType(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -2275,6 +2312,38 @@ static PyObject *_wrap_wxStyledTextCtrl_StyleSetCharacterSet(PyObject *self, PyO
return _resultobj;
}
+#define wxStyledTextCtrl_StyleSetHotSpot(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetHotSpot(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_StyleSetHotSpot(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ bool _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool2;
+ char *_kwnames[] = { "self","style","hotspot", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetHotSpot",_kwnames,&_argo0,&_arg1,&tempbool2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetHotSpot. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg2 = (bool ) tempbool2;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_StyleSetHotSpot(_arg0,_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_SetSelForeground(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelForeground(_swigarg0,_swigarg1))
static PyObject *_wrap_wxStyledTextCtrl_SetSelForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -3859,6 +3928,128 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompGetDropRestOfWord(PyObject *self
return _resultobj;
}
+#define wxStyledTextCtrl_RegisterImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->RegisterImage(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_RegisterImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ wxBitmap * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo2 = 0;
+ char *_kwnames[] = { "self","type","bmp", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_RegisterImage",_kwnames,&_argo0,&_arg1,&_argo2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_RegisterImage. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo2) {
+ if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxStyledTextCtrl_RegisterImage. Expected _wxBitmap_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_RegisterImage(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_ClearRegisteredImages(_swigobj) (_swigobj->ClearRegisteredImages())
+static PyObject *_wrap_wxStyledTextCtrl_ClearRegisteredImages(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_ClearRegisteredImages",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ClearRegisteredImages. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_ClearRegisteredImages(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_AutoCompGetTypeSeparator(_swigobj) (_swigobj->AutoCompGetTypeSeparator())
+static PyObject *_wrap_wxStyledTextCtrl_AutoCompGetTypeSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_AutoCompGetTypeSeparator",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompGetTypeSeparator. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxStyledTextCtrl_AutoCompGetTypeSeparator(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_AutoCompSetTypeSeparator(_swigobj,_swigarg0) (_swigobj->AutoCompSetTypeSeparator(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_AutoCompSetTypeSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","separatorCharacter", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_AutoCompSetTypeSeparator",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompSetTypeSeparator. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_AutoCompSetTypeSeparator(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0))
static PyObject *_wrap_wxStyledTextCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -6229,6 +6420,78 @@ static PyObject *_wrap_wxStyledTextCtrl_CallTipSetBackground(PyObject *self, PyO
return _resultobj;
}
+#define wxStyledTextCtrl_CallTipSetForeground(_swigobj,_swigarg0) (_swigobj->CallTipSetForeground(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_CallTipSetForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ wxColour * _arg1;
+ PyObject * _argo0 = 0;
+ wxColour temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","fore", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_CallTipSetForeground",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CallTipSetForeground. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxColour_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_CallTipSetForeground(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_CallTipSetForegroundHighlight(_swigobj,_swigarg0) (_swigobj->CallTipSetForegroundHighlight(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_CallTipSetForegroundHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ wxColour * _arg1;
+ PyObject * _argo0 = 0;
+ wxColour temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","fore", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_CallTipSetForegroundHighlight",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CallTipSetForegroundHighlight. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxColour_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_CallTipSetForegroundHighlight(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_VisibleFromDocLine(_swigobj,_swigarg0) (_swigobj->VisibleFromDocLine(_swigarg0))
static PyObject *_wrap_wxStyledTextCtrl_VisibleFromDocLine(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -7209,26 +7472,29 @@ static PyObject *_wrap_wxStyledTextCtrl_TextHeight(PyObject *self, PyObject *arg
return _resultobj;
}
-#define wxStyledTextCtrl_HomeDisplay(_swigobj) (_swigobj->HomeDisplay())
-static PyObject *_wrap_wxStyledTextCtrl_HomeDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStyledTextCtrl_SetUseVerticalScrollBar(_swigobj,_swigarg0) (_swigobj->SetUseVerticalScrollBar(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SetUseVerticalScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxStyledTextCtrl * _arg0;
+ bool _arg1;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ int tempbool1;
+ char *_kwnames[] = { "self","show", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_HomeDisplay",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetUseVerticalScrollBar",_kwnames,&_argo0,&tempbool1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HomeDisplay. Expected _wxStyledTextCtrl_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetUseVerticalScrollBar. Expected _wxStyledTextCtrl_p.");
return NULL;
}
}
+ _arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxStyledTextCtrl_HomeDisplay(_arg0);
+ wxStyledTextCtrl_SetUseVerticalScrollBar(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
@@ -7237,76 +7503,422 @@ static PyObject *_wrap_wxStyledTextCtrl_HomeDisplay(PyObject *self, PyObject *ar
return _resultobj;
}
-#define wxStyledTextCtrl_HomeDisplayExtend(_swigobj) (_swigobj->HomeDisplayExtend())
-static PyObject *_wrap_wxStyledTextCtrl_HomeDisplayExtend(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStyledTextCtrl_GetUseVerticalScrollBar(_swigobj) (_swigobj->GetUseVerticalScrollBar())
+static PyObject *_wrap_wxStyledTextCtrl_GetUseVerticalScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
+ bool _result;
wxStyledTextCtrl * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_HomeDisplayExtend",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetUseVerticalScrollBar",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HomeDisplayExtend. Expected _wxStyledTextCtrl_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetUseVerticalScrollBar. Expected _wxStyledTextCtrl_p.");
return NULL;
}
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxStyledTextCtrl_HomeDisplayExtend(_arg0);
+ _result = (bool )wxStyledTextCtrl_GetUseVerticalScrollBar(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
+} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
-#define wxStyledTextCtrl_LineEndDisplay(_swigobj) (_swigobj->LineEndDisplay())
-static PyObject *_wrap_wxStyledTextCtrl_LineEndDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStyledTextCtrl_AppendText(_swigobj,_swigarg0,_swigarg1) (_swigobj->AppendText(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxStyledTextCtrl * _arg0;
+ int _arg1;
+ wxString * _arg2;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","length","text", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineEndDisplay",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_AppendText",_kwnames,&_argo0,&_arg1,&_obj2))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineEndDisplay. Expected _wxStyledTextCtrl_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AppendText. Expected _wxStyledTextCtrl_p.");
return NULL;
}
}
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxStyledTextCtrl_LineEndDisplay(_arg0);
+ wxStyledTextCtrl_AppendText(_arg0,_arg1,*_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
+{
+ if (_obj2)
+ delete _arg2;
+}
return _resultobj;
}
-#define wxStyledTextCtrl_LineEndDisplayExtend(_swigobj) (_swigobj->LineEndDisplayExtend())
-static PyObject *_wrap_wxStyledTextCtrl_LineEndDisplayExtend(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStyledTextCtrl_GetTwoPhaseDraw(_swigobj) (_swigobj->GetTwoPhaseDraw())
+static PyObject *_wrap_wxStyledTextCtrl_GetTwoPhaseDraw(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
+ bool _result;
wxStyledTextCtrl * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineEndDisplayExtend",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetTwoPhaseDraw",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineEndDisplayExtend. Expected _wxStyledTextCtrl_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetTwoPhaseDraw. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxStyledTextCtrl_GetTwoPhaseDraw(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetTwoPhaseDraw(_swigobj,_swigarg0) (_swigobj->SetTwoPhaseDraw(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SetTwoPhaseDraw(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ char *_kwnames[] = { "self","twoPhase", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetTwoPhaseDraw",_kwnames,&_argo0,&tempbool1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetTwoPhaseDraw. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetTwoPhaseDraw(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_TargetFromSelection(_swigobj) (_swigobj->TargetFromSelection())
+static PyObject *_wrap_wxStyledTextCtrl_TargetFromSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_TargetFromSelection",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_TargetFromSelection. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_TargetFromSelection(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LinesJoin(_swigobj) (_swigobj->LinesJoin())
+static PyObject *_wrap_wxStyledTextCtrl_LinesJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LinesJoin",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LinesJoin. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_LinesJoin(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LinesSplit(_swigobj,_swigarg0) (_swigobj->LinesSplit(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_LinesSplit(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","pixelWidth", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_LinesSplit",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LinesSplit. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_LinesSplit(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetFoldMarginColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetFoldMarginColour(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_SetFoldMarginColour(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","useSetting","back", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetFoldMarginColour",_kwnames,&_argo0,&tempbool1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetFoldMarginColour. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetFoldMarginColour(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetFoldMarginHiColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetFoldMarginHiColour(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_SetFoldMarginHiColour(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","useSetting","fore", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetFoldMarginHiColour",_kwnames,&_argo0,&tempbool1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetFoldMarginHiColour. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetFoldMarginHiColour(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LineDuplicate(_swigobj) (_swigobj->LineDuplicate())
+static PyObject *_wrap_wxStyledTextCtrl_LineDuplicate(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineDuplicate",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineDuplicate. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_LineDuplicate(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_HomeDisplay(_swigobj) (_swigobj->HomeDisplay())
+static PyObject *_wrap_wxStyledTextCtrl_HomeDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_HomeDisplay",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HomeDisplay. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_HomeDisplay(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_HomeDisplayExtend(_swigobj) (_swigobj->HomeDisplayExtend())
+static PyObject *_wrap_wxStyledTextCtrl_HomeDisplayExtend(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_HomeDisplayExtend",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HomeDisplayExtend. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_HomeDisplayExtend(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LineEndDisplay(_swigobj) (_swigobj->LineEndDisplay())
+static PyObject *_wrap_wxStyledTextCtrl_LineEndDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineEndDisplay",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineEndDisplay. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_LineEndDisplay(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LineEndDisplayExtend(_swigobj) (_swigobj->LineEndDisplayExtend())
+static PyObject *_wrap_wxStyledTextCtrl_LineEndDisplayExtend(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineEndDisplayExtend",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineEndDisplayExtend. Expected _wxStyledTextCtrl_p.");
return NULL;
}
}
@@ -8739,6 +9351,34 @@ static PyObject *_wrap_wxStyledTextCtrl_GetXOffset(PyObject *self, PyObject *arg
return _resultobj;
}
+#define wxStyledTextCtrl_ChooseCaretX(_swigobj) (_swigobj->ChooseCaretX())
+static PyObject *_wrap_wxStyledTextCtrl_ChooseCaretX(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_ChooseCaretX",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ChooseCaretX. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_ChooseCaretX(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_SetXCaretPolicy(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetXCaretPolicy(_swigarg0,_swigarg1))
static PyObject *_wrap_wxStyledTextCtrl_SetXCaretPolicy(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -8799,6 +9439,172 @@ static PyObject *_wrap_wxStyledTextCtrl_SetYCaretPolicy(PyObject *self, PyObject
return _resultobj;
}
+#define wxStyledTextCtrl_SetPrintWrapMode(_swigobj,_swigarg0) (_swigobj->SetPrintWrapMode(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SetPrintWrapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","mode", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetPrintWrapMode",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetPrintWrapMode. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetPrintWrapMode(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_GetPrintWrapMode(_swigobj) (_swigobj->GetPrintWrapMode())
+static PyObject *_wrap_wxStyledTextCtrl_GetPrintWrapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetPrintWrapMode",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetPrintWrapMode. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxStyledTextCtrl_GetPrintWrapMode(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetHotspotActiveForeground(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHotspotActiveForeground(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_SetHotspotActiveForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","useSetting","fore", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetHotspotActiveForeground",_kwnames,&_argo0,&tempbool1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetHotspotActiveForeground. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetHotspotActiveForeground(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetHotspotActiveBackground(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHotspotActiveBackground(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_SetHotspotActiveBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","useSetting","back", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetHotspotActiveBackground",_kwnames,&_argo0,&tempbool1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetHotspotActiveBackground. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetHotspotActiveBackground(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetHotspotActiveUnderline(_swigobj,_swigarg0) (_swigobj->SetHotspotActiveUnderline(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SetHotspotActiveUnderline(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ char *_kwnames[] = { "self","underline", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetHotspotActiveUnderline",_kwnames,&_argo0,&tempbool1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetHotspotActiveUnderline. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetHotspotActiveUnderline(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_StartRecord(_swigobj) (_swigobj->StartRecord())
static PyObject *_wrap_wxStyledTextCtrl_StartRecord(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -9586,6 +10392,84 @@ static PyObject *_wrap_wxStyledTextCtrl_SetLastKeydownProcessed(PyObject *self,
return _resultobj;
}
+#define wxStyledTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxStyledTextCtrl * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","filename", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SaveFile. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxStyledTextCtrl_SaveFile(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxStyledTextCtrl * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","filename", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LoadFile. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxStyledTextCtrl_LoadFile(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
static void *SwigwxStyledTextEventTowxCommandEvent(void *ptr) {
wxStyledTextEvent *src;
wxCommandEvent *dest;
@@ -11012,6 +11896,8 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextEvent_SetPosition", (PyCFunction) _wrap_wxStyledTextEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
{ "delete_wxStyledTextEvent", (PyCFunction) _wrap_delete_wxStyledTextEvent, METH_VARARGS | METH_KEYWORDS },
{ "new_wxStyledTextEvent", (PyCFunction) _wrap_new_wxStyledTextEvent, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_LoadFile", (PyCFunction) _wrap_wxStyledTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SaveFile", (PyCFunction) _wrap_wxStyledTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetLastKeydownProcessed", (PyCFunction) _wrap_wxStyledTextCtrl_SetLastKeydownProcessed, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetLastKeydownProcessed", (PyCFunction) _wrap_wxStyledTextCtrl_GetLastKeydownProcessed, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetHScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_SetHScrollBar, METH_VARARGS | METH_KEYWORDS },
@@ -11035,8 +11921,14 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetLexer", (PyCFunction) _wrap_wxStyledTextCtrl_SetLexer, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StopRecord", (PyCFunction) _wrap_wxStyledTextCtrl_StopRecord, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StartRecord", (PyCFunction) _wrap_wxStyledTextCtrl_StartRecord, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetHotspotActiveUnderline", (PyCFunction) _wrap_wxStyledTextCtrl_SetHotspotActiveUnderline, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetHotspotActiveBackground", (PyCFunction) _wrap_wxStyledTextCtrl_SetHotspotActiveBackground, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetHotspotActiveForeground", (PyCFunction) _wrap_wxStyledTextCtrl_SetHotspotActiveForeground, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_GetPrintWrapMode", (PyCFunction) _wrap_wxStyledTextCtrl_GetPrintWrapMode, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetPrintWrapMode", (PyCFunction) _wrap_wxStyledTextCtrl_SetPrintWrapMode, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetYCaretPolicy", (PyCFunction) _wrap_wxStyledTextCtrl_SetYCaretPolicy, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetXCaretPolicy", (PyCFunction) _wrap_wxStyledTextCtrl_SetXCaretPolicy, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_ChooseCaretX", (PyCFunction) _wrap_wxStyledTextCtrl_ChooseCaretX, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetXOffset", (PyCFunction) _wrap_wxStyledTextCtrl_GetXOffset, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetXOffset", (PyCFunction) _wrap_wxStyledTextCtrl_SetXOffset, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_DelLineRight", (PyCFunction) _wrap_wxStyledTextCtrl_DelLineRight, METH_VARARGS | METH_KEYWORDS },
@@ -11088,6 +11980,17 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_LineEndDisplay", (PyCFunction) _wrap_wxStyledTextCtrl_LineEndDisplay, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_HomeDisplayExtend", (PyCFunction) _wrap_wxStyledTextCtrl_HomeDisplayExtend, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_HomeDisplay", (PyCFunction) _wrap_wxStyledTextCtrl_HomeDisplay, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_LineDuplicate", (PyCFunction) _wrap_wxStyledTextCtrl_LineDuplicate, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetFoldMarginHiColour", (PyCFunction) _wrap_wxStyledTextCtrl_SetFoldMarginHiColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetFoldMarginColour", (PyCFunction) _wrap_wxStyledTextCtrl_SetFoldMarginColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_LinesSplit", (PyCFunction) _wrap_wxStyledTextCtrl_LinesSplit, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_LinesJoin", (PyCFunction) _wrap_wxStyledTextCtrl_LinesJoin, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_TargetFromSelection", (PyCFunction) _wrap_wxStyledTextCtrl_TargetFromSelection, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetTwoPhaseDraw", (PyCFunction) _wrap_wxStyledTextCtrl_SetTwoPhaseDraw, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_GetTwoPhaseDraw", (PyCFunction) _wrap_wxStyledTextCtrl_GetTwoPhaseDraw, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_AppendText", (PyCFunction) _wrap_wxStyledTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_GetUseVerticalScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_GetUseVerticalScrollBar, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetUseVerticalScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_SetUseVerticalScrollBar, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_TextHeight", (PyCFunction) _wrap_wxStyledTextCtrl_TextHeight, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetEndAtLastLine", (PyCFunction) _wrap_wxStyledTextCtrl_GetEndAtLastLine, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetEndAtLastLine", (PyCFunction) _wrap_wxStyledTextCtrl_SetEndAtLastLine, METH_VARARGS | METH_KEYWORDS },
@@ -11121,6 +12024,8 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetFoldLevel", (PyCFunction) _wrap_wxStyledTextCtrl_SetFoldLevel, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_DocLineFromVisible", (PyCFunction) _wrap_wxStyledTextCtrl_DocLineFromVisible, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_VisibleFromDocLine", (PyCFunction) _wrap_wxStyledTextCtrl_VisibleFromDocLine, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_CallTipSetForegroundHighlight", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetForegroundHighlight, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_CallTipSetForeground", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetForeground, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_CallTipSetBackground", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetBackground, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_CallTipSetHighlight", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetHighlight, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_CallTipPosAtStart", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipPosAtStart, METH_VARARGS | METH_KEYWORDS },
@@ -11198,6 +12103,10 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetUseTabs", (PyCFunction) _wrap_wxStyledTextCtrl_SetUseTabs, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetIndent", (PyCFunction) _wrap_wxStyledTextCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetIndent", (PyCFunction) _wrap_wxStyledTextCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_AutoCompSetTypeSeparator", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompSetTypeSeparator, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_AutoCompGetTypeSeparator", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetTypeSeparator, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_ClearRegisteredImages", (PyCFunction) _wrap_wxStyledTextCtrl_ClearRegisteredImages, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_RegisterImage", (PyCFunction) _wrap_wxStyledTextCtrl_RegisterImage, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_AutoCompGetDropRestOfWord", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetDropRestOfWord, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_AutoCompSetDropRestOfWord", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompSetDropRestOfWord, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_AutoCompGetAutoHide", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetAutoHide, METH_VARARGS | METH_KEYWORDS },
@@ -11248,6 +12157,7 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetCaretForeground", (PyCFunction) _wrap_wxStyledTextCtrl_SetCaretForeground, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetSelBackground", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelBackground, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetSelForeground", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelForeground, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_StyleSetHotSpot", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetHotSpot, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StyleSetCharacterSet", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetCharacterSet, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StyleSetCase", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetCase, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StyleSetUnderline", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetUnderline, METH_VARARGS | METH_KEYWORDS },
@@ -11268,6 +12178,7 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetMarginWidth", (PyCFunction) _wrap_wxStyledTextCtrl_SetMarginWidth, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetMarginType", (PyCFunction) _wrap_wxStyledTextCtrl_GetMarginType, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetMarginType", (PyCFunction) _wrap_wxStyledTextCtrl_SetMarginType, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_MarkerDefineBitmap", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerDefineBitmap, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_MarkerPrevious", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerPrevious, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_MarkerNext", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerNext, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_MarkerGet", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerGet, METH_VARARGS | METH_KEYWORDS },
@@ -11455,6 +12366,7 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_EOL_CR", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_EOL_LF", PyInt_FromLong((long) 2));
PyDict_SetItemString(d,"wxSTC_CP_UTF8", PyInt_FromLong((long) 65001));
+ PyDict_SetItemString(d,"wxSTC_CP_DBCS", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_MARKER_MAX", PyInt_FromLong((long) 31));
PyDict_SetItemString(d,"wxSTC_MARK_CIRCLE", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_MARK_ROUNDRECT", PyInt_FromLong((long) 1));
@@ -11481,6 +12393,7 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_MARK_BACKGROUND", PyInt_FromLong((long) 22));
PyDict_SetItemString(d,"wxSTC_MARK_DOTDOTDOT", PyInt_FromLong((long) 23));
PyDict_SetItemString(d,"wxSTC_MARK_ARROWS", PyInt_FromLong((long) 24));
+ PyDict_SetItemString(d,"wxSTC_MARK_PIXMAP", PyInt_FromLong((long) 25));
PyDict_SetItemString(d,"wxSTC_MARK_CHARACTER", PyInt_FromLong((long) 10000));
PyDict_SetItemString(d,"wxSTC_MARKNUM_FOLDEREND", PyInt_FromLong((long) 25));
PyDict_SetItemString(d,"wxSTC_MARKNUM_FOLDEROPENMID", PyInt_FromLong((long) 26));
@@ -11541,10 +12454,21 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_FIND_MATCHCASE", PyInt_FromLong((long) 4));
PyDict_SetItemString(d,"wxSTC_FIND_WORDSTART", PyInt_FromLong((long) 0x00100000));
PyDict_SetItemString(d,"wxSTC_FIND_REGEXP", PyInt_FromLong((long) 0x00200000));
+ PyDict_SetItemString(d,"wxSTC_FIND_POSIX", PyInt_FromLong((long) 0x00400000));
PyDict_SetItemString(d,"wxSTC_FOLDLEVELBASE", PyInt_FromLong((long) 0x400));
PyDict_SetItemString(d,"wxSTC_FOLDLEVELWHITEFLAG", PyInt_FromLong((long) 0x1000));
PyDict_SetItemString(d,"wxSTC_FOLDLEVELHEADERFLAG", PyInt_FromLong((long) 0x2000));
+ PyDict_SetItemString(d,"wxSTC_FOLDLEVELBOXHEADERFLAG", PyInt_FromLong((long) 0x4000));
+ PyDict_SetItemString(d,"wxSTC_FOLDLEVELBOXFOOTERFLAG", PyInt_FromLong((long) 0x8000));
+ PyDict_SetItemString(d,"wxSTC_FOLDLEVELCONTRACTED", PyInt_FromLong((long) 0x10000));
+ PyDict_SetItemString(d,"wxSTC_FOLDLEVELUNINDENT", PyInt_FromLong((long) 0x20000));
PyDict_SetItemString(d,"wxSTC_FOLDLEVELNUMBERMASK", PyInt_FromLong((long) 0x0FFF));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED", PyInt_FromLong((long) 0x0002));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED", PyInt_FromLong((long) 0x0004));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LINEAFTER_EXPANDED", PyInt_FromLong((long) 0x0008));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED", PyInt_FromLong((long) 0x0010));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LEVELNUMBERS", PyInt_FromLong((long) 0x0040));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_BOX", PyInt_FromLong((long) 0x0001));
PyDict_SetItemString(d,"wxSTC_TIME_FOREVER", PyInt_FromLong((long) 10000000));
PyDict_SetItemString(d,"wxSTC_WRAP_NONE", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_WRAP_WORD", PyInt_FromLong((long) 1));
@@ -11556,7 +12480,7 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_EDGE_LINE", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_EDGE_BACKGROUND", PyInt_FromLong((long) 2));
PyDict_SetItemString(d,"wxSTC_CURSORNORMAL", PyInt_FromLong((long) -1));
- PyDict_SetItemString(d,"wxSTC_CURSORWAIT", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_CURSORWAIT", PyInt_FromLong((long) 4));
PyDict_SetItemString(d,"wxSTC_VISIBLE_SLOP", PyInt_FromLong((long) 0x01));
PyDict_SetItemString(d,"wxSTC_VISIBLE_STRICT", PyInt_FromLong((long) 0x04));
PyDict_SetItemString(d,"wxSTC_CARET_SLOP", PyInt_FromLong((long) 0x01));
@@ -11629,6 +12553,12 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_LEX_BAAN", PyInt_FromLong((long) 31));
PyDict_SetItemString(d,"wxSTC_LEX_MATLAB", PyInt_FromLong((long) 32));
PyDict_SetItemString(d,"wxSTC_LEX_SCRIPTOL", PyInt_FromLong((long) 33));
+ PyDict_SetItemString(d,"wxSTC_LEX_ASM", PyInt_FromLong((long) 34));
+ PyDict_SetItemString(d,"wxSTC_LEX_CPPNOCASE", PyInt_FromLong((long) 35));
+ PyDict_SetItemString(d,"wxSTC_LEX_FORTRAN", PyInt_FromLong((long) 36));
+ PyDict_SetItemString(d,"wxSTC_LEX_F77", PyInt_FromLong((long) 37));
+ PyDict_SetItemString(d,"wxSTC_LEX_CSS", PyInt_FromLong((long) 38));
+ PyDict_SetItemString(d,"wxSTC_LEX_POV", PyInt_FromLong((long) 39));
PyDict_SetItemString(d,"wxSTC_LEX_AUTOMATIC", PyInt_FromLong((long) 1000));
PyDict_SetItemString(d,"wxSTC_P_DEFAULT", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_P_COMMENTLINE", PyInt_FromLong((long) 1));
@@ -11854,6 +12784,9 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_ERR_DIFF_ADDITION", PyInt_FromLong((long) 11));
PyDict_SetItemString(d,"wxSTC_ERR_DIFF_DELETION", PyInt_FromLong((long) 12));
PyDict_SetItemString(d,"wxSTC_ERR_DIFF_MESSAGE", PyInt_FromLong((long) 13));
+ PyDict_SetItemString(d,"wxSTC_ERR_PHP", PyInt_FromLong((long) 14));
+ PyDict_SetItemString(d,"wxSTC_ERR_ELF", PyInt_FromLong((long) 15));
+ PyDict_SetItemString(d,"wxSTC_ERR_IFC", PyInt_FromLong((long) 16));
PyDict_SetItemString(d,"wxSTC_BAT_DEFAULT", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_BAT_COMMENT", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_BAT_WORD", PyInt_FromLong((long) 2));
@@ -11890,22 +12823,29 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_AVE_COMMENT", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_AVE_NUMBER", PyInt_FromLong((long) 2));
PyDict_SetItemString(d,"wxSTC_AVE_WORD", PyInt_FromLong((long) 3));
- PyDict_SetItemString(d,"wxSTC_AVE_KEYWORD", PyInt_FromLong((long) 4));
- PyDict_SetItemString(d,"wxSTC_AVE_STATEMENT", PyInt_FromLong((long) 5));
PyDict_SetItemString(d,"wxSTC_AVE_STRING", PyInt_FromLong((long) 6));
PyDict_SetItemString(d,"wxSTC_AVE_ENUM", PyInt_FromLong((long) 7));
PyDict_SetItemString(d,"wxSTC_AVE_STRINGEOL", PyInt_FromLong((long) 8));
PyDict_SetItemString(d,"wxSTC_AVE_IDENTIFIER", PyInt_FromLong((long) 9));
PyDict_SetItemString(d,"wxSTC_AVE_OPERATOR", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD1", PyInt_FromLong((long) 11));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD2", PyInt_FromLong((long) 12));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD3", PyInt_FromLong((long) 13));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD4", PyInt_FromLong((long) 14));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD5", PyInt_FromLong((long) 15));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD6", PyInt_FromLong((long) 16));
PyDict_SetItemString(d,"wxSTC_ADA_DEFAULT", PyInt_FromLong((long) 0));
- PyDict_SetItemString(d,"wxSTC_ADA_COMMENT", PyInt_FromLong((long) 1));
- PyDict_SetItemString(d,"wxSTC_ADA_NUMBER", PyInt_FromLong((long) 2));
- PyDict_SetItemString(d,"wxSTC_ADA_WORD", PyInt_FromLong((long) 3));
- PyDict_SetItemString(d,"wxSTC_ADA_STRING", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_ADA_WORD", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_ADA_IDENTIFIER", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_ADA_NUMBER", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_ADA_DELIMITER", PyInt_FromLong((long) 4));
PyDict_SetItemString(d,"wxSTC_ADA_CHARACTER", PyInt_FromLong((long) 5));
- PyDict_SetItemString(d,"wxSTC_ADA_OPERATOR", PyInt_FromLong((long) 6));
- PyDict_SetItemString(d,"wxSTC_ADA_IDENTIFIER", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_ADA_CHARACTEREOL", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_ADA_STRING", PyInt_FromLong((long) 7));
PyDict_SetItemString(d,"wxSTC_ADA_STRINGEOL", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_ADA_LABEL", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_ADA_COMMENTLINE", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_ADA_ILLEGAL", PyInt_FromLong((long) 11));
PyDict_SetItemString(d,"wxSTC_BAAN_DEFAULT", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_BAAN_COMMENT", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_BAAN_COMMENTDOC", PyInt_FromLong((long) 2));
@@ -11973,6 +12913,58 @@ 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,"wxSTC_ASM_DEFAULT", PyInt_FromLong((long) 0));
+ PyDict_SetItemString(d,"wxSTC_ASM_COMMENT", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_ASM_NUMBER", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_ASM_STRING", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_ASM_OPERATOR", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_ASM_IDENTIFIER", PyInt_FromLong((long) 5));
+ PyDict_SetItemString(d,"wxSTC_ASM_CPUINSTRUCTION", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_ASM_MATHINSTRUCTION", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_ASM_REGISTER", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_ASM_DIRECTIVE", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_ASM_DIRECTIVEOPERAND", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_F_DEFAULT", PyInt_FromLong((long) 0));
+ PyDict_SetItemString(d,"wxSTC_F_COMMENT", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_F_NUMBER", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_F_STRING1", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_F_STRING2", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_F_STRINGEOL", PyInt_FromLong((long) 5));
+ PyDict_SetItemString(d,"wxSTC_F_OPERATOR", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_F_IDENTIFIER", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_F_WORD", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_F_WORD2", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_F_WORD3", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_F_PREPROCESSOR", PyInt_FromLong((long) 11));
+ PyDict_SetItemString(d,"wxSTC_F_OPERATOR2", PyInt_FromLong((long) 12));
+ PyDict_SetItemString(d,"wxSTC_F_LABEL", PyInt_FromLong((long) 13));
+ PyDict_SetItemString(d,"wxSTC_F_CONTINUATION", PyInt_FromLong((long) 14));
+ PyDict_SetItemString(d,"wxSTC_CSS_DEFAULT", PyInt_FromLong((long) 0));
+ PyDict_SetItemString(d,"wxSTC_CSS_TAG", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_CSS_CLASS", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_CSS_PSEUDOCLASS", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_CSS_UNKNOWN_PSEUDOCLASS", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_CSS_OPERATOR", PyInt_FromLong((long) 5));
+ PyDict_SetItemString(d,"wxSTC_CSS_IDENTIFIER", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_CSS_UNKNOWN_IDENTIFIER", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_CSS_VALUE", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_CSS_COMMENT", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_CSS_ID", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_CSS_IMPORTANT", PyInt_FromLong((long) 11));
+ PyDict_SetItemString(d,"wxSTC_CSS_DIRECTIVE", PyInt_FromLong((long) 12));
+ PyDict_SetItemString(d,"wxSTC_CSS_DOUBLESTRING", PyInt_FromLong((long) 13));
+ PyDict_SetItemString(d,"wxSTC_CSS_SINGLESTRING", PyInt_FromLong((long) 14));
+ PyDict_SetItemString(d,"wxSTC_POV_DEFAULT", PyInt_FromLong((long) 0));
+ PyDict_SetItemString(d,"wxSTC_POV_COMMENT", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_POV_COMMENTLINE", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_POV_COMMENTDOC", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_POV_NUMBER", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_POV_WORD", PyInt_FromLong((long) 5));
+ PyDict_SetItemString(d,"wxSTC_POV_STRING", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_POV_OPERATOR", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_POV_IDENTIFIER", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_POV_BRACE", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_POV_WORD2", PyInt_FromLong((long) 10));
PyDict_SetItemString(d,"wxSTC_CMD_REDO", PyInt_FromLong((long) 2011));
PyDict_SetItemString(d,"wxSTC_CMD_SELECTALL", PyInt_FromLong((long) 2013));
PyDict_SetItemString(d,"wxSTC_CMD_UNDO", PyInt_FromLong((long) 2176));
@@ -12020,6 +13012,7 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_CMD_LINECUT", PyInt_FromLong((long) 2337));
PyDict_SetItemString(d,"wxSTC_CMD_LINEDELETE", PyInt_FromLong((long) 2338));
PyDict_SetItemString(d,"wxSTC_CMD_LINETRANSPOSE", PyInt_FromLong((long) 2339));
+ PyDict_SetItemString(d,"wxSTC_CMD_LINEDUPLICATE", PyInt_FromLong((long) 2404));
PyDict_SetItemString(d,"wxSTC_CMD_LOWERCASE", PyInt_FromLong((long) 2340));
PyDict_SetItemString(d,"wxSTC_CMD_UPPERCASE", PyInt_FromLong((long) 2341));
PyDict_SetItemString(d,"wxSTC_CMD_LINESCROLLDOWN", PyInt_FromLong((long) 2342));
@@ -12029,12 +13022,22 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_CMD_HOMEDISPLAYEXTEND", PyInt_FromLong((long) 2346));
PyDict_SetItemString(d,"wxSTC_CMD_LINEENDDISPLAY", PyInt_FromLong((long) 2347));
PyDict_SetItemString(d,"wxSTC_CMD_LINEENDDISPLAYEXTEND", PyInt_FromLong((long) 2348));
+ PyDict_SetItemString(d,"wxSTC_CMD_HOMEWRAP", PyInt_FromLong((long) 2349));
+ PyDict_SetItemString(d,"wxSTC_CMD_HOMEWRAPEXTEND", PyInt_FromLong((long) 2450));
+ PyDict_SetItemString(d,"wxSTC_CMD_LINEENDWRAP", PyInt_FromLong((long) 2451));
+ PyDict_SetItemString(d,"wxSTC_CMD_LINEENDWRAPEXTEND", PyInt_FromLong((long) 2452));
+ PyDict_SetItemString(d,"wxSTC_CMD_VCHOMEWRAP", PyInt_FromLong((long) 2453));
+ PyDict_SetItemString(d,"wxSTC_CMD_VCHOMEWRAPEXTEND", PyInt_FromLong((long) 2454));
PyDict_SetItemString(d,"wxSTC_CMD_WORDPARTLEFT", PyInt_FromLong((long) 2390));
PyDict_SetItemString(d,"wxSTC_CMD_WORDPARTLEFTEXTEND", PyInt_FromLong((long) 2391));
PyDict_SetItemString(d,"wxSTC_CMD_WORDPARTRIGHT", PyInt_FromLong((long) 2392));
PyDict_SetItemString(d,"wxSTC_CMD_WORDPARTRIGHTEXTEND", PyInt_FromLong((long) 2393));
PyDict_SetItemString(d,"wxSTC_CMD_DELLINELEFT", PyInt_FromLong((long) 2395));
PyDict_SetItemString(d,"wxSTC_CMD_DELLINERIGHT", PyInt_FromLong((long) 2396));
+ PyDict_SetItemString(d,"wxSTC_CMD_PARADOWN", PyInt_FromLong((long) 2413));
+ PyDict_SetItemString(d,"wxSTC_CMD_PARADOWNEXTEND", PyInt_FromLong((long) 2414));
+ PyDict_SetItemString(d,"wxSTC_CMD_PARAUP", PyInt_FromLong((long) 2415));
+ PyDict_SetItemString(d,"wxSTC_CMD_PARAUPEXTEND", PyInt_FromLong((long) 2416));
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));
@@ -12059,6 +13062,9 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxEVT_STC_DRAG_OVER", PyInt_FromLong((long) wxEVT_STC_DRAG_OVER));
PyDict_SetItemString(d,"wxEVT_STC_DO_DROP", PyInt_FromLong((long) wxEVT_STC_DO_DROP));
PyDict_SetItemString(d,"wxEVT_STC_ZOOM", PyInt_FromLong((long) wxEVT_STC_ZOOM));
+ PyDict_SetItemString(d,"wxEVT_STC_HOTSPOT_CLICK", PyInt_FromLong((long) wxEVT_STC_HOTSPOT_CLICK));
+ PyDict_SetItemString(d,"wxEVT_STC_HOTSPOT_DCLICK", PyInt_FromLong((long) wxEVT_STC_HOTSPOT_DCLICK));
+ PyDict_SetItemString(d,"wxEVT_STC_CALLTIP_CLICK", PyInt_FromLong((long) wxEVT_STC_CALLTIP_CLICK));
wxClassInfo::CleanUpClasses();
diff --git a/wxPython/contrib/stc/mac/stc_.py b/wxPython/contrib/stc/mac/stc_.py
index a3a4fef4a9..93e7f892ef 100644
--- a/wxPython/contrib/stc/mac/stc_.py
+++ b/wxPython/contrib/stc/mac/stc_.py
@@ -112,930 +112,1019 @@ def EVT_STC_DO_DROP(win, id, func):
def EVT_STC_ZOOM(win, id, func):
win.Connect(id, -1, wxEVT_STC_ZOOM, func)
+def EVT_STC_HOTSPOT_CLICK(win, id, func):
+ win.Connect(id, -1, wxEVT_STC_HOTSPOT_CLICK, func)
+
+def EVT_STC_HOTSPOT_DCLICK(win, id, func):
+ win.Connect(id, -1, wxEVT_STC_HOTSPOT_DCLICK, func)
+
+def EVT_STC_CALLTIP_CLICK(win, id, func):
+ win.Connect(id, -1, wxEVT_STC_CALLTIP_CLICK, func)
class wxStyledTextCtrlPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def AddText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AddText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AddText(self, *_args, **_kwargs)
return val
def AddStyledText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AddStyledText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AddStyledText(self, *_args, **_kwargs)
return val
def InsertText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_InsertText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_InsertText(self, *_args, **_kwargs)
return val
def ClearAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ClearAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ClearAll(self, *_args, **_kwargs)
return val
def ClearDocumentStyle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ClearDocumentStyle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ClearDocumentStyle(self, *_args, **_kwargs)
return val
def GetLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLength(self, *_args, **_kwargs)
return val
def GetCharAt(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCharAt,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCharAt(self, *_args, **_kwargs)
return val
def GetCurrentPos(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCurrentPos,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCurrentPos(self, *_args, **_kwargs)
return val
def GetAnchor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetAnchor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetAnchor(self, *_args, **_kwargs)
return val
def GetStyleAt(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetStyleAt,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetStyleAt(self, *_args, **_kwargs)
return val
def Redo(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Redo,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Redo(self, *_args, **_kwargs)
return val
def SetUndoCollection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetUndoCollection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetUndoCollection(self, *_args, **_kwargs)
return val
def SelectAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SelectAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SelectAll(self, *_args, **_kwargs)
return val
def SetSavePoint(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSavePoint,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSavePoint(self, *_args, **_kwargs)
return val
def GetStyledText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetStyledText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetStyledText(self, *_args, **_kwargs)
return val
def CanRedo(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CanRedo,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CanRedo(self, *_args, **_kwargs)
return val
def MarkerLineFromHandle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerLineFromHandle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerLineFromHandle(self, *_args, **_kwargs)
return val
def MarkerDeleteHandle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerDeleteHandle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerDeleteHandle(self, *_args, **_kwargs)
return val
def GetUndoCollection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetUndoCollection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetUndoCollection(self, *_args, **_kwargs)
return val
def GetViewWhiteSpace(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetViewWhiteSpace,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetViewWhiteSpace(self, *_args, **_kwargs)
return val
def SetViewWhiteSpace(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetViewWhiteSpace,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetViewWhiteSpace(self, *_args, **_kwargs)
return val
def PositionFromPoint(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_PositionFromPoint,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_PositionFromPoint(self, *_args, **_kwargs)
return val
def PositionFromPointClose(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_PositionFromPointClose,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_PositionFromPointClose(self, *_args, **_kwargs)
return val
def GotoLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GotoLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GotoLine(self, *_args, **_kwargs)
return val
def GotoPos(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GotoPos,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GotoPos(self, *_args, **_kwargs)
return val
def SetAnchor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetAnchor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetAnchor(self, *_args, **_kwargs)
return val
def GetCurLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCurLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCurLine(self, *_args, **_kwargs)
return val
def GetEndStyled(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEndStyled,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEndStyled(self, *_args, **_kwargs)
return val
def ConvertEOLs(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ConvertEOLs,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ConvertEOLs(self, *_args, **_kwargs)
return val
def GetEOLMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEOLMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEOLMode(self, *_args, **_kwargs)
return val
def SetEOLMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEOLMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEOLMode(self, *_args, **_kwargs)
return val
def StartStyling(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StartStyling,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StartStyling(self, *_args, **_kwargs)
return val
def SetStyling(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetStyling,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetStyling(self, *_args, **_kwargs)
return val
def GetBufferedDraw(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetBufferedDraw,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetBufferedDraw(self, *_args, **_kwargs)
return val
def SetBufferedDraw(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetBufferedDraw,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetBufferedDraw(self, *_args, **_kwargs)
return val
def SetTabWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetTabWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetTabWidth(self, *_args, **_kwargs)
return val
def GetTabWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTabWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTabWidth(self, *_args, **_kwargs)
return val
def SetCodePage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCodePage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCodePage(self, *_args, **_kwargs)
return val
def MarkerDefine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerDefine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerDefine(self, *_args, **_kwargs)
return val
def MarkerSetForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerSetForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerSetForeground(self, *_args, **_kwargs)
return val
def MarkerSetBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerSetBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerSetBackground(self, *_args, **_kwargs)
return val
def MarkerAdd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerAdd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerAdd(self, *_args, **_kwargs)
return val
def MarkerDelete(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerDelete,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerDelete(self, *_args, **_kwargs)
return val
def MarkerDeleteAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerDeleteAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerDeleteAll(self, *_args, **_kwargs)
return val
def MarkerGet(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerGet,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerGet(self, *_args, **_kwargs)
return val
def MarkerNext(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerNext,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerNext(self, *_args, **_kwargs)
return val
def MarkerPrevious(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerPrevious,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerPrevious(self, *_args, **_kwargs)
+ return val
+ def MarkerDefineBitmap(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_MarkerDefineBitmap(self, *_args, **_kwargs)
return val
def SetMarginType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginType(self, *_args, **_kwargs)
return val
def GetMarginType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginType(self, *_args, **_kwargs)
return val
def SetMarginWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginWidth(self, *_args, **_kwargs)
return val
def GetMarginWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginWidth(self, *_args, **_kwargs)
return val
def SetMarginMask(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginMask,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginMask(self, *_args, **_kwargs)
return val
def GetMarginMask(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginMask,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginMask(self, *_args, **_kwargs)
return val
def SetMarginSensitive(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginSensitive,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginSensitive(self, *_args, **_kwargs)
return val
def GetMarginSensitive(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginSensitive,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginSensitive(self, *_args, **_kwargs)
return val
def StyleClearAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleClearAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleClearAll(self, *_args, **_kwargs)
return val
def StyleSetForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetForeground(self, *_args, **_kwargs)
return val
def StyleSetBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetBackground(self, *_args, **_kwargs)
return val
def StyleSetBold(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetBold,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetBold(self, *_args, **_kwargs)
return val
def StyleSetItalic(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetItalic,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetItalic(self, *_args, **_kwargs)
return val
def StyleSetSize(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetSize,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetSize(self, *_args, **_kwargs)
return val
def StyleSetFaceName(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetFaceName,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetFaceName(self, *_args, **_kwargs)
return val
def StyleSetEOLFilled(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetEOLFilled,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetEOLFilled(self, *_args, **_kwargs)
return val
def StyleResetDefault(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleResetDefault,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleResetDefault(self, *_args, **_kwargs)
return val
def StyleSetUnderline(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetUnderline,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetUnderline(self, *_args, **_kwargs)
return val
def StyleSetCase(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetCase,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetCase(self, *_args, **_kwargs)
return val
def StyleSetCharacterSet(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetCharacterSet,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetCharacterSet(self, *_args, **_kwargs)
+ return val
+ def StyleSetHotSpot(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_StyleSetHotSpot(self, *_args, **_kwargs)
return val
def SetSelForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelForeground(self, *_args, **_kwargs)
return val
def SetSelBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelBackground(self, *_args, **_kwargs)
return val
def SetCaretForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretForeground(self, *_args, **_kwargs)
return val
def CmdKeyAssign(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CmdKeyAssign,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CmdKeyAssign(self, *_args, **_kwargs)
return val
def CmdKeyClear(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CmdKeyClear,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CmdKeyClear(self, *_args, **_kwargs)
return val
def CmdKeyClearAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CmdKeyClearAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CmdKeyClearAll(self, *_args, **_kwargs)
return val
def SetStyleBytes(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetStyleBytes,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetStyleBytes(self, *_args, **_kwargs)
return val
def StyleSetVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetVisible(self, *_args, **_kwargs)
return val
def GetCaretPeriod(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretPeriod,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretPeriod(self, *_args, **_kwargs)
return val
def SetCaretPeriod(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretPeriod,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretPeriod(self, *_args, **_kwargs)
return val
def SetWordChars(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetWordChars,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetWordChars(self, *_args, **_kwargs)
return val
def BeginUndoAction(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_BeginUndoAction,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_BeginUndoAction(self, *_args, **_kwargs)
return val
def EndUndoAction(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EndUndoAction,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EndUndoAction(self, *_args, **_kwargs)
return val
def IndicatorSetStyle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_IndicatorSetStyle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_IndicatorSetStyle(self, *_args, **_kwargs)
return val
def IndicatorGetStyle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_IndicatorGetStyle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_IndicatorGetStyle(self, *_args, **_kwargs)
return val
def IndicatorSetForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_IndicatorSetForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_IndicatorSetForeground(self, *_args, **_kwargs)
return val
def IndicatorGetForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_IndicatorGetForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_IndicatorGetForeground(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetWhitespaceForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetWhitespaceForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetWhitespaceForeground(self, *_args, **_kwargs)
return val
def SetWhitespaceBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetWhitespaceBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetWhitespaceBackground(self, *_args, **_kwargs)
return val
def SetStyleBits(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetStyleBits,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetStyleBits(self, *_args, **_kwargs)
return val
def GetStyleBits(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetStyleBits,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetStyleBits(self, *_args, **_kwargs)
return val
def SetLineState(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLineState,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLineState(self, *_args, **_kwargs)
return val
def GetLineState(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineState,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineState(self, *_args, **_kwargs)
return val
def GetMaxLineState(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMaxLineState,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMaxLineState(self, *_args, **_kwargs)
return val
def GetCaretLineVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretLineVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretLineVisible(self, *_args, **_kwargs)
return val
def SetCaretLineVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretLineVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretLineVisible(self, *_args, **_kwargs)
return val
def GetCaretLineBack(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretLineBack,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretLineBack(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetCaretLineBack(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretLineBack,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretLineBack(self, *_args, **_kwargs)
return val
def StyleSetChangeable(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetChangeable,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetChangeable(self, *_args, **_kwargs)
return val
def AutoCompShow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompShow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompShow(self, *_args, **_kwargs)
return val
def AutoCompCancel(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompCancel,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompCancel(self, *_args, **_kwargs)
return val
def AutoCompActive(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompActive,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompActive(self, *_args, **_kwargs)
return val
def AutoCompPosStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompPosStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompPosStart(self, *_args, **_kwargs)
return val
def AutoCompComplete(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompComplete,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompComplete(self, *_args, **_kwargs)
return val
def AutoCompStops(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompStops,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompStops(self, *_args, **_kwargs)
return val
def AutoCompSetSeparator(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetSeparator,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetSeparator(self, *_args, **_kwargs)
return val
def AutoCompGetSeparator(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetSeparator,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetSeparator(self, *_args, **_kwargs)
return val
def AutoCompSelect(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSelect,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSelect(self, *_args, **_kwargs)
return val
def AutoCompSetCancelAtStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetCancelAtStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetCancelAtStart(self, *_args, **_kwargs)
return val
def AutoCompGetCancelAtStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetCancelAtStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetCancelAtStart(self, *_args, **_kwargs)
return val
def AutoCompSetFillUps(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetFillUps,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetFillUps(self, *_args, **_kwargs)
return val
def AutoCompSetChooseSingle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetChooseSingle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetChooseSingle(self, *_args, **_kwargs)
return val
def AutoCompGetChooseSingle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetChooseSingle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetChooseSingle(self, *_args, **_kwargs)
return val
def AutoCompSetIgnoreCase(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetIgnoreCase,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetIgnoreCase(self, *_args, **_kwargs)
return val
def AutoCompGetIgnoreCase(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetIgnoreCase,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetIgnoreCase(self, *_args, **_kwargs)
return val
def UserListShow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_UserListShow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_UserListShow(self, *_args, **_kwargs)
return val
def AutoCompSetAutoHide(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetAutoHide,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetAutoHide(self, *_args, **_kwargs)
return val
def AutoCompGetAutoHide(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetAutoHide,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetAutoHide(self, *_args, **_kwargs)
return val
def AutoCompSetDropRestOfWord(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetDropRestOfWord,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetDropRestOfWord(self, *_args, **_kwargs)
return val
def AutoCompGetDropRestOfWord(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetDropRestOfWord,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetDropRestOfWord(self, *_args, **_kwargs)
+ return val
+ def RegisterImage(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_RegisterImage(self, *_args, **_kwargs)
+ return val
+ def ClearRegisteredImages(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_ClearRegisteredImages(self, *_args, **_kwargs)
+ return val
+ def AutoCompGetTypeSeparator(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_AutoCompGetTypeSeparator(self, *_args, **_kwargs)
+ return val
+ def AutoCompSetTypeSeparator(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_AutoCompSetTypeSeparator(self, *_args, **_kwargs)
return val
def SetIndent(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetIndent,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetIndent(self, *_args, **_kwargs)
return val
def GetIndent(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetIndent,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetIndent(self, *_args, **_kwargs)
return val
def SetUseTabs(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetUseTabs,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetUseTabs(self, *_args, **_kwargs)
return val
def GetUseTabs(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetUseTabs,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetUseTabs(self, *_args, **_kwargs)
return val
def SetLineIndentation(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLineIndentation,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLineIndentation(self, *_args, **_kwargs)
return val
def GetLineIndentation(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineIndentation,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineIndentation(self, *_args, **_kwargs)
return val
def GetLineIndentPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineIndentPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineIndentPosition(self, *_args, **_kwargs)
return val
def GetColumn(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetColumn,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetColumn(self, *_args, **_kwargs)
return val
def SetUseHorizontalScrollBar(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetUseHorizontalScrollBar,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetUseHorizontalScrollBar(self, *_args, **_kwargs)
return val
def GetUseHorizontalScrollBar(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetUseHorizontalScrollBar,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetUseHorizontalScrollBar(self, *_args, **_kwargs)
return val
def SetIndentationGuides(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetIndentationGuides,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetIndentationGuides(self, *_args, **_kwargs)
return val
def GetIndentationGuides(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetIndentationGuides,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetIndentationGuides(self, *_args, **_kwargs)
return val
def SetHighlightGuide(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetHighlightGuide,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetHighlightGuide(self, *_args, **_kwargs)
return val
def GetHighlightGuide(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetHighlightGuide,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetHighlightGuide(self, *_args, **_kwargs)
return val
def GetLineEndPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineEndPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineEndPosition(self, *_args, **_kwargs)
return val
def GetCodePage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCodePage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCodePage(self, *_args, **_kwargs)
return val
def GetCaretForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretForeground(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetReadOnly(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetReadOnly,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetReadOnly(self, *_args, **_kwargs)
return val
def SetCurrentPos(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCurrentPos,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCurrentPos(self, *_args, **_kwargs)
return val
def SetSelectionStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelectionStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelectionStart(self, *_args, **_kwargs)
return val
def GetSelectionStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSelectionStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSelectionStart(self, *_args, **_kwargs)
return val
def SetSelectionEnd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelectionEnd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelectionEnd(self, *_args, **_kwargs)
return val
def GetSelectionEnd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSelectionEnd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSelectionEnd(self, *_args, **_kwargs)
return val
def SetPrintMagnification(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetPrintMagnification,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetPrintMagnification(self, *_args, **_kwargs)
return val
def GetPrintMagnification(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetPrintMagnification,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetPrintMagnification(self, *_args, **_kwargs)
return val
def SetPrintColourMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetPrintColourMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetPrintColourMode(self, *_args, **_kwargs)
return val
def GetPrintColourMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetPrintColourMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetPrintColourMode(self, *_args, **_kwargs)
return val
def FindText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_FindText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_FindText(self, *_args, **_kwargs)
return val
def FormatRange(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_FormatRange,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_FormatRange(self, *_args, **_kwargs)
return val
def GetFirstVisibleLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetFirstVisibleLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetFirstVisibleLine(self, *_args, **_kwargs)
return val
def GetLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLine(self, *_args, **_kwargs)
return val
def GetLineCount(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineCount,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineCount(self, *_args, **_kwargs)
return val
def SetMarginLeft(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginLeft,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginLeft(self, *_args, **_kwargs)
return val
def GetMarginLeft(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginLeft,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginLeft(self, *_args, **_kwargs)
return val
def SetMarginRight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginRight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginRight(self, *_args, **_kwargs)
return val
def GetMarginRight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginRight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginRight(self, *_args, **_kwargs)
return val
def GetModify(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetModify,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetModify(self, *_args, **_kwargs)
return val
def SetSelection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelection(self, *_args, **_kwargs)
return val
def GetSelectedText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSelectedText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSelectedText(self, *_args, **_kwargs)
return val
def GetTextRange(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTextRange,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTextRange(self, *_args, **_kwargs)
return val
def HideSelection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_HideSelection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_HideSelection(self, *_args, **_kwargs)
return val
def LineFromPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineFromPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineFromPosition(self, *_args, **_kwargs)
return val
def PositionFromLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_PositionFromLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_PositionFromLine(self, *_args, **_kwargs)
return val
def LineScroll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineScroll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineScroll(self, *_args, **_kwargs)
return val
def EnsureCaretVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EnsureCaretVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EnsureCaretVisible(self, *_args, **_kwargs)
return val
def ReplaceSelection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ReplaceSelection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ReplaceSelection(self, *_args, **_kwargs)
return val
def SetReadOnly(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetReadOnly,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetReadOnly(self, *_args, **_kwargs)
return val
def CanPaste(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CanPaste,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CanPaste(self, *_args, **_kwargs)
return val
def CanUndo(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CanUndo,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CanUndo(self, *_args, **_kwargs)
return val
def EmptyUndoBuffer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EmptyUndoBuffer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EmptyUndoBuffer(self, *_args, **_kwargs)
return val
def Undo(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Undo,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Undo(self, *_args, **_kwargs)
return val
def Cut(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Cut,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Cut(self, *_args, **_kwargs)
return val
def Copy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Copy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Copy(self, *_args, **_kwargs)
return val
def Paste(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Paste,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Paste(self, *_args, **_kwargs)
return val
def Clear(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Clear,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Clear(self, *_args, **_kwargs)
return val
def SetText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetText(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetText(self, *_args, **_kwargs)
return val
def GetTextLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTextLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTextLength(self, *_args, **_kwargs)
return val
def SetOvertype(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetOvertype,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetOvertype(self, *_args, **_kwargs)
return val
def GetOvertype(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetOvertype,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetOvertype(self, *_args, **_kwargs)
return val
def SetCaretWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretWidth(self, *_args, **_kwargs)
return val
def GetCaretWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretWidth(self, *_args, **_kwargs)
return val
def SetTargetStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetTargetStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetTargetStart(self, *_args, **_kwargs)
return val
def GetTargetStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTargetStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTargetStart(self, *_args, **_kwargs)
return val
def SetTargetEnd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetTargetEnd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetTargetEnd(self, *_args, **_kwargs)
return val
def GetTargetEnd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTargetEnd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTargetEnd(self, *_args, **_kwargs)
return val
def ReplaceTarget(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ReplaceTarget,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ReplaceTarget(self, *_args, **_kwargs)
return val
def ReplaceTargetRE(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ReplaceTargetRE,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ReplaceTargetRE(self, *_args, **_kwargs)
return val
def SearchInTarget(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SearchInTarget,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SearchInTarget(self, *_args, **_kwargs)
return val
def SetSearchFlags(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSearchFlags,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSearchFlags(self, *_args, **_kwargs)
return val
def GetSearchFlags(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSearchFlags,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSearchFlags(self, *_args, **_kwargs)
return val
def CallTipShow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipShow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipShow(self, *_args, **_kwargs)
return val
def CallTipCancel(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipCancel,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipCancel(self, *_args, **_kwargs)
return val
def CallTipActive(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipActive,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipActive(self, *_args, **_kwargs)
return val
def CallTipPosAtStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipPosAtStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipPosAtStart(self, *_args, **_kwargs)
return val
def CallTipSetHighlight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipSetHighlight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipSetHighlight(self, *_args, **_kwargs)
return val
def CallTipSetBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipSetBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipSetBackground(self, *_args, **_kwargs)
+ return val
+ def CallTipSetForeground(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_CallTipSetForeground(self, *_args, **_kwargs)
+ return val
+ def CallTipSetForegroundHighlight(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_CallTipSetForegroundHighlight(self, *_args, **_kwargs)
return val
def VisibleFromDocLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_VisibleFromDocLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_VisibleFromDocLine(self, *_args, **_kwargs)
return val
def DocLineFromVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_DocLineFromVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_DocLineFromVisible(self, *_args, **_kwargs)
return val
def SetFoldLevel(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetFoldLevel,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetFoldLevel(self, *_args, **_kwargs)
return val
def GetFoldLevel(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetFoldLevel,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetFoldLevel(self, *_args, **_kwargs)
return val
def GetLastChild(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLastChild,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLastChild(self, *_args, **_kwargs)
return val
def GetFoldParent(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetFoldParent,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetFoldParent(self, *_args, **_kwargs)
return val
def ShowLines(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ShowLines,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ShowLines(self, *_args, **_kwargs)
return val
def HideLines(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_HideLines,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_HideLines(self, *_args, **_kwargs)
return val
def GetLineVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineVisible(self, *_args, **_kwargs)
return val
def SetFoldExpanded(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetFoldExpanded,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetFoldExpanded(self, *_args, **_kwargs)
return val
def GetFoldExpanded(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetFoldExpanded,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetFoldExpanded(self, *_args, **_kwargs)
return val
def ToggleFold(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ToggleFold,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ToggleFold(self, *_args, **_kwargs)
return val
def EnsureVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EnsureVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EnsureVisible(self, *_args, **_kwargs)
return val
def SetFoldFlags(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetFoldFlags,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetFoldFlags(self, *_args, **_kwargs)
return val
def EnsureVisibleEnforcePolicy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EnsureVisibleEnforcePolicy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EnsureVisibleEnforcePolicy(self, *_args, **_kwargs)
return val
def SetTabIndents(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetTabIndents,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetTabIndents(self, *_args, **_kwargs)
return val
def GetTabIndents(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTabIndents,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTabIndents(self, *_args, **_kwargs)
return val
def SetBackSpaceUnIndents(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetBackSpaceUnIndents,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetBackSpaceUnIndents(self, *_args, **_kwargs)
return val
def GetBackSpaceUnIndents(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetBackSpaceUnIndents,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetBackSpaceUnIndents(self, *_args, **_kwargs)
return val
def SetMouseDwellTime(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMouseDwellTime,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMouseDwellTime(self, *_args, **_kwargs)
return val
def GetMouseDwellTime(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMouseDwellTime,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMouseDwellTime(self, *_args, **_kwargs)
return val
def WordStartPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordStartPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordStartPosition(self, *_args, **_kwargs)
return val
def WordEndPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordEndPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordEndPosition(self, *_args, **_kwargs)
return val
def SetWrapMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetWrapMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetWrapMode(self, *_args, **_kwargs)
return val
def GetWrapMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetWrapMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetWrapMode(self, *_args, **_kwargs)
return val
def SetLayoutCache(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLayoutCache,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLayoutCache(self, *_args, **_kwargs)
return val
def GetLayoutCache(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLayoutCache,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLayoutCache(self, *_args, **_kwargs)
return val
def SetScrollWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetScrollWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetScrollWidth(self, *_args, **_kwargs)
return val
def GetScrollWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetScrollWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetScrollWidth(self, *_args, **_kwargs)
return val
def TextWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_TextWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_TextWidth(self, *_args, **_kwargs)
return val
def SetEndAtLastLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEndAtLastLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEndAtLastLine(self, *_args, **_kwargs)
return val
def GetEndAtLastLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEndAtLastLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEndAtLastLine(self, *_args, **_kwargs)
return val
def TextHeight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_TextHeight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_TextHeight(self, *_args, **_kwargs)
+ return val
+ def SetUseVerticalScrollBar(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetUseVerticalScrollBar(self, *_args, **_kwargs)
+ return val
+ def GetUseVerticalScrollBar(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_GetUseVerticalScrollBar(self, *_args, **_kwargs)
+ return val
+ def AppendText(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_AppendText(self, *_args, **_kwargs)
+ return val
+ def GetTwoPhaseDraw(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_GetTwoPhaseDraw(self, *_args, **_kwargs)
+ return val
+ def SetTwoPhaseDraw(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetTwoPhaseDraw(self, *_args, **_kwargs)
+ return val
+ def TargetFromSelection(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_TargetFromSelection(self, *_args, **_kwargs)
+ return val
+ def LinesJoin(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_LinesJoin(self, *_args, **_kwargs)
+ return val
+ def LinesSplit(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_LinesSplit(self, *_args, **_kwargs)
+ return val
+ def SetFoldMarginColour(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetFoldMarginColour(self, *_args, **_kwargs)
+ return val
+ def SetFoldMarginHiColour(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetFoldMarginHiColour(self, *_args, **_kwargs)
+ return val
+ def LineDuplicate(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_LineDuplicate(self, *_args, **_kwargs)
return val
def HomeDisplay(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_HomeDisplay,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_HomeDisplay(self, *_args, **_kwargs)
return val
def HomeDisplayExtend(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_HomeDisplayExtend,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_HomeDisplayExtend(self, *_args, **_kwargs)
return val
def LineEndDisplay(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineEndDisplay,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineEndDisplay(self, *_args, **_kwargs)
return val
def LineEndDisplayExtend(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineEndDisplayExtend,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineEndDisplayExtend(self, *_args, **_kwargs)
return val
def MoveCaretInsideView(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MoveCaretInsideView,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MoveCaretInsideView(self, *_args, **_kwargs)
return val
def LineLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineLength(self, *_args, **_kwargs)
return val
def BraceHighlight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_BraceHighlight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_BraceHighlight(self, *_args, **_kwargs)
return val
def BraceBadLight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_BraceBadLight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_BraceBadLight(self, *_args, **_kwargs)
return val
def BraceMatch(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_BraceMatch,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_BraceMatch(self, *_args, **_kwargs)
return val
def GetViewEOL(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetViewEOL,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetViewEOL(self, *_args, **_kwargs)
return val
def SetViewEOL(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetViewEOL,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetViewEOL(self, *_args, **_kwargs)
return val
def GetDocPointer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetDocPointer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetDocPointer(self, *_args, **_kwargs)
return val
def SetDocPointer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetDocPointer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetDocPointer(self, *_args, **_kwargs)
return val
def SetModEventMask(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetModEventMask,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetModEventMask(self, *_args, **_kwargs)
return val
def GetEdgeColumn(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEdgeColumn,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEdgeColumn(self, *_args, **_kwargs)
return val
def SetEdgeColumn(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEdgeColumn,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEdgeColumn(self, *_args, **_kwargs)
return val
def GetEdgeMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEdgeMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEdgeMode(self, *_args, **_kwargs)
return val
def SetEdgeMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEdgeMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEdgeMode(self, *_args, **_kwargs)
return val
def GetEdgeColour(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEdgeColour,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEdgeColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetEdgeColour(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEdgeColour,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEdgeColour(self, *_args, **_kwargs)
return val
def SearchAnchor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SearchAnchor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SearchAnchor(self, *_args, **_kwargs)
return val
def SearchNext(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SearchNext,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SearchNext(self, *_args, **_kwargs)
return val
def SearchPrev(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SearchPrev,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SearchPrev(self, *_args, **_kwargs)
return val
def LinesOnScreen(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LinesOnScreen,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LinesOnScreen(self, *_args, **_kwargs)
return val
def UsePopUp(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_UsePopUp,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_UsePopUp(self, *_args, **_kwargs)
return val
def SelectionIsRectangle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SelectionIsRectangle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SelectionIsRectangle(self, *_args, **_kwargs)
return val
def SetZoom(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetZoom,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetZoom(self, *_args, **_kwargs)
return val
def GetZoom(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetZoom,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetZoom(self, *_args, **_kwargs)
return val
def CreateDocument(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CreateDocument,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CreateDocument(self, *_args, **_kwargs)
return val
def AddRefDocument(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AddRefDocument,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AddRefDocument(self, *_args, **_kwargs)
return val
def ReleaseDocument(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ReleaseDocument,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ReleaseDocument(self, *_args, **_kwargs)
return val
def GetModEventMask(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetModEventMask,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetModEventMask(self, *_args, **_kwargs)
return val
def SetSTCFocus(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSTCFocus,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSTCFocus(self, *_args, **_kwargs)
return val
def GetSTCFocus(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSTCFocus,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSTCFocus(self, *_args, **_kwargs)
return val
def SetStatus(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetStatus,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetStatus(self, *_args, **_kwargs)
return val
def GetStatus(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetStatus,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetStatus(self, *_args, **_kwargs)
return val
def SetMouseDownCaptures(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMouseDownCaptures,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMouseDownCaptures(self, *_args, **_kwargs)
return val
def GetMouseDownCaptures(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMouseDownCaptures,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMouseDownCaptures(self, *_args, **_kwargs)
return val
def SetCursor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCursor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCursor(self, *_args, **_kwargs)
return val
def GetCursor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCursor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCursor(self, *_args, **_kwargs)
return val
def SetControlCharSymbol(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetControlCharSymbol,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetControlCharSymbol(self, *_args, **_kwargs)
return val
def GetControlCharSymbol(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetControlCharSymbol,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetControlCharSymbol(self, *_args, **_kwargs)
return val
def WordPartLeft(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordPartLeft,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordPartLeft(self, *_args, **_kwargs)
return val
def WordPartLeftExtend(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordPartLeftExtend,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordPartLeftExtend(self, *_args, **_kwargs)
return val
def WordPartRight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordPartRight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordPartRight(self, *_args, **_kwargs)
return val
def WordPartRightExtend(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordPartRightExtend,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordPartRightExtend(self, *_args, **_kwargs)
return val
def SetVisiblePolicy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetVisiblePolicy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetVisiblePolicy(self, *_args, **_kwargs)
return val
def DelLineLeft(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_DelLineLeft,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_DelLineLeft(self, *_args, **_kwargs)
return val
def DelLineRight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_DelLineRight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_DelLineRight(self, *_args, **_kwargs)
return val
def SetXOffset(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetXOffset,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetXOffset(self, *_args, **_kwargs)
return val
def GetXOffset(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetXOffset,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetXOffset(self, *_args, **_kwargs)
+ return val
+ def ChooseCaretX(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_ChooseCaretX(self, *_args, **_kwargs)
return val
def SetXCaretPolicy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetXCaretPolicy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetXCaretPolicy(self, *_args, **_kwargs)
return val
def SetYCaretPolicy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetYCaretPolicy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetYCaretPolicy(self, *_args, **_kwargs)
+ return val
+ def SetPrintWrapMode(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetPrintWrapMode(self, *_args, **_kwargs)
+ return val
+ def GetPrintWrapMode(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_GetPrintWrapMode(self, *_args, **_kwargs)
+ return val
+ def SetHotspotActiveForeground(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetHotspotActiveForeground(self, *_args, **_kwargs)
+ return val
+ def SetHotspotActiveBackground(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetHotspotActiveBackground(self, *_args, **_kwargs)
+ return val
+ def SetHotspotActiveUnderline(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetHotspotActiveUnderline(self, *_args, **_kwargs)
return val
def StartRecord(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StartRecord,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StartRecord(self, *_args, **_kwargs)
return val
def StopRecord(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StopRecord,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StopRecord(self, *_args, **_kwargs)
return val
def SetLexer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLexer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLexer(self, *_args, **_kwargs)
return val
def GetLexer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLexer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLexer(self, *_args, **_kwargs)
return val
def Colourise(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Colourise,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Colourise(self, *_args, **_kwargs)
return val
def SetProperty(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetProperty,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetProperty(self, *_args, **_kwargs)
return val
def SetKeyWords(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetKeyWords,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetKeyWords(self, *_args, **_kwargs)
return val
def SetLexerLanguage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLexerLanguage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLexerLanguage(self, *_args, **_kwargs)
return val
def GetCurrentLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCurrentLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCurrentLine(self, *_args, **_kwargs)
return val
def StyleSetSpec(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetSpec,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetSpec(self, *_args, **_kwargs)
return val
def StyleSetFont(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetFont,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetFont(self, *_args, **_kwargs)
return val
def StyleSetFontAttr(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetFontAttr,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetFontAttr(self, *_args, **_kwargs)
return val
def CmdKeyExecute(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CmdKeyExecute,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CmdKeyExecute(self, *_args, **_kwargs)
return val
def SetMargins(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMargins,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMargins(self, *_args, **_kwargs)
return val
def GetSelection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSelection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSelection(self, *_args, **_kwargs)
return val
def PointFromPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_PointFromPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_PointFromPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def ScrollToLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ScrollToLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ScrollToLine(self, *_args, **_kwargs)
return val
def ScrollToColumn(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ScrollToColumn,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ScrollToColumn(self, *_args, **_kwargs)
return val
def SendMsg(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SendMsg,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SendMsg(self, *_args, **_kwargs)
return val
def SetVScrollBar(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetVScrollBar,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetVScrollBar(self, *_args, **_kwargs)
return val
def SetHScrollBar(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetHScrollBar,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetHScrollBar(self, *_args, **_kwargs)
return val
def GetLastKeydownProcessed(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLastKeydownProcessed,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLastKeydownProcessed(self, *_args, **_kwargs)
return val
def SetLastKeydownProcessed(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLastKeydownProcessed,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLastKeydownProcessed(self, *_args, **_kwargs)
+ return val
+ def SaveFile(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SaveFile(self, *_args, **_kwargs)
+ return val
+ def LoadFile(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_LoadFile(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxStyledTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxStyledTextCtrl(wxStyledTextCtrlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(stc_c.new_wxStyledTextCtrl,_args,_kwargs)
+ self.this = stc_c.new_wxStyledTextCtrl(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -1053,143 +1142,143 @@ class wxStyledTextEventPtr(wxCommandEventPtr):
except:
pass
def SetPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetPosition(self, *_args, **_kwargs)
return val
def SetKey(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetKey,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetKey(self, *_args, **_kwargs)
return val
def SetModifiers(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetModifiers,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetModifiers(self, *_args, **_kwargs)
return val
def SetModificationType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetModificationType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetModificationType(self, *_args, **_kwargs)
return val
def SetText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetText(self, *_args, **_kwargs)
return val
def SetLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetLength(self, *_args, **_kwargs)
return val
def SetLinesAdded(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetLinesAdded,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetLinesAdded(self, *_args, **_kwargs)
return val
def SetLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetLine(self, *_args, **_kwargs)
return val
def SetFoldLevelNow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetFoldLevelNow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetFoldLevelNow(self, *_args, **_kwargs)
return val
def SetFoldLevelPrev(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetFoldLevelPrev,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetFoldLevelPrev(self, *_args, **_kwargs)
return val
def SetMargin(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetMargin,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetMargin(self, *_args, **_kwargs)
return val
def SetMessage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetMessage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetMessage(self, *_args, **_kwargs)
return val
def SetWParam(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetWParam,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetWParam(self, *_args, **_kwargs)
return val
def SetLParam(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetLParam,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetLParam(self, *_args, **_kwargs)
return val
def SetListType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetListType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetListType(self, *_args, **_kwargs)
return val
def SetX(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetX,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetX(self, *_args, **_kwargs)
return val
def SetY(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetY,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetY(self, *_args, **_kwargs)
return val
def SetDragText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetDragText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetDragText(self, *_args, **_kwargs)
return val
def SetDragAllowMove(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetDragAllowMove,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetDragAllowMove(self, *_args, **_kwargs)
return val
def SetDragResult(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetDragResult,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetDragResult(self, *_args, **_kwargs)
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetPosition(self, *_args, **_kwargs)
return val
def GetKey(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetKey,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetKey(self, *_args, **_kwargs)
return val
def GetModifiers(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetModifiers,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetModifiers(self, *_args, **_kwargs)
return val
def GetModificationType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetModificationType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetModificationType(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetText(self, *_args, **_kwargs)
return val
def GetLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetLength(self, *_args, **_kwargs)
return val
def GetLinesAdded(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetLinesAdded,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetLinesAdded(self, *_args, **_kwargs)
return val
def GetLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetLine(self, *_args, **_kwargs)
return val
def GetFoldLevelNow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetFoldLevelNow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetFoldLevelNow(self, *_args, **_kwargs)
return val
def GetFoldLevelPrev(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetFoldLevelPrev,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetFoldLevelPrev(self, *_args, **_kwargs)
return val
def GetMargin(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetMargin,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetMargin(self, *_args, **_kwargs)
return val
def GetMessage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetMessage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetMessage(self, *_args, **_kwargs)
return val
def GetWParam(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetWParam,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetWParam(self, *_args, **_kwargs)
return val
def GetLParam(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetLParam,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetLParam(self, *_args, **_kwargs)
return val
def GetListType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetListType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetListType(self, *_args, **_kwargs)
return val
def GetX(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetX,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetX(self, *_args, **_kwargs)
return val
def GetY(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetY,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetY(self, *_args, **_kwargs)
return val
def GetDragText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetDragText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetDragText(self, *_args, **_kwargs)
return val
def GetDragAllowMove(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetDragAllowMove,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetDragAllowMove(self, *_args, **_kwargs)
return val
def GetDragResult(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetDragResult,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetDragResult(self, *_args, **_kwargs)
return val
def GetShift(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetShift,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetShift(self, *_args, **_kwargs)
return val
def GetControl(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetControl,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetControl(self, *_args, **_kwargs)
return val
def GetAlt(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetAlt,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetAlt(self, *_args, **_kwargs)
return val
def Clone(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_Clone,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_Clone(self, *_args, **_kwargs)
if val: val = wxEventPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxStyledTextEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxStyledTextEvent(wxStyledTextEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(stc_c.new_wxStyledTextEvent,_args,_kwargs)
+ self.this = stc_c.new_wxStyledTextEvent(*_args,**_kwargs)
self.thisown = 1
@@ -1215,6 +1304,7 @@ wxSTC_EOL_CRLF = stc_c.wxSTC_EOL_CRLF
wxSTC_EOL_CR = stc_c.wxSTC_EOL_CR
wxSTC_EOL_LF = stc_c.wxSTC_EOL_LF
wxSTC_CP_UTF8 = stc_c.wxSTC_CP_UTF8
+wxSTC_CP_DBCS = stc_c.wxSTC_CP_DBCS
wxSTC_MARKER_MAX = stc_c.wxSTC_MARKER_MAX
wxSTC_MARK_CIRCLE = stc_c.wxSTC_MARK_CIRCLE
wxSTC_MARK_ROUNDRECT = stc_c.wxSTC_MARK_ROUNDRECT
@@ -1241,6 +1331,7 @@ wxSTC_MARK_CIRCLEMINUSCONNECTED = stc_c.wxSTC_MARK_CIRCLEMINUSCONNECTED
wxSTC_MARK_BACKGROUND = stc_c.wxSTC_MARK_BACKGROUND
wxSTC_MARK_DOTDOTDOT = stc_c.wxSTC_MARK_DOTDOTDOT
wxSTC_MARK_ARROWS = stc_c.wxSTC_MARK_ARROWS
+wxSTC_MARK_PIXMAP = stc_c.wxSTC_MARK_PIXMAP
wxSTC_MARK_CHARACTER = stc_c.wxSTC_MARK_CHARACTER
wxSTC_MARKNUM_FOLDEREND = stc_c.wxSTC_MARKNUM_FOLDEREND
wxSTC_MARKNUM_FOLDEROPENMID = stc_c.wxSTC_MARKNUM_FOLDEROPENMID
@@ -1301,10 +1392,21 @@ wxSTC_FIND_WHOLEWORD = stc_c.wxSTC_FIND_WHOLEWORD
wxSTC_FIND_MATCHCASE = stc_c.wxSTC_FIND_MATCHCASE
wxSTC_FIND_WORDSTART = stc_c.wxSTC_FIND_WORDSTART
wxSTC_FIND_REGEXP = stc_c.wxSTC_FIND_REGEXP
+wxSTC_FIND_POSIX = stc_c.wxSTC_FIND_POSIX
wxSTC_FOLDLEVELBASE = stc_c.wxSTC_FOLDLEVELBASE
wxSTC_FOLDLEVELWHITEFLAG = stc_c.wxSTC_FOLDLEVELWHITEFLAG
wxSTC_FOLDLEVELHEADERFLAG = stc_c.wxSTC_FOLDLEVELHEADERFLAG
+wxSTC_FOLDLEVELBOXHEADERFLAG = stc_c.wxSTC_FOLDLEVELBOXHEADERFLAG
+wxSTC_FOLDLEVELBOXFOOTERFLAG = stc_c.wxSTC_FOLDLEVELBOXFOOTERFLAG
+wxSTC_FOLDLEVELCONTRACTED = stc_c.wxSTC_FOLDLEVELCONTRACTED
+wxSTC_FOLDLEVELUNINDENT = stc_c.wxSTC_FOLDLEVELUNINDENT
wxSTC_FOLDLEVELNUMBERMASK = stc_c.wxSTC_FOLDLEVELNUMBERMASK
+wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED = stc_c.wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED
+wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED = stc_c.wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED
+wxSTC_FOLDFLAG_LINEAFTER_EXPANDED = stc_c.wxSTC_FOLDFLAG_LINEAFTER_EXPANDED
+wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED = stc_c.wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED
+wxSTC_FOLDFLAG_LEVELNUMBERS = stc_c.wxSTC_FOLDFLAG_LEVELNUMBERS
+wxSTC_FOLDFLAG_BOX = stc_c.wxSTC_FOLDFLAG_BOX
wxSTC_TIME_FOREVER = stc_c.wxSTC_TIME_FOREVER
wxSTC_WRAP_NONE = stc_c.wxSTC_WRAP_NONE
wxSTC_WRAP_WORD = stc_c.wxSTC_WRAP_WORD
@@ -1389,6 +1491,12 @@ wxSTC_LEX_PHP = stc_c.wxSTC_LEX_PHP
wxSTC_LEX_BAAN = stc_c.wxSTC_LEX_BAAN
wxSTC_LEX_MATLAB = stc_c.wxSTC_LEX_MATLAB
wxSTC_LEX_SCRIPTOL = stc_c.wxSTC_LEX_SCRIPTOL
+wxSTC_LEX_ASM = stc_c.wxSTC_LEX_ASM
+wxSTC_LEX_CPPNOCASE = stc_c.wxSTC_LEX_CPPNOCASE
+wxSTC_LEX_FORTRAN = stc_c.wxSTC_LEX_FORTRAN
+wxSTC_LEX_F77 = stc_c.wxSTC_LEX_F77
+wxSTC_LEX_CSS = stc_c.wxSTC_LEX_CSS
+wxSTC_LEX_POV = stc_c.wxSTC_LEX_POV
wxSTC_LEX_AUTOMATIC = stc_c.wxSTC_LEX_AUTOMATIC
wxSTC_P_DEFAULT = stc_c.wxSTC_P_DEFAULT
wxSTC_P_COMMENTLINE = stc_c.wxSTC_P_COMMENTLINE
@@ -1614,6 +1722,9 @@ wxSTC_ERR_DIFF_CHANGED = stc_c.wxSTC_ERR_DIFF_CHANGED
wxSTC_ERR_DIFF_ADDITION = stc_c.wxSTC_ERR_DIFF_ADDITION
wxSTC_ERR_DIFF_DELETION = stc_c.wxSTC_ERR_DIFF_DELETION
wxSTC_ERR_DIFF_MESSAGE = stc_c.wxSTC_ERR_DIFF_MESSAGE
+wxSTC_ERR_PHP = stc_c.wxSTC_ERR_PHP
+wxSTC_ERR_ELF = stc_c.wxSTC_ERR_ELF
+wxSTC_ERR_IFC = stc_c.wxSTC_ERR_IFC
wxSTC_BAT_DEFAULT = stc_c.wxSTC_BAT_DEFAULT
wxSTC_BAT_COMMENT = stc_c.wxSTC_BAT_COMMENT
wxSTC_BAT_WORD = stc_c.wxSTC_BAT_WORD
@@ -1650,22 +1761,29 @@ wxSTC_AVE_DEFAULT = stc_c.wxSTC_AVE_DEFAULT
wxSTC_AVE_COMMENT = stc_c.wxSTC_AVE_COMMENT
wxSTC_AVE_NUMBER = stc_c.wxSTC_AVE_NUMBER
wxSTC_AVE_WORD = stc_c.wxSTC_AVE_WORD
-wxSTC_AVE_KEYWORD = stc_c.wxSTC_AVE_KEYWORD
-wxSTC_AVE_STATEMENT = stc_c.wxSTC_AVE_STATEMENT
wxSTC_AVE_STRING = stc_c.wxSTC_AVE_STRING
wxSTC_AVE_ENUM = stc_c.wxSTC_AVE_ENUM
wxSTC_AVE_STRINGEOL = stc_c.wxSTC_AVE_STRINGEOL
wxSTC_AVE_IDENTIFIER = stc_c.wxSTC_AVE_IDENTIFIER
wxSTC_AVE_OPERATOR = stc_c.wxSTC_AVE_OPERATOR
+wxSTC_AVE_WORD1 = stc_c.wxSTC_AVE_WORD1
+wxSTC_AVE_WORD2 = stc_c.wxSTC_AVE_WORD2
+wxSTC_AVE_WORD3 = stc_c.wxSTC_AVE_WORD3
+wxSTC_AVE_WORD4 = stc_c.wxSTC_AVE_WORD4
+wxSTC_AVE_WORD5 = stc_c.wxSTC_AVE_WORD5
+wxSTC_AVE_WORD6 = stc_c.wxSTC_AVE_WORD6
wxSTC_ADA_DEFAULT = stc_c.wxSTC_ADA_DEFAULT
-wxSTC_ADA_COMMENT = stc_c.wxSTC_ADA_COMMENT
-wxSTC_ADA_NUMBER = stc_c.wxSTC_ADA_NUMBER
wxSTC_ADA_WORD = stc_c.wxSTC_ADA_WORD
-wxSTC_ADA_STRING = stc_c.wxSTC_ADA_STRING
-wxSTC_ADA_CHARACTER = stc_c.wxSTC_ADA_CHARACTER
-wxSTC_ADA_OPERATOR = stc_c.wxSTC_ADA_OPERATOR
wxSTC_ADA_IDENTIFIER = stc_c.wxSTC_ADA_IDENTIFIER
+wxSTC_ADA_NUMBER = stc_c.wxSTC_ADA_NUMBER
+wxSTC_ADA_DELIMITER = stc_c.wxSTC_ADA_DELIMITER
+wxSTC_ADA_CHARACTER = stc_c.wxSTC_ADA_CHARACTER
+wxSTC_ADA_CHARACTEREOL = stc_c.wxSTC_ADA_CHARACTEREOL
+wxSTC_ADA_STRING = stc_c.wxSTC_ADA_STRING
wxSTC_ADA_STRINGEOL = stc_c.wxSTC_ADA_STRINGEOL
+wxSTC_ADA_LABEL = stc_c.wxSTC_ADA_LABEL
+wxSTC_ADA_COMMENTLINE = stc_c.wxSTC_ADA_COMMENTLINE
+wxSTC_ADA_ILLEGAL = stc_c.wxSTC_ADA_ILLEGAL
wxSTC_BAAN_DEFAULT = stc_c.wxSTC_BAAN_DEFAULT
wxSTC_BAAN_COMMENT = stc_c.wxSTC_BAAN_COMMENT
wxSTC_BAAN_COMMENTDOC = stc_c.wxSTC_BAAN_COMMENTDOC
@@ -1733,6 +1851,58 @@ 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
+wxSTC_ASM_DEFAULT = stc_c.wxSTC_ASM_DEFAULT
+wxSTC_ASM_COMMENT = stc_c.wxSTC_ASM_COMMENT
+wxSTC_ASM_NUMBER = stc_c.wxSTC_ASM_NUMBER
+wxSTC_ASM_STRING = stc_c.wxSTC_ASM_STRING
+wxSTC_ASM_OPERATOR = stc_c.wxSTC_ASM_OPERATOR
+wxSTC_ASM_IDENTIFIER = stc_c.wxSTC_ASM_IDENTIFIER
+wxSTC_ASM_CPUINSTRUCTION = stc_c.wxSTC_ASM_CPUINSTRUCTION
+wxSTC_ASM_MATHINSTRUCTION = stc_c.wxSTC_ASM_MATHINSTRUCTION
+wxSTC_ASM_REGISTER = stc_c.wxSTC_ASM_REGISTER
+wxSTC_ASM_DIRECTIVE = stc_c.wxSTC_ASM_DIRECTIVE
+wxSTC_ASM_DIRECTIVEOPERAND = stc_c.wxSTC_ASM_DIRECTIVEOPERAND
+wxSTC_F_DEFAULT = stc_c.wxSTC_F_DEFAULT
+wxSTC_F_COMMENT = stc_c.wxSTC_F_COMMENT
+wxSTC_F_NUMBER = stc_c.wxSTC_F_NUMBER
+wxSTC_F_STRING1 = stc_c.wxSTC_F_STRING1
+wxSTC_F_STRING2 = stc_c.wxSTC_F_STRING2
+wxSTC_F_STRINGEOL = stc_c.wxSTC_F_STRINGEOL
+wxSTC_F_OPERATOR = stc_c.wxSTC_F_OPERATOR
+wxSTC_F_IDENTIFIER = stc_c.wxSTC_F_IDENTIFIER
+wxSTC_F_WORD = stc_c.wxSTC_F_WORD
+wxSTC_F_WORD2 = stc_c.wxSTC_F_WORD2
+wxSTC_F_WORD3 = stc_c.wxSTC_F_WORD3
+wxSTC_F_PREPROCESSOR = stc_c.wxSTC_F_PREPROCESSOR
+wxSTC_F_OPERATOR2 = stc_c.wxSTC_F_OPERATOR2
+wxSTC_F_LABEL = stc_c.wxSTC_F_LABEL
+wxSTC_F_CONTINUATION = stc_c.wxSTC_F_CONTINUATION
+wxSTC_CSS_DEFAULT = stc_c.wxSTC_CSS_DEFAULT
+wxSTC_CSS_TAG = stc_c.wxSTC_CSS_TAG
+wxSTC_CSS_CLASS = stc_c.wxSTC_CSS_CLASS
+wxSTC_CSS_PSEUDOCLASS = stc_c.wxSTC_CSS_PSEUDOCLASS
+wxSTC_CSS_UNKNOWN_PSEUDOCLASS = stc_c.wxSTC_CSS_UNKNOWN_PSEUDOCLASS
+wxSTC_CSS_OPERATOR = stc_c.wxSTC_CSS_OPERATOR
+wxSTC_CSS_IDENTIFIER = stc_c.wxSTC_CSS_IDENTIFIER
+wxSTC_CSS_UNKNOWN_IDENTIFIER = stc_c.wxSTC_CSS_UNKNOWN_IDENTIFIER
+wxSTC_CSS_VALUE = stc_c.wxSTC_CSS_VALUE
+wxSTC_CSS_COMMENT = stc_c.wxSTC_CSS_COMMENT
+wxSTC_CSS_ID = stc_c.wxSTC_CSS_ID
+wxSTC_CSS_IMPORTANT = stc_c.wxSTC_CSS_IMPORTANT
+wxSTC_CSS_DIRECTIVE = stc_c.wxSTC_CSS_DIRECTIVE
+wxSTC_CSS_DOUBLESTRING = stc_c.wxSTC_CSS_DOUBLESTRING
+wxSTC_CSS_SINGLESTRING = stc_c.wxSTC_CSS_SINGLESTRING
+wxSTC_POV_DEFAULT = stc_c.wxSTC_POV_DEFAULT
+wxSTC_POV_COMMENT = stc_c.wxSTC_POV_COMMENT
+wxSTC_POV_COMMENTLINE = stc_c.wxSTC_POV_COMMENTLINE
+wxSTC_POV_COMMENTDOC = stc_c.wxSTC_POV_COMMENTDOC
+wxSTC_POV_NUMBER = stc_c.wxSTC_POV_NUMBER
+wxSTC_POV_WORD = stc_c.wxSTC_POV_WORD
+wxSTC_POV_STRING = stc_c.wxSTC_POV_STRING
+wxSTC_POV_OPERATOR = stc_c.wxSTC_POV_OPERATOR
+wxSTC_POV_IDENTIFIER = stc_c.wxSTC_POV_IDENTIFIER
+wxSTC_POV_BRACE = stc_c.wxSTC_POV_BRACE
+wxSTC_POV_WORD2 = stc_c.wxSTC_POV_WORD2
wxSTC_CMD_REDO = stc_c.wxSTC_CMD_REDO
wxSTC_CMD_SELECTALL = stc_c.wxSTC_CMD_SELECTALL
wxSTC_CMD_UNDO = stc_c.wxSTC_CMD_UNDO
@@ -1780,6 +1950,7 @@ wxSTC_CMD_DELWORDRIGHT = stc_c.wxSTC_CMD_DELWORDRIGHT
wxSTC_CMD_LINECUT = stc_c.wxSTC_CMD_LINECUT
wxSTC_CMD_LINEDELETE = stc_c.wxSTC_CMD_LINEDELETE
wxSTC_CMD_LINETRANSPOSE = stc_c.wxSTC_CMD_LINETRANSPOSE
+wxSTC_CMD_LINEDUPLICATE = stc_c.wxSTC_CMD_LINEDUPLICATE
wxSTC_CMD_LOWERCASE = stc_c.wxSTC_CMD_LOWERCASE
wxSTC_CMD_UPPERCASE = stc_c.wxSTC_CMD_UPPERCASE
wxSTC_CMD_LINESCROLLDOWN = stc_c.wxSTC_CMD_LINESCROLLDOWN
@@ -1789,12 +1960,22 @@ wxSTC_CMD_HOMEDISPLAY = stc_c.wxSTC_CMD_HOMEDISPLAY
wxSTC_CMD_HOMEDISPLAYEXTEND = stc_c.wxSTC_CMD_HOMEDISPLAYEXTEND
wxSTC_CMD_LINEENDDISPLAY = stc_c.wxSTC_CMD_LINEENDDISPLAY
wxSTC_CMD_LINEENDDISPLAYEXTEND = stc_c.wxSTC_CMD_LINEENDDISPLAYEXTEND
+wxSTC_CMD_HOMEWRAP = stc_c.wxSTC_CMD_HOMEWRAP
+wxSTC_CMD_HOMEWRAPEXTEND = stc_c.wxSTC_CMD_HOMEWRAPEXTEND
+wxSTC_CMD_LINEENDWRAP = stc_c.wxSTC_CMD_LINEENDWRAP
+wxSTC_CMD_LINEENDWRAPEXTEND = stc_c.wxSTC_CMD_LINEENDWRAPEXTEND
+wxSTC_CMD_VCHOMEWRAP = stc_c.wxSTC_CMD_VCHOMEWRAP
+wxSTC_CMD_VCHOMEWRAPEXTEND = stc_c.wxSTC_CMD_VCHOMEWRAPEXTEND
wxSTC_CMD_WORDPARTLEFT = stc_c.wxSTC_CMD_WORDPARTLEFT
wxSTC_CMD_WORDPARTLEFTEXTEND = stc_c.wxSTC_CMD_WORDPARTLEFTEXTEND
wxSTC_CMD_WORDPARTRIGHT = stc_c.wxSTC_CMD_WORDPARTRIGHT
wxSTC_CMD_WORDPARTRIGHTEXTEND = stc_c.wxSTC_CMD_WORDPARTRIGHTEXTEND
wxSTC_CMD_DELLINELEFT = stc_c.wxSTC_CMD_DELLINELEFT
wxSTC_CMD_DELLINERIGHT = stc_c.wxSTC_CMD_DELLINERIGHT
+wxSTC_CMD_PARADOWN = stc_c.wxSTC_CMD_PARADOWN
+wxSTC_CMD_PARADOWNEXTEND = stc_c.wxSTC_CMD_PARADOWNEXTEND
+wxSTC_CMD_PARAUP = stc_c.wxSTC_CMD_PARAUP
+wxSTC_CMD_PARAUPEXTEND = stc_c.wxSTC_CMD_PARAUPEXTEND
STC_USE_DND = stc_c.STC_USE_DND
wxEVT_STC_CHANGE = stc_c.wxEVT_STC_CHANGE
wxEVT_STC_STYLENEEDED = stc_c.wxEVT_STC_STYLENEEDED
@@ -1819,6 +2000,9 @@ wxEVT_STC_START_DRAG = stc_c.wxEVT_STC_START_DRAG
wxEVT_STC_DRAG_OVER = stc_c.wxEVT_STC_DRAG_OVER
wxEVT_STC_DO_DROP = stc_c.wxEVT_STC_DO_DROP
wxEVT_STC_ZOOM = stc_c.wxEVT_STC_ZOOM
+wxEVT_STC_HOTSPOT_CLICK = stc_c.wxEVT_STC_HOTSPOT_CLICK
+wxEVT_STC_HOTSPOT_DCLICK = stc_c.wxEVT_STC_HOTSPOT_DCLICK
+wxEVT_STC_CALLTIP_CLICK = stc_c.wxEVT_STC_CALLTIP_CLICK
#-------------- USER INCLUDE -----------------------
diff --git a/wxPython/contrib/stc/msw/stc_.cpp b/wxPython/contrib/stc/msw/stc_.cpp
index 70f55c2596..ac7fbdb933 100644
--- a/wxPython/contrib/stc/msw/stc_.cpp
+++ b/wxPython/contrib/stc/msw/stc_.cpp
@@ -1649,6 +1649,43 @@ static PyObject *_wrap_wxStyledTextCtrl_MarkerPrevious(PyObject *self, PyObject
return _resultobj;
}
+#define wxStyledTextCtrl_MarkerDefineBitmap(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerDefineBitmap(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_MarkerDefineBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ wxBitmap * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo2 = 0;
+ char *_kwnames[] = { "self","markerNumber","bmp", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_MarkerDefineBitmap",_kwnames,&_argo0,&_arg1,&_argo2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerDefineBitmap. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo2) {
+ if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxStyledTextCtrl_MarkerDefineBitmap. Expected _wxBitmap_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_MarkerDefineBitmap(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_SetMarginType(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMarginType(_swigarg0,_swigarg1))
static PyObject *_wrap_wxStyledTextCtrl_SetMarginType(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -2275,6 +2312,38 @@ static PyObject *_wrap_wxStyledTextCtrl_StyleSetCharacterSet(PyObject *self, PyO
return _resultobj;
}
+#define wxStyledTextCtrl_StyleSetHotSpot(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetHotSpot(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_StyleSetHotSpot(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ bool _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool2;
+ char *_kwnames[] = { "self","style","hotspot", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetHotSpot",_kwnames,&_argo0,&_arg1,&tempbool2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetHotSpot. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg2 = (bool ) tempbool2;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_StyleSetHotSpot(_arg0,_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_SetSelForeground(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelForeground(_swigarg0,_swigarg1))
static PyObject *_wrap_wxStyledTextCtrl_SetSelForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -3859,6 +3928,128 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompGetDropRestOfWord(PyObject *self
return _resultobj;
}
+#define wxStyledTextCtrl_RegisterImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->RegisterImage(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_RegisterImage(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ wxBitmap * _arg2;
+ PyObject * _argo0 = 0;
+ PyObject * _argo2 = 0;
+ char *_kwnames[] = { "self","type","bmp", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_RegisterImage",_kwnames,&_argo0,&_arg1,&_argo2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_RegisterImage. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ if (_argo2) {
+ if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxStyledTextCtrl_RegisterImage. Expected _wxBitmap_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_RegisterImage(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_ClearRegisteredImages(_swigobj) (_swigobj->ClearRegisteredImages())
+static PyObject *_wrap_wxStyledTextCtrl_ClearRegisteredImages(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_ClearRegisteredImages",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ClearRegisteredImages. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_ClearRegisteredImages(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_AutoCompGetTypeSeparator(_swigobj) (_swigobj->AutoCompGetTypeSeparator())
+static PyObject *_wrap_wxStyledTextCtrl_AutoCompGetTypeSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_AutoCompGetTypeSeparator",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompGetTypeSeparator. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxStyledTextCtrl_AutoCompGetTypeSeparator(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_AutoCompSetTypeSeparator(_swigobj,_swigarg0) (_swigobj->AutoCompSetTypeSeparator(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_AutoCompSetTypeSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","separatorCharacter", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_AutoCompSetTypeSeparator",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompSetTypeSeparator. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_AutoCompSetTypeSeparator(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0))
static PyObject *_wrap_wxStyledTextCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -6229,6 +6420,78 @@ static PyObject *_wrap_wxStyledTextCtrl_CallTipSetBackground(PyObject *self, PyO
return _resultobj;
}
+#define wxStyledTextCtrl_CallTipSetForeground(_swigobj,_swigarg0) (_swigobj->CallTipSetForeground(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_CallTipSetForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ wxColour * _arg1;
+ PyObject * _argo0 = 0;
+ wxColour temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","fore", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_CallTipSetForeground",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CallTipSetForeground. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxColour_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_CallTipSetForeground(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_CallTipSetForegroundHighlight(_swigobj,_swigarg0) (_swigobj->CallTipSetForegroundHighlight(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_CallTipSetForegroundHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ wxColour * _arg1;
+ PyObject * _argo0 = 0;
+ wxColour temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","fore", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_CallTipSetForegroundHighlight",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CallTipSetForegroundHighlight. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxColour_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_CallTipSetForegroundHighlight(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_VisibleFromDocLine(_swigobj,_swigarg0) (_swigobj->VisibleFromDocLine(_swigarg0))
static PyObject *_wrap_wxStyledTextCtrl_VisibleFromDocLine(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -7209,26 +7472,29 @@ static PyObject *_wrap_wxStyledTextCtrl_TextHeight(PyObject *self, PyObject *arg
return _resultobj;
}
-#define wxStyledTextCtrl_HomeDisplay(_swigobj) (_swigobj->HomeDisplay())
-static PyObject *_wrap_wxStyledTextCtrl_HomeDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStyledTextCtrl_SetUseVerticalScrollBar(_swigobj,_swigarg0) (_swigobj->SetUseVerticalScrollBar(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SetUseVerticalScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxStyledTextCtrl * _arg0;
+ bool _arg1;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ int tempbool1;
+ char *_kwnames[] = { "self","show", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_HomeDisplay",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetUseVerticalScrollBar",_kwnames,&_argo0,&tempbool1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HomeDisplay. Expected _wxStyledTextCtrl_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetUseVerticalScrollBar. Expected _wxStyledTextCtrl_p.");
return NULL;
}
}
+ _arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxStyledTextCtrl_HomeDisplay(_arg0);
+ wxStyledTextCtrl_SetUseVerticalScrollBar(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
@@ -7237,76 +7503,422 @@ static PyObject *_wrap_wxStyledTextCtrl_HomeDisplay(PyObject *self, PyObject *ar
return _resultobj;
}
-#define wxStyledTextCtrl_HomeDisplayExtend(_swigobj) (_swigobj->HomeDisplayExtend())
-static PyObject *_wrap_wxStyledTextCtrl_HomeDisplayExtend(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStyledTextCtrl_GetUseVerticalScrollBar(_swigobj) (_swigobj->GetUseVerticalScrollBar())
+static PyObject *_wrap_wxStyledTextCtrl_GetUseVerticalScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
+ bool _result;
wxStyledTextCtrl * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_HomeDisplayExtend",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetUseVerticalScrollBar",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HomeDisplayExtend. Expected _wxStyledTextCtrl_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetUseVerticalScrollBar. Expected _wxStyledTextCtrl_p.");
return NULL;
}
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxStyledTextCtrl_HomeDisplayExtend(_arg0);
+ _result = (bool )wxStyledTextCtrl_GetUseVerticalScrollBar(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
+} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
-#define wxStyledTextCtrl_LineEndDisplay(_swigobj) (_swigobj->LineEndDisplay())
-static PyObject *_wrap_wxStyledTextCtrl_LineEndDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStyledTextCtrl_AppendText(_swigobj,_swigarg0,_swigarg1) (_swigobj->AppendText(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxStyledTextCtrl * _arg0;
+ int _arg1;
+ wxString * _arg2;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","length","text", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineEndDisplay",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_AppendText",_kwnames,&_argo0,&_arg1,&_obj2))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineEndDisplay. Expected _wxStyledTextCtrl_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AppendText. Expected _wxStyledTextCtrl_p.");
return NULL;
}
}
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxStyledTextCtrl_LineEndDisplay(_arg0);
+ wxStyledTextCtrl_AppendText(_arg0,_arg1,*_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
+{
+ if (_obj2)
+ delete _arg2;
+}
return _resultobj;
}
-#define wxStyledTextCtrl_LineEndDisplayExtend(_swigobj) (_swigobj->LineEndDisplayExtend())
-static PyObject *_wrap_wxStyledTextCtrl_LineEndDisplayExtend(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxStyledTextCtrl_GetTwoPhaseDraw(_swigobj) (_swigobj->GetTwoPhaseDraw())
+static PyObject *_wrap_wxStyledTextCtrl_GetTwoPhaseDraw(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
+ bool _result;
wxStyledTextCtrl * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineEndDisplayExtend",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetTwoPhaseDraw",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineEndDisplayExtend. Expected _wxStyledTextCtrl_p.");
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetTwoPhaseDraw. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxStyledTextCtrl_GetTwoPhaseDraw(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetTwoPhaseDraw(_swigobj,_swigarg0) (_swigobj->SetTwoPhaseDraw(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SetTwoPhaseDraw(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ char *_kwnames[] = { "self","twoPhase", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetTwoPhaseDraw",_kwnames,&_argo0,&tempbool1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetTwoPhaseDraw. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetTwoPhaseDraw(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_TargetFromSelection(_swigobj) (_swigobj->TargetFromSelection())
+static PyObject *_wrap_wxStyledTextCtrl_TargetFromSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_TargetFromSelection",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_TargetFromSelection. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_TargetFromSelection(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LinesJoin(_swigobj) (_swigobj->LinesJoin())
+static PyObject *_wrap_wxStyledTextCtrl_LinesJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LinesJoin",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LinesJoin. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_LinesJoin(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LinesSplit(_swigobj,_swigarg0) (_swigobj->LinesSplit(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_LinesSplit(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","pixelWidth", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_LinesSplit",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LinesSplit. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_LinesSplit(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetFoldMarginColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetFoldMarginColour(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_SetFoldMarginColour(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","useSetting","back", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetFoldMarginColour",_kwnames,&_argo0,&tempbool1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetFoldMarginColour. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetFoldMarginColour(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetFoldMarginHiColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetFoldMarginHiColour(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_SetFoldMarginHiColour(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","useSetting","fore", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetFoldMarginHiColour",_kwnames,&_argo0,&tempbool1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetFoldMarginHiColour. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetFoldMarginHiColour(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LineDuplicate(_swigobj) (_swigobj->LineDuplicate())
+static PyObject *_wrap_wxStyledTextCtrl_LineDuplicate(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineDuplicate",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineDuplicate. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_LineDuplicate(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_HomeDisplay(_swigobj) (_swigobj->HomeDisplay())
+static PyObject *_wrap_wxStyledTextCtrl_HomeDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_HomeDisplay",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HomeDisplay. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_HomeDisplay(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_HomeDisplayExtend(_swigobj) (_swigobj->HomeDisplayExtend())
+static PyObject *_wrap_wxStyledTextCtrl_HomeDisplayExtend(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_HomeDisplayExtend",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HomeDisplayExtend. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_HomeDisplayExtend(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LineEndDisplay(_swigobj) (_swigobj->LineEndDisplay())
+static PyObject *_wrap_wxStyledTextCtrl_LineEndDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineEndDisplay",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineEndDisplay. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_LineEndDisplay(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LineEndDisplayExtend(_swigobj) (_swigobj->LineEndDisplayExtend())
+static PyObject *_wrap_wxStyledTextCtrl_LineEndDisplayExtend(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LineEndDisplayExtend",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineEndDisplayExtend. Expected _wxStyledTextCtrl_p.");
return NULL;
}
}
@@ -8739,6 +9351,34 @@ static PyObject *_wrap_wxStyledTextCtrl_GetXOffset(PyObject *self, PyObject *arg
return _resultobj;
}
+#define wxStyledTextCtrl_ChooseCaretX(_swigobj) (_swigobj->ChooseCaretX())
+static PyObject *_wrap_wxStyledTextCtrl_ChooseCaretX(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_ChooseCaretX",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ChooseCaretX. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_ChooseCaretX(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_SetXCaretPolicy(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetXCaretPolicy(_swigarg0,_swigarg1))
static PyObject *_wrap_wxStyledTextCtrl_SetXCaretPolicy(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -8799,6 +9439,172 @@ static PyObject *_wrap_wxStyledTextCtrl_SetYCaretPolicy(PyObject *self, PyObject
return _resultobj;
}
+#define wxStyledTextCtrl_SetPrintWrapMode(_swigobj,_swigarg0) (_swigobj->SetPrintWrapMode(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SetPrintWrapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","mode", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetPrintWrapMode",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetPrintWrapMode. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetPrintWrapMode(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_GetPrintWrapMode(_swigobj) (_swigobj->GetPrintWrapMode())
+static PyObject *_wrap_wxStyledTextCtrl_GetPrintWrapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxStyledTextCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetPrintWrapMode",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetPrintWrapMode. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxStyledTextCtrl_GetPrintWrapMode(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetHotspotActiveForeground(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHotspotActiveForeground(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_SetHotspotActiveForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","useSetting","fore", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetHotspotActiveForeground",_kwnames,&_argo0,&tempbool1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetHotspotActiveForeground. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetHotspotActiveForeground(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetHotspotActiveBackground(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHotspotActiveBackground(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxStyledTextCtrl_SetHotspotActiveBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ wxColour * _arg2;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","useSetting","back", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetHotspotActiveBackground",_kwnames,&_argo0,&tempbool1,&_obj2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetHotspotActiveBackground. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetHotspotActiveBackground(_arg0,_arg1,*_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_SetHotspotActiveUnderline(_swigobj,_swigarg0) (_swigobj->SetHotspotActiveUnderline(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SetHotspotActiveUnderline(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxStyledTextCtrl * _arg0;
+ bool _arg1;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ char *_kwnames[] = { "self","underline", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetHotspotActiveUnderline",_kwnames,&_argo0,&tempbool1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetHotspotActiveUnderline. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxStyledTextCtrl_SetHotspotActiveUnderline(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxStyledTextCtrl_StartRecord(_swigobj) (_swigobj->StartRecord())
static PyObject *_wrap_wxStyledTextCtrl_StartRecord(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -9586,6 +10392,84 @@ static PyObject *_wrap_wxStyledTextCtrl_SetLastKeydownProcessed(PyObject *self,
return _resultobj;
}
+#define wxStyledTextCtrl_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxStyledTextCtrl * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","filename", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_SaveFile",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SaveFile. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxStyledTextCtrl_SaveFile(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
+#define wxStyledTextCtrl_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
+static PyObject *_wrap_wxStyledTextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxStyledTextCtrl * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","filename", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_LoadFile",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LoadFile. Expected _wxStyledTextCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxStyledTextCtrl_LoadFile(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
static void *SwigwxStyledTextEventTowxCommandEvent(void *ptr) {
wxStyledTextEvent *src;
wxCommandEvent *dest;
@@ -11012,6 +11896,8 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextEvent_SetPosition", (PyCFunction) _wrap_wxStyledTextEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
{ "delete_wxStyledTextEvent", (PyCFunction) _wrap_delete_wxStyledTextEvent, METH_VARARGS | METH_KEYWORDS },
{ "new_wxStyledTextEvent", (PyCFunction) _wrap_new_wxStyledTextEvent, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_LoadFile", (PyCFunction) _wrap_wxStyledTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SaveFile", (PyCFunction) _wrap_wxStyledTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetLastKeydownProcessed", (PyCFunction) _wrap_wxStyledTextCtrl_SetLastKeydownProcessed, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetLastKeydownProcessed", (PyCFunction) _wrap_wxStyledTextCtrl_GetLastKeydownProcessed, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetHScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_SetHScrollBar, METH_VARARGS | METH_KEYWORDS },
@@ -11035,8 +11921,14 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetLexer", (PyCFunction) _wrap_wxStyledTextCtrl_SetLexer, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StopRecord", (PyCFunction) _wrap_wxStyledTextCtrl_StopRecord, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StartRecord", (PyCFunction) _wrap_wxStyledTextCtrl_StartRecord, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetHotspotActiveUnderline", (PyCFunction) _wrap_wxStyledTextCtrl_SetHotspotActiveUnderline, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetHotspotActiveBackground", (PyCFunction) _wrap_wxStyledTextCtrl_SetHotspotActiveBackground, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetHotspotActiveForeground", (PyCFunction) _wrap_wxStyledTextCtrl_SetHotspotActiveForeground, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_GetPrintWrapMode", (PyCFunction) _wrap_wxStyledTextCtrl_GetPrintWrapMode, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetPrintWrapMode", (PyCFunction) _wrap_wxStyledTextCtrl_SetPrintWrapMode, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetYCaretPolicy", (PyCFunction) _wrap_wxStyledTextCtrl_SetYCaretPolicy, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetXCaretPolicy", (PyCFunction) _wrap_wxStyledTextCtrl_SetXCaretPolicy, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_ChooseCaretX", (PyCFunction) _wrap_wxStyledTextCtrl_ChooseCaretX, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetXOffset", (PyCFunction) _wrap_wxStyledTextCtrl_GetXOffset, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetXOffset", (PyCFunction) _wrap_wxStyledTextCtrl_SetXOffset, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_DelLineRight", (PyCFunction) _wrap_wxStyledTextCtrl_DelLineRight, METH_VARARGS | METH_KEYWORDS },
@@ -11088,6 +11980,17 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_LineEndDisplay", (PyCFunction) _wrap_wxStyledTextCtrl_LineEndDisplay, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_HomeDisplayExtend", (PyCFunction) _wrap_wxStyledTextCtrl_HomeDisplayExtend, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_HomeDisplay", (PyCFunction) _wrap_wxStyledTextCtrl_HomeDisplay, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_LineDuplicate", (PyCFunction) _wrap_wxStyledTextCtrl_LineDuplicate, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetFoldMarginHiColour", (PyCFunction) _wrap_wxStyledTextCtrl_SetFoldMarginHiColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetFoldMarginColour", (PyCFunction) _wrap_wxStyledTextCtrl_SetFoldMarginColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_LinesSplit", (PyCFunction) _wrap_wxStyledTextCtrl_LinesSplit, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_LinesJoin", (PyCFunction) _wrap_wxStyledTextCtrl_LinesJoin, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_TargetFromSelection", (PyCFunction) _wrap_wxStyledTextCtrl_TargetFromSelection, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetTwoPhaseDraw", (PyCFunction) _wrap_wxStyledTextCtrl_SetTwoPhaseDraw, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_GetTwoPhaseDraw", (PyCFunction) _wrap_wxStyledTextCtrl_GetTwoPhaseDraw, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_AppendText", (PyCFunction) _wrap_wxStyledTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_GetUseVerticalScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_GetUseVerticalScrollBar, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_SetUseVerticalScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_SetUseVerticalScrollBar, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_TextHeight", (PyCFunction) _wrap_wxStyledTextCtrl_TextHeight, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetEndAtLastLine", (PyCFunction) _wrap_wxStyledTextCtrl_GetEndAtLastLine, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetEndAtLastLine", (PyCFunction) _wrap_wxStyledTextCtrl_SetEndAtLastLine, METH_VARARGS | METH_KEYWORDS },
@@ -11121,6 +12024,8 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetFoldLevel", (PyCFunction) _wrap_wxStyledTextCtrl_SetFoldLevel, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_DocLineFromVisible", (PyCFunction) _wrap_wxStyledTextCtrl_DocLineFromVisible, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_VisibleFromDocLine", (PyCFunction) _wrap_wxStyledTextCtrl_VisibleFromDocLine, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_CallTipSetForegroundHighlight", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetForegroundHighlight, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_CallTipSetForeground", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetForeground, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_CallTipSetBackground", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetBackground, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_CallTipSetHighlight", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetHighlight, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_CallTipPosAtStart", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipPosAtStart, METH_VARARGS | METH_KEYWORDS },
@@ -11198,6 +12103,10 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetUseTabs", (PyCFunction) _wrap_wxStyledTextCtrl_SetUseTabs, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetIndent", (PyCFunction) _wrap_wxStyledTextCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetIndent", (PyCFunction) _wrap_wxStyledTextCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_AutoCompSetTypeSeparator", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompSetTypeSeparator, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_AutoCompGetTypeSeparator", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetTypeSeparator, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_ClearRegisteredImages", (PyCFunction) _wrap_wxStyledTextCtrl_ClearRegisteredImages, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_RegisterImage", (PyCFunction) _wrap_wxStyledTextCtrl_RegisterImage, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_AutoCompGetDropRestOfWord", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetDropRestOfWord, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_AutoCompSetDropRestOfWord", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompSetDropRestOfWord, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_AutoCompGetAutoHide", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetAutoHide, METH_VARARGS | METH_KEYWORDS },
@@ -11248,6 +12157,7 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetCaretForeground", (PyCFunction) _wrap_wxStyledTextCtrl_SetCaretForeground, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetSelBackground", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelBackground, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetSelForeground", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelForeground, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_StyleSetHotSpot", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetHotSpot, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StyleSetCharacterSet", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetCharacterSet, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StyleSetCase", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetCase, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_StyleSetUnderline", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetUnderline, METH_VARARGS | METH_KEYWORDS },
@@ -11268,6 +12178,7 @@ static PyMethodDef stc_cMethods[] = {
{ "wxStyledTextCtrl_SetMarginWidth", (PyCFunction) _wrap_wxStyledTextCtrl_SetMarginWidth, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_GetMarginType", (PyCFunction) _wrap_wxStyledTextCtrl_GetMarginType, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_SetMarginType", (PyCFunction) _wrap_wxStyledTextCtrl_SetMarginType, METH_VARARGS | METH_KEYWORDS },
+ { "wxStyledTextCtrl_MarkerDefineBitmap", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerDefineBitmap, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_MarkerPrevious", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerPrevious, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_MarkerNext", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerNext, METH_VARARGS | METH_KEYWORDS },
{ "wxStyledTextCtrl_MarkerGet", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerGet, METH_VARARGS | METH_KEYWORDS },
@@ -11455,6 +12366,7 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_EOL_CR", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_EOL_LF", PyInt_FromLong((long) 2));
PyDict_SetItemString(d,"wxSTC_CP_UTF8", PyInt_FromLong((long) 65001));
+ PyDict_SetItemString(d,"wxSTC_CP_DBCS", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_MARKER_MAX", PyInt_FromLong((long) 31));
PyDict_SetItemString(d,"wxSTC_MARK_CIRCLE", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_MARK_ROUNDRECT", PyInt_FromLong((long) 1));
@@ -11481,6 +12393,7 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_MARK_BACKGROUND", PyInt_FromLong((long) 22));
PyDict_SetItemString(d,"wxSTC_MARK_DOTDOTDOT", PyInt_FromLong((long) 23));
PyDict_SetItemString(d,"wxSTC_MARK_ARROWS", PyInt_FromLong((long) 24));
+ PyDict_SetItemString(d,"wxSTC_MARK_PIXMAP", PyInt_FromLong((long) 25));
PyDict_SetItemString(d,"wxSTC_MARK_CHARACTER", PyInt_FromLong((long) 10000));
PyDict_SetItemString(d,"wxSTC_MARKNUM_FOLDEREND", PyInt_FromLong((long) 25));
PyDict_SetItemString(d,"wxSTC_MARKNUM_FOLDEROPENMID", PyInt_FromLong((long) 26));
@@ -11541,10 +12454,21 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_FIND_MATCHCASE", PyInt_FromLong((long) 4));
PyDict_SetItemString(d,"wxSTC_FIND_WORDSTART", PyInt_FromLong((long) 0x00100000));
PyDict_SetItemString(d,"wxSTC_FIND_REGEXP", PyInt_FromLong((long) 0x00200000));
+ PyDict_SetItemString(d,"wxSTC_FIND_POSIX", PyInt_FromLong((long) 0x00400000));
PyDict_SetItemString(d,"wxSTC_FOLDLEVELBASE", PyInt_FromLong((long) 0x400));
PyDict_SetItemString(d,"wxSTC_FOLDLEVELWHITEFLAG", PyInt_FromLong((long) 0x1000));
PyDict_SetItemString(d,"wxSTC_FOLDLEVELHEADERFLAG", PyInt_FromLong((long) 0x2000));
+ PyDict_SetItemString(d,"wxSTC_FOLDLEVELBOXHEADERFLAG", PyInt_FromLong((long) 0x4000));
+ PyDict_SetItemString(d,"wxSTC_FOLDLEVELBOXFOOTERFLAG", PyInt_FromLong((long) 0x8000));
+ PyDict_SetItemString(d,"wxSTC_FOLDLEVELCONTRACTED", PyInt_FromLong((long) 0x10000));
+ PyDict_SetItemString(d,"wxSTC_FOLDLEVELUNINDENT", PyInt_FromLong((long) 0x20000));
PyDict_SetItemString(d,"wxSTC_FOLDLEVELNUMBERMASK", PyInt_FromLong((long) 0x0FFF));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED", PyInt_FromLong((long) 0x0002));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED", PyInt_FromLong((long) 0x0004));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LINEAFTER_EXPANDED", PyInt_FromLong((long) 0x0008));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED", PyInt_FromLong((long) 0x0010));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_LEVELNUMBERS", PyInt_FromLong((long) 0x0040));
+ PyDict_SetItemString(d,"wxSTC_FOLDFLAG_BOX", PyInt_FromLong((long) 0x0001));
PyDict_SetItemString(d,"wxSTC_TIME_FOREVER", PyInt_FromLong((long) 10000000));
PyDict_SetItemString(d,"wxSTC_WRAP_NONE", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_WRAP_WORD", PyInt_FromLong((long) 1));
@@ -11556,7 +12480,7 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_EDGE_LINE", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_EDGE_BACKGROUND", PyInt_FromLong((long) 2));
PyDict_SetItemString(d,"wxSTC_CURSORNORMAL", PyInt_FromLong((long) -1));
- PyDict_SetItemString(d,"wxSTC_CURSORWAIT", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_CURSORWAIT", PyInt_FromLong((long) 4));
PyDict_SetItemString(d,"wxSTC_VISIBLE_SLOP", PyInt_FromLong((long) 0x01));
PyDict_SetItemString(d,"wxSTC_VISIBLE_STRICT", PyInt_FromLong((long) 0x04));
PyDict_SetItemString(d,"wxSTC_CARET_SLOP", PyInt_FromLong((long) 0x01));
@@ -11629,6 +12553,12 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_LEX_BAAN", PyInt_FromLong((long) 31));
PyDict_SetItemString(d,"wxSTC_LEX_MATLAB", PyInt_FromLong((long) 32));
PyDict_SetItemString(d,"wxSTC_LEX_SCRIPTOL", PyInt_FromLong((long) 33));
+ PyDict_SetItemString(d,"wxSTC_LEX_ASM", PyInt_FromLong((long) 34));
+ PyDict_SetItemString(d,"wxSTC_LEX_CPPNOCASE", PyInt_FromLong((long) 35));
+ PyDict_SetItemString(d,"wxSTC_LEX_FORTRAN", PyInt_FromLong((long) 36));
+ PyDict_SetItemString(d,"wxSTC_LEX_F77", PyInt_FromLong((long) 37));
+ PyDict_SetItemString(d,"wxSTC_LEX_CSS", PyInt_FromLong((long) 38));
+ PyDict_SetItemString(d,"wxSTC_LEX_POV", PyInt_FromLong((long) 39));
PyDict_SetItemString(d,"wxSTC_LEX_AUTOMATIC", PyInt_FromLong((long) 1000));
PyDict_SetItemString(d,"wxSTC_P_DEFAULT", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_P_COMMENTLINE", PyInt_FromLong((long) 1));
@@ -11854,6 +12784,9 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_ERR_DIFF_ADDITION", PyInt_FromLong((long) 11));
PyDict_SetItemString(d,"wxSTC_ERR_DIFF_DELETION", PyInt_FromLong((long) 12));
PyDict_SetItemString(d,"wxSTC_ERR_DIFF_MESSAGE", PyInt_FromLong((long) 13));
+ PyDict_SetItemString(d,"wxSTC_ERR_PHP", PyInt_FromLong((long) 14));
+ PyDict_SetItemString(d,"wxSTC_ERR_ELF", PyInt_FromLong((long) 15));
+ PyDict_SetItemString(d,"wxSTC_ERR_IFC", PyInt_FromLong((long) 16));
PyDict_SetItemString(d,"wxSTC_BAT_DEFAULT", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_BAT_COMMENT", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_BAT_WORD", PyInt_FromLong((long) 2));
@@ -11890,22 +12823,29 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_AVE_COMMENT", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_AVE_NUMBER", PyInt_FromLong((long) 2));
PyDict_SetItemString(d,"wxSTC_AVE_WORD", PyInt_FromLong((long) 3));
- PyDict_SetItemString(d,"wxSTC_AVE_KEYWORD", PyInt_FromLong((long) 4));
- PyDict_SetItemString(d,"wxSTC_AVE_STATEMENT", PyInt_FromLong((long) 5));
PyDict_SetItemString(d,"wxSTC_AVE_STRING", PyInt_FromLong((long) 6));
PyDict_SetItemString(d,"wxSTC_AVE_ENUM", PyInt_FromLong((long) 7));
PyDict_SetItemString(d,"wxSTC_AVE_STRINGEOL", PyInt_FromLong((long) 8));
PyDict_SetItemString(d,"wxSTC_AVE_IDENTIFIER", PyInt_FromLong((long) 9));
PyDict_SetItemString(d,"wxSTC_AVE_OPERATOR", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD1", PyInt_FromLong((long) 11));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD2", PyInt_FromLong((long) 12));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD3", PyInt_FromLong((long) 13));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD4", PyInt_FromLong((long) 14));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD5", PyInt_FromLong((long) 15));
+ PyDict_SetItemString(d,"wxSTC_AVE_WORD6", PyInt_FromLong((long) 16));
PyDict_SetItemString(d,"wxSTC_ADA_DEFAULT", PyInt_FromLong((long) 0));
- PyDict_SetItemString(d,"wxSTC_ADA_COMMENT", PyInt_FromLong((long) 1));
- PyDict_SetItemString(d,"wxSTC_ADA_NUMBER", PyInt_FromLong((long) 2));
- PyDict_SetItemString(d,"wxSTC_ADA_WORD", PyInt_FromLong((long) 3));
- PyDict_SetItemString(d,"wxSTC_ADA_STRING", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_ADA_WORD", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_ADA_IDENTIFIER", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_ADA_NUMBER", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_ADA_DELIMITER", PyInt_FromLong((long) 4));
PyDict_SetItemString(d,"wxSTC_ADA_CHARACTER", PyInt_FromLong((long) 5));
- PyDict_SetItemString(d,"wxSTC_ADA_OPERATOR", PyInt_FromLong((long) 6));
- PyDict_SetItemString(d,"wxSTC_ADA_IDENTIFIER", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_ADA_CHARACTEREOL", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_ADA_STRING", PyInt_FromLong((long) 7));
PyDict_SetItemString(d,"wxSTC_ADA_STRINGEOL", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_ADA_LABEL", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_ADA_COMMENTLINE", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_ADA_ILLEGAL", PyInt_FromLong((long) 11));
PyDict_SetItemString(d,"wxSTC_BAAN_DEFAULT", PyInt_FromLong((long) 0));
PyDict_SetItemString(d,"wxSTC_BAAN_COMMENT", PyInt_FromLong((long) 1));
PyDict_SetItemString(d,"wxSTC_BAAN_COMMENTDOC", PyInt_FromLong((long) 2));
@@ -11973,6 +12913,58 @@ 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,"wxSTC_ASM_DEFAULT", PyInt_FromLong((long) 0));
+ PyDict_SetItemString(d,"wxSTC_ASM_COMMENT", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_ASM_NUMBER", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_ASM_STRING", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_ASM_OPERATOR", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_ASM_IDENTIFIER", PyInt_FromLong((long) 5));
+ PyDict_SetItemString(d,"wxSTC_ASM_CPUINSTRUCTION", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_ASM_MATHINSTRUCTION", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_ASM_REGISTER", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_ASM_DIRECTIVE", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_ASM_DIRECTIVEOPERAND", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_F_DEFAULT", PyInt_FromLong((long) 0));
+ PyDict_SetItemString(d,"wxSTC_F_COMMENT", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_F_NUMBER", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_F_STRING1", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_F_STRING2", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_F_STRINGEOL", PyInt_FromLong((long) 5));
+ PyDict_SetItemString(d,"wxSTC_F_OPERATOR", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_F_IDENTIFIER", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_F_WORD", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_F_WORD2", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_F_WORD3", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_F_PREPROCESSOR", PyInt_FromLong((long) 11));
+ PyDict_SetItemString(d,"wxSTC_F_OPERATOR2", PyInt_FromLong((long) 12));
+ PyDict_SetItemString(d,"wxSTC_F_LABEL", PyInt_FromLong((long) 13));
+ PyDict_SetItemString(d,"wxSTC_F_CONTINUATION", PyInt_FromLong((long) 14));
+ PyDict_SetItemString(d,"wxSTC_CSS_DEFAULT", PyInt_FromLong((long) 0));
+ PyDict_SetItemString(d,"wxSTC_CSS_TAG", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_CSS_CLASS", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_CSS_PSEUDOCLASS", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_CSS_UNKNOWN_PSEUDOCLASS", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_CSS_OPERATOR", PyInt_FromLong((long) 5));
+ PyDict_SetItemString(d,"wxSTC_CSS_IDENTIFIER", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_CSS_UNKNOWN_IDENTIFIER", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_CSS_VALUE", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_CSS_COMMENT", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_CSS_ID", PyInt_FromLong((long) 10));
+ PyDict_SetItemString(d,"wxSTC_CSS_IMPORTANT", PyInt_FromLong((long) 11));
+ PyDict_SetItemString(d,"wxSTC_CSS_DIRECTIVE", PyInt_FromLong((long) 12));
+ PyDict_SetItemString(d,"wxSTC_CSS_DOUBLESTRING", PyInt_FromLong((long) 13));
+ PyDict_SetItemString(d,"wxSTC_CSS_SINGLESTRING", PyInt_FromLong((long) 14));
+ PyDict_SetItemString(d,"wxSTC_POV_DEFAULT", PyInt_FromLong((long) 0));
+ PyDict_SetItemString(d,"wxSTC_POV_COMMENT", PyInt_FromLong((long) 1));
+ PyDict_SetItemString(d,"wxSTC_POV_COMMENTLINE", PyInt_FromLong((long) 2));
+ PyDict_SetItemString(d,"wxSTC_POV_COMMENTDOC", PyInt_FromLong((long) 3));
+ PyDict_SetItemString(d,"wxSTC_POV_NUMBER", PyInt_FromLong((long) 4));
+ PyDict_SetItemString(d,"wxSTC_POV_WORD", PyInt_FromLong((long) 5));
+ PyDict_SetItemString(d,"wxSTC_POV_STRING", PyInt_FromLong((long) 6));
+ PyDict_SetItemString(d,"wxSTC_POV_OPERATOR", PyInt_FromLong((long) 7));
+ PyDict_SetItemString(d,"wxSTC_POV_IDENTIFIER", PyInt_FromLong((long) 8));
+ PyDict_SetItemString(d,"wxSTC_POV_BRACE", PyInt_FromLong((long) 9));
+ PyDict_SetItemString(d,"wxSTC_POV_WORD2", PyInt_FromLong((long) 10));
PyDict_SetItemString(d,"wxSTC_CMD_REDO", PyInt_FromLong((long) 2011));
PyDict_SetItemString(d,"wxSTC_CMD_SELECTALL", PyInt_FromLong((long) 2013));
PyDict_SetItemString(d,"wxSTC_CMD_UNDO", PyInt_FromLong((long) 2176));
@@ -12020,6 +13012,7 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_CMD_LINECUT", PyInt_FromLong((long) 2337));
PyDict_SetItemString(d,"wxSTC_CMD_LINEDELETE", PyInt_FromLong((long) 2338));
PyDict_SetItemString(d,"wxSTC_CMD_LINETRANSPOSE", PyInt_FromLong((long) 2339));
+ PyDict_SetItemString(d,"wxSTC_CMD_LINEDUPLICATE", PyInt_FromLong((long) 2404));
PyDict_SetItemString(d,"wxSTC_CMD_LOWERCASE", PyInt_FromLong((long) 2340));
PyDict_SetItemString(d,"wxSTC_CMD_UPPERCASE", PyInt_FromLong((long) 2341));
PyDict_SetItemString(d,"wxSTC_CMD_LINESCROLLDOWN", PyInt_FromLong((long) 2342));
@@ -12029,12 +13022,22 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxSTC_CMD_HOMEDISPLAYEXTEND", PyInt_FromLong((long) 2346));
PyDict_SetItemString(d,"wxSTC_CMD_LINEENDDISPLAY", PyInt_FromLong((long) 2347));
PyDict_SetItemString(d,"wxSTC_CMD_LINEENDDISPLAYEXTEND", PyInt_FromLong((long) 2348));
+ PyDict_SetItemString(d,"wxSTC_CMD_HOMEWRAP", PyInt_FromLong((long) 2349));
+ PyDict_SetItemString(d,"wxSTC_CMD_HOMEWRAPEXTEND", PyInt_FromLong((long) 2450));
+ PyDict_SetItemString(d,"wxSTC_CMD_LINEENDWRAP", PyInt_FromLong((long) 2451));
+ PyDict_SetItemString(d,"wxSTC_CMD_LINEENDWRAPEXTEND", PyInt_FromLong((long) 2452));
+ PyDict_SetItemString(d,"wxSTC_CMD_VCHOMEWRAP", PyInt_FromLong((long) 2453));
+ PyDict_SetItemString(d,"wxSTC_CMD_VCHOMEWRAPEXTEND", PyInt_FromLong((long) 2454));
PyDict_SetItemString(d,"wxSTC_CMD_WORDPARTLEFT", PyInt_FromLong((long) 2390));
PyDict_SetItemString(d,"wxSTC_CMD_WORDPARTLEFTEXTEND", PyInt_FromLong((long) 2391));
PyDict_SetItemString(d,"wxSTC_CMD_WORDPARTRIGHT", PyInt_FromLong((long) 2392));
PyDict_SetItemString(d,"wxSTC_CMD_WORDPARTRIGHTEXTEND", PyInt_FromLong((long) 2393));
PyDict_SetItemString(d,"wxSTC_CMD_DELLINELEFT", PyInt_FromLong((long) 2395));
PyDict_SetItemString(d,"wxSTC_CMD_DELLINERIGHT", PyInt_FromLong((long) 2396));
+ PyDict_SetItemString(d,"wxSTC_CMD_PARADOWN", PyInt_FromLong((long) 2413));
+ PyDict_SetItemString(d,"wxSTC_CMD_PARADOWNEXTEND", PyInt_FromLong((long) 2414));
+ PyDict_SetItemString(d,"wxSTC_CMD_PARAUP", PyInt_FromLong((long) 2415));
+ PyDict_SetItemString(d,"wxSTC_CMD_PARAUPEXTEND", PyInt_FromLong((long) 2416));
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));
@@ -12059,6 +13062,9 @@ SWIGEXPORT(void) initstc_c() {
PyDict_SetItemString(d,"wxEVT_STC_DRAG_OVER", PyInt_FromLong((long) wxEVT_STC_DRAG_OVER));
PyDict_SetItemString(d,"wxEVT_STC_DO_DROP", PyInt_FromLong((long) wxEVT_STC_DO_DROP));
PyDict_SetItemString(d,"wxEVT_STC_ZOOM", PyInt_FromLong((long) wxEVT_STC_ZOOM));
+ PyDict_SetItemString(d,"wxEVT_STC_HOTSPOT_CLICK", PyInt_FromLong((long) wxEVT_STC_HOTSPOT_CLICK));
+ PyDict_SetItemString(d,"wxEVT_STC_HOTSPOT_DCLICK", PyInt_FromLong((long) wxEVT_STC_HOTSPOT_DCLICK));
+ PyDict_SetItemString(d,"wxEVT_STC_CALLTIP_CLICK", PyInt_FromLong((long) wxEVT_STC_CALLTIP_CLICK));
wxClassInfo::CleanUpClasses();
diff --git a/wxPython/contrib/stc/msw/stc_.py b/wxPython/contrib/stc/msw/stc_.py
index a3a4fef4a9..93e7f892ef 100644
--- a/wxPython/contrib/stc/msw/stc_.py
+++ b/wxPython/contrib/stc/msw/stc_.py
@@ -112,930 +112,1019 @@ def EVT_STC_DO_DROP(win, id, func):
def EVT_STC_ZOOM(win, id, func):
win.Connect(id, -1, wxEVT_STC_ZOOM, func)
+def EVT_STC_HOTSPOT_CLICK(win, id, func):
+ win.Connect(id, -1, wxEVT_STC_HOTSPOT_CLICK, func)
+
+def EVT_STC_HOTSPOT_DCLICK(win, id, func):
+ win.Connect(id, -1, wxEVT_STC_HOTSPOT_DCLICK, func)
+
+def EVT_STC_CALLTIP_CLICK(win, id, func):
+ win.Connect(id, -1, wxEVT_STC_CALLTIP_CLICK, func)
class wxStyledTextCtrlPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def AddText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AddText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AddText(self, *_args, **_kwargs)
return val
def AddStyledText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AddStyledText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AddStyledText(self, *_args, **_kwargs)
return val
def InsertText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_InsertText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_InsertText(self, *_args, **_kwargs)
return val
def ClearAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ClearAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ClearAll(self, *_args, **_kwargs)
return val
def ClearDocumentStyle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ClearDocumentStyle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ClearDocumentStyle(self, *_args, **_kwargs)
return val
def GetLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLength(self, *_args, **_kwargs)
return val
def GetCharAt(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCharAt,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCharAt(self, *_args, **_kwargs)
return val
def GetCurrentPos(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCurrentPos,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCurrentPos(self, *_args, **_kwargs)
return val
def GetAnchor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetAnchor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetAnchor(self, *_args, **_kwargs)
return val
def GetStyleAt(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetStyleAt,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetStyleAt(self, *_args, **_kwargs)
return val
def Redo(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Redo,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Redo(self, *_args, **_kwargs)
return val
def SetUndoCollection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetUndoCollection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetUndoCollection(self, *_args, **_kwargs)
return val
def SelectAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SelectAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SelectAll(self, *_args, **_kwargs)
return val
def SetSavePoint(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSavePoint,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSavePoint(self, *_args, **_kwargs)
return val
def GetStyledText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetStyledText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetStyledText(self, *_args, **_kwargs)
return val
def CanRedo(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CanRedo,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CanRedo(self, *_args, **_kwargs)
return val
def MarkerLineFromHandle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerLineFromHandle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerLineFromHandle(self, *_args, **_kwargs)
return val
def MarkerDeleteHandle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerDeleteHandle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerDeleteHandle(self, *_args, **_kwargs)
return val
def GetUndoCollection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetUndoCollection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetUndoCollection(self, *_args, **_kwargs)
return val
def GetViewWhiteSpace(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetViewWhiteSpace,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetViewWhiteSpace(self, *_args, **_kwargs)
return val
def SetViewWhiteSpace(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetViewWhiteSpace,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetViewWhiteSpace(self, *_args, **_kwargs)
return val
def PositionFromPoint(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_PositionFromPoint,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_PositionFromPoint(self, *_args, **_kwargs)
return val
def PositionFromPointClose(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_PositionFromPointClose,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_PositionFromPointClose(self, *_args, **_kwargs)
return val
def GotoLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GotoLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GotoLine(self, *_args, **_kwargs)
return val
def GotoPos(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GotoPos,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GotoPos(self, *_args, **_kwargs)
return val
def SetAnchor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetAnchor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetAnchor(self, *_args, **_kwargs)
return val
def GetCurLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCurLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCurLine(self, *_args, **_kwargs)
return val
def GetEndStyled(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEndStyled,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEndStyled(self, *_args, **_kwargs)
return val
def ConvertEOLs(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ConvertEOLs,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ConvertEOLs(self, *_args, **_kwargs)
return val
def GetEOLMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEOLMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEOLMode(self, *_args, **_kwargs)
return val
def SetEOLMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEOLMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEOLMode(self, *_args, **_kwargs)
return val
def StartStyling(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StartStyling,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StartStyling(self, *_args, **_kwargs)
return val
def SetStyling(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetStyling,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetStyling(self, *_args, **_kwargs)
return val
def GetBufferedDraw(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetBufferedDraw,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetBufferedDraw(self, *_args, **_kwargs)
return val
def SetBufferedDraw(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetBufferedDraw,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetBufferedDraw(self, *_args, **_kwargs)
return val
def SetTabWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetTabWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetTabWidth(self, *_args, **_kwargs)
return val
def GetTabWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTabWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTabWidth(self, *_args, **_kwargs)
return val
def SetCodePage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCodePage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCodePage(self, *_args, **_kwargs)
return val
def MarkerDefine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerDefine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerDefine(self, *_args, **_kwargs)
return val
def MarkerSetForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerSetForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerSetForeground(self, *_args, **_kwargs)
return val
def MarkerSetBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerSetBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerSetBackground(self, *_args, **_kwargs)
return val
def MarkerAdd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerAdd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerAdd(self, *_args, **_kwargs)
return val
def MarkerDelete(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerDelete,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerDelete(self, *_args, **_kwargs)
return val
def MarkerDeleteAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerDeleteAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerDeleteAll(self, *_args, **_kwargs)
return val
def MarkerGet(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerGet,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerGet(self, *_args, **_kwargs)
return val
def MarkerNext(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerNext,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerNext(self, *_args, **_kwargs)
return val
def MarkerPrevious(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MarkerPrevious,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MarkerPrevious(self, *_args, **_kwargs)
+ return val
+ def MarkerDefineBitmap(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_MarkerDefineBitmap(self, *_args, **_kwargs)
return val
def SetMarginType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginType(self, *_args, **_kwargs)
return val
def GetMarginType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginType(self, *_args, **_kwargs)
return val
def SetMarginWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginWidth(self, *_args, **_kwargs)
return val
def GetMarginWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginWidth(self, *_args, **_kwargs)
return val
def SetMarginMask(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginMask,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginMask(self, *_args, **_kwargs)
return val
def GetMarginMask(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginMask,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginMask(self, *_args, **_kwargs)
return val
def SetMarginSensitive(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginSensitive,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginSensitive(self, *_args, **_kwargs)
return val
def GetMarginSensitive(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginSensitive,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginSensitive(self, *_args, **_kwargs)
return val
def StyleClearAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleClearAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleClearAll(self, *_args, **_kwargs)
return val
def StyleSetForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetForeground(self, *_args, **_kwargs)
return val
def StyleSetBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetBackground(self, *_args, **_kwargs)
return val
def StyleSetBold(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetBold,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetBold(self, *_args, **_kwargs)
return val
def StyleSetItalic(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetItalic,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetItalic(self, *_args, **_kwargs)
return val
def StyleSetSize(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetSize,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetSize(self, *_args, **_kwargs)
return val
def StyleSetFaceName(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetFaceName,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetFaceName(self, *_args, **_kwargs)
return val
def StyleSetEOLFilled(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetEOLFilled,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetEOLFilled(self, *_args, **_kwargs)
return val
def StyleResetDefault(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleResetDefault,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleResetDefault(self, *_args, **_kwargs)
return val
def StyleSetUnderline(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetUnderline,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetUnderline(self, *_args, **_kwargs)
return val
def StyleSetCase(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetCase,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetCase(self, *_args, **_kwargs)
return val
def StyleSetCharacterSet(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetCharacterSet,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetCharacterSet(self, *_args, **_kwargs)
+ return val
+ def StyleSetHotSpot(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_StyleSetHotSpot(self, *_args, **_kwargs)
return val
def SetSelForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelForeground(self, *_args, **_kwargs)
return val
def SetSelBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelBackground(self, *_args, **_kwargs)
return val
def SetCaretForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretForeground(self, *_args, **_kwargs)
return val
def CmdKeyAssign(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CmdKeyAssign,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CmdKeyAssign(self, *_args, **_kwargs)
return val
def CmdKeyClear(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CmdKeyClear,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CmdKeyClear(self, *_args, **_kwargs)
return val
def CmdKeyClearAll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CmdKeyClearAll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CmdKeyClearAll(self, *_args, **_kwargs)
return val
def SetStyleBytes(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetStyleBytes,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetStyleBytes(self, *_args, **_kwargs)
return val
def StyleSetVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetVisible(self, *_args, **_kwargs)
return val
def GetCaretPeriod(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretPeriod,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretPeriod(self, *_args, **_kwargs)
return val
def SetCaretPeriod(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretPeriod,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretPeriod(self, *_args, **_kwargs)
return val
def SetWordChars(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetWordChars,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetWordChars(self, *_args, **_kwargs)
return val
def BeginUndoAction(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_BeginUndoAction,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_BeginUndoAction(self, *_args, **_kwargs)
return val
def EndUndoAction(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EndUndoAction,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EndUndoAction(self, *_args, **_kwargs)
return val
def IndicatorSetStyle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_IndicatorSetStyle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_IndicatorSetStyle(self, *_args, **_kwargs)
return val
def IndicatorGetStyle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_IndicatorGetStyle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_IndicatorGetStyle(self, *_args, **_kwargs)
return val
def IndicatorSetForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_IndicatorSetForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_IndicatorSetForeground(self, *_args, **_kwargs)
return val
def IndicatorGetForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_IndicatorGetForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_IndicatorGetForeground(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetWhitespaceForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetWhitespaceForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetWhitespaceForeground(self, *_args, **_kwargs)
return val
def SetWhitespaceBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetWhitespaceBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetWhitespaceBackground(self, *_args, **_kwargs)
return val
def SetStyleBits(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetStyleBits,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetStyleBits(self, *_args, **_kwargs)
return val
def GetStyleBits(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetStyleBits,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetStyleBits(self, *_args, **_kwargs)
return val
def SetLineState(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLineState,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLineState(self, *_args, **_kwargs)
return val
def GetLineState(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineState,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineState(self, *_args, **_kwargs)
return val
def GetMaxLineState(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMaxLineState,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMaxLineState(self, *_args, **_kwargs)
return val
def GetCaretLineVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretLineVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretLineVisible(self, *_args, **_kwargs)
return val
def SetCaretLineVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretLineVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretLineVisible(self, *_args, **_kwargs)
return val
def GetCaretLineBack(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretLineBack,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretLineBack(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetCaretLineBack(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretLineBack,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretLineBack(self, *_args, **_kwargs)
return val
def StyleSetChangeable(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetChangeable,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetChangeable(self, *_args, **_kwargs)
return val
def AutoCompShow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompShow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompShow(self, *_args, **_kwargs)
return val
def AutoCompCancel(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompCancel,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompCancel(self, *_args, **_kwargs)
return val
def AutoCompActive(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompActive,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompActive(self, *_args, **_kwargs)
return val
def AutoCompPosStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompPosStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompPosStart(self, *_args, **_kwargs)
return val
def AutoCompComplete(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompComplete,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompComplete(self, *_args, **_kwargs)
return val
def AutoCompStops(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompStops,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompStops(self, *_args, **_kwargs)
return val
def AutoCompSetSeparator(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetSeparator,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetSeparator(self, *_args, **_kwargs)
return val
def AutoCompGetSeparator(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetSeparator,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetSeparator(self, *_args, **_kwargs)
return val
def AutoCompSelect(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSelect,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSelect(self, *_args, **_kwargs)
return val
def AutoCompSetCancelAtStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetCancelAtStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetCancelAtStart(self, *_args, **_kwargs)
return val
def AutoCompGetCancelAtStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetCancelAtStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetCancelAtStart(self, *_args, **_kwargs)
return val
def AutoCompSetFillUps(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetFillUps,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetFillUps(self, *_args, **_kwargs)
return val
def AutoCompSetChooseSingle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetChooseSingle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetChooseSingle(self, *_args, **_kwargs)
return val
def AutoCompGetChooseSingle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetChooseSingle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetChooseSingle(self, *_args, **_kwargs)
return val
def AutoCompSetIgnoreCase(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetIgnoreCase,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetIgnoreCase(self, *_args, **_kwargs)
return val
def AutoCompGetIgnoreCase(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetIgnoreCase,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetIgnoreCase(self, *_args, **_kwargs)
return val
def UserListShow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_UserListShow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_UserListShow(self, *_args, **_kwargs)
return val
def AutoCompSetAutoHide(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetAutoHide,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetAutoHide(self, *_args, **_kwargs)
return val
def AutoCompGetAutoHide(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetAutoHide,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetAutoHide(self, *_args, **_kwargs)
return val
def AutoCompSetDropRestOfWord(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompSetDropRestOfWord,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompSetDropRestOfWord(self, *_args, **_kwargs)
return val
def AutoCompGetDropRestOfWord(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AutoCompGetDropRestOfWord,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AutoCompGetDropRestOfWord(self, *_args, **_kwargs)
+ return val
+ def RegisterImage(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_RegisterImage(self, *_args, **_kwargs)
+ return val
+ def ClearRegisteredImages(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_ClearRegisteredImages(self, *_args, **_kwargs)
+ return val
+ def AutoCompGetTypeSeparator(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_AutoCompGetTypeSeparator(self, *_args, **_kwargs)
+ return val
+ def AutoCompSetTypeSeparator(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_AutoCompSetTypeSeparator(self, *_args, **_kwargs)
return val
def SetIndent(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetIndent,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetIndent(self, *_args, **_kwargs)
return val
def GetIndent(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetIndent,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetIndent(self, *_args, **_kwargs)
return val
def SetUseTabs(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetUseTabs,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetUseTabs(self, *_args, **_kwargs)
return val
def GetUseTabs(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetUseTabs,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetUseTabs(self, *_args, **_kwargs)
return val
def SetLineIndentation(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLineIndentation,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLineIndentation(self, *_args, **_kwargs)
return val
def GetLineIndentation(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineIndentation,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineIndentation(self, *_args, **_kwargs)
return val
def GetLineIndentPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineIndentPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineIndentPosition(self, *_args, **_kwargs)
return val
def GetColumn(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetColumn,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetColumn(self, *_args, **_kwargs)
return val
def SetUseHorizontalScrollBar(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetUseHorizontalScrollBar,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetUseHorizontalScrollBar(self, *_args, **_kwargs)
return val
def GetUseHorizontalScrollBar(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetUseHorizontalScrollBar,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetUseHorizontalScrollBar(self, *_args, **_kwargs)
return val
def SetIndentationGuides(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetIndentationGuides,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetIndentationGuides(self, *_args, **_kwargs)
return val
def GetIndentationGuides(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetIndentationGuides,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetIndentationGuides(self, *_args, **_kwargs)
return val
def SetHighlightGuide(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetHighlightGuide,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetHighlightGuide(self, *_args, **_kwargs)
return val
def GetHighlightGuide(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetHighlightGuide,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetHighlightGuide(self, *_args, **_kwargs)
return val
def GetLineEndPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineEndPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineEndPosition(self, *_args, **_kwargs)
return val
def GetCodePage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCodePage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCodePage(self, *_args, **_kwargs)
return val
def GetCaretForeground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretForeground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretForeground(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetReadOnly(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetReadOnly,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetReadOnly(self, *_args, **_kwargs)
return val
def SetCurrentPos(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCurrentPos,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCurrentPos(self, *_args, **_kwargs)
return val
def SetSelectionStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelectionStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelectionStart(self, *_args, **_kwargs)
return val
def GetSelectionStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSelectionStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSelectionStart(self, *_args, **_kwargs)
return val
def SetSelectionEnd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelectionEnd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelectionEnd(self, *_args, **_kwargs)
return val
def GetSelectionEnd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSelectionEnd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSelectionEnd(self, *_args, **_kwargs)
return val
def SetPrintMagnification(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetPrintMagnification,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetPrintMagnification(self, *_args, **_kwargs)
return val
def GetPrintMagnification(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetPrintMagnification,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetPrintMagnification(self, *_args, **_kwargs)
return val
def SetPrintColourMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetPrintColourMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetPrintColourMode(self, *_args, **_kwargs)
return val
def GetPrintColourMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetPrintColourMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetPrintColourMode(self, *_args, **_kwargs)
return val
def FindText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_FindText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_FindText(self, *_args, **_kwargs)
return val
def FormatRange(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_FormatRange,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_FormatRange(self, *_args, **_kwargs)
return val
def GetFirstVisibleLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetFirstVisibleLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetFirstVisibleLine(self, *_args, **_kwargs)
return val
def GetLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLine(self, *_args, **_kwargs)
return val
def GetLineCount(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineCount,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineCount(self, *_args, **_kwargs)
return val
def SetMarginLeft(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginLeft,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginLeft(self, *_args, **_kwargs)
return val
def GetMarginLeft(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginLeft,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginLeft(self, *_args, **_kwargs)
return val
def SetMarginRight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMarginRight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMarginRight(self, *_args, **_kwargs)
return val
def GetMarginRight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMarginRight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMarginRight(self, *_args, **_kwargs)
return val
def GetModify(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetModify,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetModify(self, *_args, **_kwargs)
return val
def SetSelection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSelection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSelection(self, *_args, **_kwargs)
return val
def GetSelectedText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSelectedText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSelectedText(self, *_args, **_kwargs)
return val
def GetTextRange(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTextRange,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTextRange(self, *_args, **_kwargs)
return val
def HideSelection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_HideSelection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_HideSelection(self, *_args, **_kwargs)
return val
def LineFromPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineFromPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineFromPosition(self, *_args, **_kwargs)
return val
def PositionFromLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_PositionFromLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_PositionFromLine(self, *_args, **_kwargs)
return val
def LineScroll(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineScroll,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineScroll(self, *_args, **_kwargs)
return val
def EnsureCaretVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EnsureCaretVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EnsureCaretVisible(self, *_args, **_kwargs)
return val
def ReplaceSelection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ReplaceSelection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ReplaceSelection(self, *_args, **_kwargs)
return val
def SetReadOnly(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetReadOnly,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetReadOnly(self, *_args, **_kwargs)
return val
def CanPaste(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CanPaste,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CanPaste(self, *_args, **_kwargs)
return val
def CanUndo(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CanUndo,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CanUndo(self, *_args, **_kwargs)
return val
def EmptyUndoBuffer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EmptyUndoBuffer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EmptyUndoBuffer(self, *_args, **_kwargs)
return val
def Undo(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Undo,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Undo(self, *_args, **_kwargs)
return val
def Cut(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Cut,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Cut(self, *_args, **_kwargs)
return val
def Copy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Copy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Copy(self, *_args, **_kwargs)
return val
def Paste(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Paste,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Paste(self, *_args, **_kwargs)
return val
def Clear(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Clear,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Clear(self, *_args, **_kwargs)
return val
def SetText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetText(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetText(self, *_args, **_kwargs)
return val
def GetTextLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTextLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTextLength(self, *_args, **_kwargs)
return val
def SetOvertype(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetOvertype,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetOvertype(self, *_args, **_kwargs)
return val
def GetOvertype(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetOvertype,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetOvertype(self, *_args, **_kwargs)
return val
def SetCaretWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCaretWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCaretWidth(self, *_args, **_kwargs)
return val
def GetCaretWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCaretWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCaretWidth(self, *_args, **_kwargs)
return val
def SetTargetStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetTargetStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetTargetStart(self, *_args, **_kwargs)
return val
def GetTargetStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTargetStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTargetStart(self, *_args, **_kwargs)
return val
def SetTargetEnd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetTargetEnd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetTargetEnd(self, *_args, **_kwargs)
return val
def GetTargetEnd(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTargetEnd,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTargetEnd(self, *_args, **_kwargs)
return val
def ReplaceTarget(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ReplaceTarget,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ReplaceTarget(self, *_args, **_kwargs)
return val
def ReplaceTargetRE(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ReplaceTargetRE,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ReplaceTargetRE(self, *_args, **_kwargs)
return val
def SearchInTarget(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SearchInTarget,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SearchInTarget(self, *_args, **_kwargs)
return val
def SetSearchFlags(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSearchFlags,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSearchFlags(self, *_args, **_kwargs)
return val
def GetSearchFlags(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSearchFlags,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSearchFlags(self, *_args, **_kwargs)
return val
def CallTipShow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipShow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipShow(self, *_args, **_kwargs)
return val
def CallTipCancel(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipCancel,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipCancel(self, *_args, **_kwargs)
return val
def CallTipActive(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipActive,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipActive(self, *_args, **_kwargs)
return val
def CallTipPosAtStart(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipPosAtStart,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipPosAtStart(self, *_args, **_kwargs)
return val
def CallTipSetHighlight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipSetHighlight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipSetHighlight(self, *_args, **_kwargs)
return val
def CallTipSetBackground(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CallTipSetBackground,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CallTipSetBackground(self, *_args, **_kwargs)
+ return val
+ def CallTipSetForeground(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_CallTipSetForeground(self, *_args, **_kwargs)
+ return val
+ def CallTipSetForegroundHighlight(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_CallTipSetForegroundHighlight(self, *_args, **_kwargs)
return val
def VisibleFromDocLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_VisibleFromDocLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_VisibleFromDocLine(self, *_args, **_kwargs)
return val
def DocLineFromVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_DocLineFromVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_DocLineFromVisible(self, *_args, **_kwargs)
return val
def SetFoldLevel(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetFoldLevel,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetFoldLevel(self, *_args, **_kwargs)
return val
def GetFoldLevel(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetFoldLevel,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetFoldLevel(self, *_args, **_kwargs)
return val
def GetLastChild(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLastChild,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLastChild(self, *_args, **_kwargs)
return val
def GetFoldParent(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetFoldParent,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetFoldParent(self, *_args, **_kwargs)
return val
def ShowLines(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ShowLines,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ShowLines(self, *_args, **_kwargs)
return val
def HideLines(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_HideLines,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_HideLines(self, *_args, **_kwargs)
return val
def GetLineVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLineVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLineVisible(self, *_args, **_kwargs)
return val
def SetFoldExpanded(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetFoldExpanded,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetFoldExpanded(self, *_args, **_kwargs)
return val
def GetFoldExpanded(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetFoldExpanded,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetFoldExpanded(self, *_args, **_kwargs)
return val
def ToggleFold(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ToggleFold,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ToggleFold(self, *_args, **_kwargs)
return val
def EnsureVisible(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EnsureVisible,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EnsureVisible(self, *_args, **_kwargs)
return val
def SetFoldFlags(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetFoldFlags,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetFoldFlags(self, *_args, **_kwargs)
return val
def EnsureVisibleEnforcePolicy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_EnsureVisibleEnforcePolicy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_EnsureVisibleEnforcePolicy(self, *_args, **_kwargs)
return val
def SetTabIndents(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetTabIndents,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetTabIndents(self, *_args, **_kwargs)
return val
def GetTabIndents(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetTabIndents,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetTabIndents(self, *_args, **_kwargs)
return val
def SetBackSpaceUnIndents(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetBackSpaceUnIndents,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetBackSpaceUnIndents(self, *_args, **_kwargs)
return val
def GetBackSpaceUnIndents(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetBackSpaceUnIndents,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetBackSpaceUnIndents(self, *_args, **_kwargs)
return val
def SetMouseDwellTime(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMouseDwellTime,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMouseDwellTime(self, *_args, **_kwargs)
return val
def GetMouseDwellTime(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMouseDwellTime,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMouseDwellTime(self, *_args, **_kwargs)
return val
def WordStartPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordStartPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordStartPosition(self, *_args, **_kwargs)
return val
def WordEndPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordEndPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordEndPosition(self, *_args, **_kwargs)
return val
def SetWrapMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetWrapMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetWrapMode(self, *_args, **_kwargs)
return val
def GetWrapMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetWrapMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetWrapMode(self, *_args, **_kwargs)
return val
def SetLayoutCache(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLayoutCache,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLayoutCache(self, *_args, **_kwargs)
return val
def GetLayoutCache(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLayoutCache,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLayoutCache(self, *_args, **_kwargs)
return val
def SetScrollWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetScrollWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetScrollWidth(self, *_args, **_kwargs)
return val
def GetScrollWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetScrollWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetScrollWidth(self, *_args, **_kwargs)
return val
def TextWidth(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_TextWidth,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_TextWidth(self, *_args, **_kwargs)
return val
def SetEndAtLastLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEndAtLastLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEndAtLastLine(self, *_args, **_kwargs)
return val
def GetEndAtLastLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEndAtLastLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEndAtLastLine(self, *_args, **_kwargs)
return val
def TextHeight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_TextHeight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_TextHeight(self, *_args, **_kwargs)
+ return val
+ def SetUseVerticalScrollBar(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetUseVerticalScrollBar(self, *_args, **_kwargs)
+ return val
+ def GetUseVerticalScrollBar(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_GetUseVerticalScrollBar(self, *_args, **_kwargs)
+ return val
+ def AppendText(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_AppendText(self, *_args, **_kwargs)
+ return val
+ def GetTwoPhaseDraw(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_GetTwoPhaseDraw(self, *_args, **_kwargs)
+ return val
+ def SetTwoPhaseDraw(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetTwoPhaseDraw(self, *_args, **_kwargs)
+ return val
+ def TargetFromSelection(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_TargetFromSelection(self, *_args, **_kwargs)
+ return val
+ def LinesJoin(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_LinesJoin(self, *_args, **_kwargs)
+ return val
+ def LinesSplit(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_LinesSplit(self, *_args, **_kwargs)
+ return val
+ def SetFoldMarginColour(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetFoldMarginColour(self, *_args, **_kwargs)
+ return val
+ def SetFoldMarginHiColour(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetFoldMarginHiColour(self, *_args, **_kwargs)
+ return val
+ def LineDuplicate(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_LineDuplicate(self, *_args, **_kwargs)
return val
def HomeDisplay(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_HomeDisplay,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_HomeDisplay(self, *_args, **_kwargs)
return val
def HomeDisplayExtend(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_HomeDisplayExtend,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_HomeDisplayExtend(self, *_args, **_kwargs)
return val
def LineEndDisplay(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineEndDisplay,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineEndDisplay(self, *_args, **_kwargs)
return val
def LineEndDisplayExtend(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineEndDisplayExtend,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineEndDisplayExtend(self, *_args, **_kwargs)
return val
def MoveCaretInsideView(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_MoveCaretInsideView,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_MoveCaretInsideView(self, *_args, **_kwargs)
return val
def LineLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LineLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LineLength(self, *_args, **_kwargs)
return val
def BraceHighlight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_BraceHighlight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_BraceHighlight(self, *_args, **_kwargs)
return val
def BraceBadLight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_BraceBadLight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_BraceBadLight(self, *_args, **_kwargs)
return val
def BraceMatch(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_BraceMatch,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_BraceMatch(self, *_args, **_kwargs)
return val
def GetViewEOL(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetViewEOL,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetViewEOL(self, *_args, **_kwargs)
return val
def SetViewEOL(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetViewEOL,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetViewEOL(self, *_args, **_kwargs)
return val
def GetDocPointer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetDocPointer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetDocPointer(self, *_args, **_kwargs)
return val
def SetDocPointer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetDocPointer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetDocPointer(self, *_args, **_kwargs)
return val
def SetModEventMask(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetModEventMask,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetModEventMask(self, *_args, **_kwargs)
return val
def GetEdgeColumn(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEdgeColumn,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEdgeColumn(self, *_args, **_kwargs)
return val
def SetEdgeColumn(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEdgeColumn,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEdgeColumn(self, *_args, **_kwargs)
return val
def GetEdgeMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEdgeMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEdgeMode(self, *_args, **_kwargs)
return val
def SetEdgeMode(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEdgeMode,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEdgeMode(self, *_args, **_kwargs)
return val
def GetEdgeColour(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetEdgeColour,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetEdgeColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetEdgeColour(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetEdgeColour,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetEdgeColour(self, *_args, **_kwargs)
return val
def SearchAnchor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SearchAnchor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SearchAnchor(self, *_args, **_kwargs)
return val
def SearchNext(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SearchNext,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SearchNext(self, *_args, **_kwargs)
return val
def SearchPrev(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SearchPrev,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SearchPrev(self, *_args, **_kwargs)
return val
def LinesOnScreen(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_LinesOnScreen,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_LinesOnScreen(self, *_args, **_kwargs)
return val
def UsePopUp(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_UsePopUp,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_UsePopUp(self, *_args, **_kwargs)
return val
def SelectionIsRectangle(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SelectionIsRectangle,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SelectionIsRectangle(self, *_args, **_kwargs)
return val
def SetZoom(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetZoom,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetZoom(self, *_args, **_kwargs)
return val
def GetZoom(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetZoom,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetZoom(self, *_args, **_kwargs)
return val
def CreateDocument(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CreateDocument,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CreateDocument(self, *_args, **_kwargs)
return val
def AddRefDocument(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_AddRefDocument,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_AddRefDocument(self, *_args, **_kwargs)
return val
def ReleaseDocument(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ReleaseDocument,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ReleaseDocument(self, *_args, **_kwargs)
return val
def GetModEventMask(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetModEventMask,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetModEventMask(self, *_args, **_kwargs)
return val
def SetSTCFocus(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetSTCFocus,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetSTCFocus(self, *_args, **_kwargs)
return val
def GetSTCFocus(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSTCFocus,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSTCFocus(self, *_args, **_kwargs)
return val
def SetStatus(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetStatus,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetStatus(self, *_args, **_kwargs)
return val
def GetStatus(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetStatus,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetStatus(self, *_args, **_kwargs)
return val
def SetMouseDownCaptures(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMouseDownCaptures,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMouseDownCaptures(self, *_args, **_kwargs)
return val
def GetMouseDownCaptures(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetMouseDownCaptures,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetMouseDownCaptures(self, *_args, **_kwargs)
return val
def SetCursor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetCursor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetCursor(self, *_args, **_kwargs)
return val
def GetCursor(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCursor,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCursor(self, *_args, **_kwargs)
return val
def SetControlCharSymbol(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetControlCharSymbol,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetControlCharSymbol(self, *_args, **_kwargs)
return val
def GetControlCharSymbol(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetControlCharSymbol,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetControlCharSymbol(self, *_args, **_kwargs)
return val
def WordPartLeft(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordPartLeft,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordPartLeft(self, *_args, **_kwargs)
return val
def WordPartLeftExtend(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordPartLeftExtend,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordPartLeftExtend(self, *_args, **_kwargs)
return val
def WordPartRight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordPartRight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordPartRight(self, *_args, **_kwargs)
return val
def WordPartRightExtend(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_WordPartRightExtend,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_WordPartRightExtend(self, *_args, **_kwargs)
return val
def SetVisiblePolicy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetVisiblePolicy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetVisiblePolicy(self, *_args, **_kwargs)
return val
def DelLineLeft(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_DelLineLeft,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_DelLineLeft(self, *_args, **_kwargs)
return val
def DelLineRight(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_DelLineRight,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_DelLineRight(self, *_args, **_kwargs)
return val
def SetXOffset(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetXOffset,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetXOffset(self, *_args, **_kwargs)
return val
def GetXOffset(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetXOffset,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetXOffset(self, *_args, **_kwargs)
+ return val
+ def ChooseCaretX(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_ChooseCaretX(self, *_args, **_kwargs)
return val
def SetXCaretPolicy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetXCaretPolicy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetXCaretPolicy(self, *_args, **_kwargs)
return val
def SetYCaretPolicy(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetYCaretPolicy,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetYCaretPolicy(self, *_args, **_kwargs)
+ return val
+ def SetPrintWrapMode(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetPrintWrapMode(self, *_args, **_kwargs)
+ return val
+ def GetPrintWrapMode(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_GetPrintWrapMode(self, *_args, **_kwargs)
+ return val
+ def SetHotspotActiveForeground(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetHotspotActiveForeground(self, *_args, **_kwargs)
+ return val
+ def SetHotspotActiveBackground(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetHotspotActiveBackground(self, *_args, **_kwargs)
+ return val
+ def SetHotspotActiveUnderline(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SetHotspotActiveUnderline(self, *_args, **_kwargs)
return val
def StartRecord(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StartRecord,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StartRecord(self, *_args, **_kwargs)
return val
def StopRecord(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StopRecord,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StopRecord(self, *_args, **_kwargs)
return val
def SetLexer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLexer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLexer(self, *_args, **_kwargs)
return val
def GetLexer(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLexer,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLexer(self, *_args, **_kwargs)
return val
def Colourise(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_Colourise,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_Colourise(self, *_args, **_kwargs)
return val
def SetProperty(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetProperty,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetProperty(self, *_args, **_kwargs)
return val
def SetKeyWords(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetKeyWords,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetKeyWords(self, *_args, **_kwargs)
return val
def SetLexerLanguage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLexerLanguage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLexerLanguage(self, *_args, **_kwargs)
return val
def GetCurrentLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetCurrentLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetCurrentLine(self, *_args, **_kwargs)
return val
def StyleSetSpec(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetSpec,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetSpec(self, *_args, **_kwargs)
return val
def StyleSetFont(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetFont,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetFont(self, *_args, **_kwargs)
return val
def StyleSetFontAttr(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_StyleSetFontAttr,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_StyleSetFontAttr(self, *_args, **_kwargs)
return val
def CmdKeyExecute(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_CmdKeyExecute,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_CmdKeyExecute(self, *_args, **_kwargs)
return val
def SetMargins(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetMargins,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetMargins(self, *_args, **_kwargs)
return val
def GetSelection(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetSelection,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetSelection(self, *_args, **_kwargs)
return val
def PointFromPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_PointFromPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_PointFromPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def ScrollToLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ScrollToLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ScrollToLine(self, *_args, **_kwargs)
return val
def ScrollToColumn(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_ScrollToColumn,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_ScrollToColumn(self, *_args, **_kwargs)
return val
def SendMsg(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SendMsg,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SendMsg(self, *_args, **_kwargs)
return val
def SetVScrollBar(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetVScrollBar,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetVScrollBar(self, *_args, **_kwargs)
return val
def SetHScrollBar(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetHScrollBar,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetHScrollBar(self, *_args, **_kwargs)
return val
def GetLastKeydownProcessed(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_GetLastKeydownProcessed,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_GetLastKeydownProcessed(self, *_args, **_kwargs)
return val
def SetLastKeydownProcessed(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextCtrl_SetLastKeydownProcessed,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextCtrl_SetLastKeydownProcessed(self, *_args, **_kwargs)
+ return val
+ def SaveFile(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_SaveFile(self, *_args, **_kwargs)
+ return val
+ def LoadFile(self, *_args, **_kwargs):
+ val = stc_c.wxStyledTextCtrl_LoadFile(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxStyledTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxStyledTextCtrl(wxStyledTextCtrlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(stc_c.new_wxStyledTextCtrl,_args,_kwargs)
+ self.this = stc_c.new_wxStyledTextCtrl(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -1053,143 +1142,143 @@ class wxStyledTextEventPtr(wxCommandEventPtr):
except:
pass
def SetPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetPosition(self, *_args, **_kwargs)
return val
def SetKey(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetKey,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetKey(self, *_args, **_kwargs)
return val
def SetModifiers(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetModifiers,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetModifiers(self, *_args, **_kwargs)
return val
def SetModificationType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetModificationType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetModificationType(self, *_args, **_kwargs)
return val
def SetText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetText(self, *_args, **_kwargs)
return val
def SetLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetLength(self, *_args, **_kwargs)
return val
def SetLinesAdded(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetLinesAdded,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetLinesAdded(self, *_args, **_kwargs)
return val
def SetLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetLine(self, *_args, **_kwargs)
return val
def SetFoldLevelNow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetFoldLevelNow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetFoldLevelNow(self, *_args, **_kwargs)
return val
def SetFoldLevelPrev(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetFoldLevelPrev,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetFoldLevelPrev(self, *_args, **_kwargs)
return val
def SetMargin(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetMargin,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetMargin(self, *_args, **_kwargs)
return val
def SetMessage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetMessage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetMessage(self, *_args, **_kwargs)
return val
def SetWParam(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetWParam,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetWParam(self, *_args, **_kwargs)
return val
def SetLParam(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetLParam,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetLParam(self, *_args, **_kwargs)
return val
def SetListType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetListType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetListType(self, *_args, **_kwargs)
return val
def SetX(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetX,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetX(self, *_args, **_kwargs)
return val
def SetY(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetY,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetY(self, *_args, **_kwargs)
return val
def SetDragText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetDragText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetDragText(self, *_args, **_kwargs)
return val
def SetDragAllowMove(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetDragAllowMove,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetDragAllowMove(self, *_args, **_kwargs)
return val
def SetDragResult(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_SetDragResult,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_SetDragResult(self, *_args, **_kwargs)
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetPosition,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetPosition(self, *_args, **_kwargs)
return val
def GetKey(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetKey,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetKey(self, *_args, **_kwargs)
return val
def GetModifiers(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetModifiers,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetModifiers(self, *_args, **_kwargs)
return val
def GetModificationType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetModificationType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetModificationType(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetText(self, *_args, **_kwargs)
return val
def GetLength(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetLength,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetLength(self, *_args, **_kwargs)
return val
def GetLinesAdded(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetLinesAdded,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetLinesAdded(self, *_args, **_kwargs)
return val
def GetLine(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetLine,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetLine(self, *_args, **_kwargs)
return val
def GetFoldLevelNow(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetFoldLevelNow,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetFoldLevelNow(self, *_args, **_kwargs)
return val
def GetFoldLevelPrev(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetFoldLevelPrev,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetFoldLevelPrev(self, *_args, **_kwargs)
return val
def GetMargin(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetMargin,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetMargin(self, *_args, **_kwargs)
return val
def GetMessage(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetMessage,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetMessage(self, *_args, **_kwargs)
return val
def GetWParam(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetWParam,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetWParam(self, *_args, **_kwargs)
return val
def GetLParam(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetLParam,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetLParam(self, *_args, **_kwargs)
return val
def GetListType(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetListType,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetListType(self, *_args, **_kwargs)
return val
def GetX(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetX,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetX(self, *_args, **_kwargs)
return val
def GetY(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetY,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetY(self, *_args, **_kwargs)
return val
def GetDragText(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetDragText,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetDragText(self, *_args, **_kwargs)
return val
def GetDragAllowMove(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetDragAllowMove,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetDragAllowMove(self, *_args, **_kwargs)
return val
def GetDragResult(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetDragResult,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetDragResult(self, *_args, **_kwargs)
return val
def GetShift(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetShift,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetShift(self, *_args, **_kwargs)
return val
def GetControl(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetControl,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetControl(self, *_args, **_kwargs)
return val
def GetAlt(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_GetAlt,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_GetAlt(self, *_args, **_kwargs)
return val
def Clone(self, *_args, **_kwargs):
- val = apply(stc_c.wxStyledTextEvent_Clone,(self,) + _args, _kwargs)
+ val = stc_c.wxStyledTextEvent_Clone(self, *_args, **_kwargs)
if val: val = wxEventPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxStyledTextEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxStyledTextEvent(wxStyledTextEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(stc_c.new_wxStyledTextEvent,_args,_kwargs)
+ self.this = stc_c.new_wxStyledTextEvent(*_args,**_kwargs)
self.thisown = 1
@@ -1215,6 +1304,7 @@ wxSTC_EOL_CRLF = stc_c.wxSTC_EOL_CRLF
wxSTC_EOL_CR = stc_c.wxSTC_EOL_CR
wxSTC_EOL_LF = stc_c.wxSTC_EOL_LF
wxSTC_CP_UTF8 = stc_c.wxSTC_CP_UTF8
+wxSTC_CP_DBCS = stc_c.wxSTC_CP_DBCS
wxSTC_MARKER_MAX = stc_c.wxSTC_MARKER_MAX
wxSTC_MARK_CIRCLE = stc_c.wxSTC_MARK_CIRCLE
wxSTC_MARK_ROUNDRECT = stc_c.wxSTC_MARK_ROUNDRECT
@@ -1241,6 +1331,7 @@ wxSTC_MARK_CIRCLEMINUSCONNECTED = stc_c.wxSTC_MARK_CIRCLEMINUSCONNECTED
wxSTC_MARK_BACKGROUND = stc_c.wxSTC_MARK_BACKGROUND
wxSTC_MARK_DOTDOTDOT = stc_c.wxSTC_MARK_DOTDOTDOT
wxSTC_MARK_ARROWS = stc_c.wxSTC_MARK_ARROWS
+wxSTC_MARK_PIXMAP = stc_c.wxSTC_MARK_PIXMAP
wxSTC_MARK_CHARACTER = stc_c.wxSTC_MARK_CHARACTER
wxSTC_MARKNUM_FOLDEREND = stc_c.wxSTC_MARKNUM_FOLDEREND
wxSTC_MARKNUM_FOLDEROPENMID = stc_c.wxSTC_MARKNUM_FOLDEROPENMID
@@ -1301,10 +1392,21 @@ wxSTC_FIND_WHOLEWORD = stc_c.wxSTC_FIND_WHOLEWORD
wxSTC_FIND_MATCHCASE = stc_c.wxSTC_FIND_MATCHCASE
wxSTC_FIND_WORDSTART = stc_c.wxSTC_FIND_WORDSTART
wxSTC_FIND_REGEXP = stc_c.wxSTC_FIND_REGEXP
+wxSTC_FIND_POSIX = stc_c.wxSTC_FIND_POSIX
wxSTC_FOLDLEVELBASE = stc_c.wxSTC_FOLDLEVELBASE
wxSTC_FOLDLEVELWHITEFLAG = stc_c.wxSTC_FOLDLEVELWHITEFLAG
wxSTC_FOLDLEVELHEADERFLAG = stc_c.wxSTC_FOLDLEVELHEADERFLAG
+wxSTC_FOLDLEVELBOXHEADERFLAG = stc_c.wxSTC_FOLDLEVELBOXHEADERFLAG
+wxSTC_FOLDLEVELBOXFOOTERFLAG = stc_c.wxSTC_FOLDLEVELBOXFOOTERFLAG
+wxSTC_FOLDLEVELCONTRACTED = stc_c.wxSTC_FOLDLEVELCONTRACTED
+wxSTC_FOLDLEVELUNINDENT = stc_c.wxSTC_FOLDLEVELUNINDENT
wxSTC_FOLDLEVELNUMBERMASK = stc_c.wxSTC_FOLDLEVELNUMBERMASK
+wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED = stc_c.wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED
+wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED = stc_c.wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED
+wxSTC_FOLDFLAG_LINEAFTER_EXPANDED = stc_c.wxSTC_FOLDFLAG_LINEAFTER_EXPANDED
+wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED = stc_c.wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED
+wxSTC_FOLDFLAG_LEVELNUMBERS = stc_c.wxSTC_FOLDFLAG_LEVELNUMBERS
+wxSTC_FOLDFLAG_BOX = stc_c.wxSTC_FOLDFLAG_BOX
wxSTC_TIME_FOREVER = stc_c.wxSTC_TIME_FOREVER
wxSTC_WRAP_NONE = stc_c.wxSTC_WRAP_NONE
wxSTC_WRAP_WORD = stc_c.wxSTC_WRAP_WORD
@@ -1389,6 +1491,12 @@ wxSTC_LEX_PHP = stc_c.wxSTC_LEX_PHP
wxSTC_LEX_BAAN = stc_c.wxSTC_LEX_BAAN
wxSTC_LEX_MATLAB = stc_c.wxSTC_LEX_MATLAB
wxSTC_LEX_SCRIPTOL = stc_c.wxSTC_LEX_SCRIPTOL
+wxSTC_LEX_ASM = stc_c.wxSTC_LEX_ASM
+wxSTC_LEX_CPPNOCASE = stc_c.wxSTC_LEX_CPPNOCASE
+wxSTC_LEX_FORTRAN = stc_c.wxSTC_LEX_FORTRAN
+wxSTC_LEX_F77 = stc_c.wxSTC_LEX_F77
+wxSTC_LEX_CSS = stc_c.wxSTC_LEX_CSS
+wxSTC_LEX_POV = stc_c.wxSTC_LEX_POV
wxSTC_LEX_AUTOMATIC = stc_c.wxSTC_LEX_AUTOMATIC
wxSTC_P_DEFAULT = stc_c.wxSTC_P_DEFAULT
wxSTC_P_COMMENTLINE = stc_c.wxSTC_P_COMMENTLINE
@@ -1614,6 +1722,9 @@ wxSTC_ERR_DIFF_CHANGED = stc_c.wxSTC_ERR_DIFF_CHANGED
wxSTC_ERR_DIFF_ADDITION = stc_c.wxSTC_ERR_DIFF_ADDITION
wxSTC_ERR_DIFF_DELETION = stc_c.wxSTC_ERR_DIFF_DELETION
wxSTC_ERR_DIFF_MESSAGE = stc_c.wxSTC_ERR_DIFF_MESSAGE
+wxSTC_ERR_PHP = stc_c.wxSTC_ERR_PHP
+wxSTC_ERR_ELF = stc_c.wxSTC_ERR_ELF
+wxSTC_ERR_IFC = stc_c.wxSTC_ERR_IFC
wxSTC_BAT_DEFAULT = stc_c.wxSTC_BAT_DEFAULT
wxSTC_BAT_COMMENT = stc_c.wxSTC_BAT_COMMENT
wxSTC_BAT_WORD = stc_c.wxSTC_BAT_WORD
@@ -1650,22 +1761,29 @@ wxSTC_AVE_DEFAULT = stc_c.wxSTC_AVE_DEFAULT
wxSTC_AVE_COMMENT = stc_c.wxSTC_AVE_COMMENT
wxSTC_AVE_NUMBER = stc_c.wxSTC_AVE_NUMBER
wxSTC_AVE_WORD = stc_c.wxSTC_AVE_WORD
-wxSTC_AVE_KEYWORD = stc_c.wxSTC_AVE_KEYWORD
-wxSTC_AVE_STATEMENT = stc_c.wxSTC_AVE_STATEMENT
wxSTC_AVE_STRING = stc_c.wxSTC_AVE_STRING
wxSTC_AVE_ENUM = stc_c.wxSTC_AVE_ENUM
wxSTC_AVE_STRINGEOL = stc_c.wxSTC_AVE_STRINGEOL
wxSTC_AVE_IDENTIFIER = stc_c.wxSTC_AVE_IDENTIFIER
wxSTC_AVE_OPERATOR = stc_c.wxSTC_AVE_OPERATOR
+wxSTC_AVE_WORD1 = stc_c.wxSTC_AVE_WORD1
+wxSTC_AVE_WORD2 = stc_c.wxSTC_AVE_WORD2
+wxSTC_AVE_WORD3 = stc_c.wxSTC_AVE_WORD3
+wxSTC_AVE_WORD4 = stc_c.wxSTC_AVE_WORD4
+wxSTC_AVE_WORD5 = stc_c.wxSTC_AVE_WORD5
+wxSTC_AVE_WORD6 = stc_c.wxSTC_AVE_WORD6
wxSTC_ADA_DEFAULT = stc_c.wxSTC_ADA_DEFAULT
-wxSTC_ADA_COMMENT = stc_c.wxSTC_ADA_COMMENT
-wxSTC_ADA_NUMBER = stc_c.wxSTC_ADA_NUMBER
wxSTC_ADA_WORD = stc_c.wxSTC_ADA_WORD
-wxSTC_ADA_STRING = stc_c.wxSTC_ADA_STRING
-wxSTC_ADA_CHARACTER = stc_c.wxSTC_ADA_CHARACTER
-wxSTC_ADA_OPERATOR = stc_c.wxSTC_ADA_OPERATOR
wxSTC_ADA_IDENTIFIER = stc_c.wxSTC_ADA_IDENTIFIER
+wxSTC_ADA_NUMBER = stc_c.wxSTC_ADA_NUMBER
+wxSTC_ADA_DELIMITER = stc_c.wxSTC_ADA_DELIMITER
+wxSTC_ADA_CHARACTER = stc_c.wxSTC_ADA_CHARACTER
+wxSTC_ADA_CHARACTEREOL = stc_c.wxSTC_ADA_CHARACTEREOL
+wxSTC_ADA_STRING = stc_c.wxSTC_ADA_STRING
wxSTC_ADA_STRINGEOL = stc_c.wxSTC_ADA_STRINGEOL
+wxSTC_ADA_LABEL = stc_c.wxSTC_ADA_LABEL
+wxSTC_ADA_COMMENTLINE = stc_c.wxSTC_ADA_COMMENTLINE
+wxSTC_ADA_ILLEGAL = stc_c.wxSTC_ADA_ILLEGAL
wxSTC_BAAN_DEFAULT = stc_c.wxSTC_BAAN_DEFAULT
wxSTC_BAAN_COMMENT = stc_c.wxSTC_BAAN_COMMENT
wxSTC_BAAN_COMMENTDOC = stc_c.wxSTC_BAAN_COMMENTDOC
@@ -1733,6 +1851,58 @@ 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
+wxSTC_ASM_DEFAULT = stc_c.wxSTC_ASM_DEFAULT
+wxSTC_ASM_COMMENT = stc_c.wxSTC_ASM_COMMENT
+wxSTC_ASM_NUMBER = stc_c.wxSTC_ASM_NUMBER
+wxSTC_ASM_STRING = stc_c.wxSTC_ASM_STRING
+wxSTC_ASM_OPERATOR = stc_c.wxSTC_ASM_OPERATOR
+wxSTC_ASM_IDENTIFIER = stc_c.wxSTC_ASM_IDENTIFIER
+wxSTC_ASM_CPUINSTRUCTION = stc_c.wxSTC_ASM_CPUINSTRUCTION
+wxSTC_ASM_MATHINSTRUCTION = stc_c.wxSTC_ASM_MATHINSTRUCTION
+wxSTC_ASM_REGISTER = stc_c.wxSTC_ASM_REGISTER
+wxSTC_ASM_DIRECTIVE = stc_c.wxSTC_ASM_DIRECTIVE
+wxSTC_ASM_DIRECTIVEOPERAND = stc_c.wxSTC_ASM_DIRECTIVEOPERAND
+wxSTC_F_DEFAULT = stc_c.wxSTC_F_DEFAULT
+wxSTC_F_COMMENT = stc_c.wxSTC_F_COMMENT
+wxSTC_F_NUMBER = stc_c.wxSTC_F_NUMBER
+wxSTC_F_STRING1 = stc_c.wxSTC_F_STRING1
+wxSTC_F_STRING2 = stc_c.wxSTC_F_STRING2
+wxSTC_F_STRINGEOL = stc_c.wxSTC_F_STRINGEOL
+wxSTC_F_OPERATOR = stc_c.wxSTC_F_OPERATOR
+wxSTC_F_IDENTIFIER = stc_c.wxSTC_F_IDENTIFIER
+wxSTC_F_WORD = stc_c.wxSTC_F_WORD
+wxSTC_F_WORD2 = stc_c.wxSTC_F_WORD2
+wxSTC_F_WORD3 = stc_c.wxSTC_F_WORD3
+wxSTC_F_PREPROCESSOR = stc_c.wxSTC_F_PREPROCESSOR
+wxSTC_F_OPERATOR2 = stc_c.wxSTC_F_OPERATOR2
+wxSTC_F_LABEL = stc_c.wxSTC_F_LABEL
+wxSTC_F_CONTINUATION = stc_c.wxSTC_F_CONTINUATION
+wxSTC_CSS_DEFAULT = stc_c.wxSTC_CSS_DEFAULT
+wxSTC_CSS_TAG = stc_c.wxSTC_CSS_TAG
+wxSTC_CSS_CLASS = stc_c.wxSTC_CSS_CLASS
+wxSTC_CSS_PSEUDOCLASS = stc_c.wxSTC_CSS_PSEUDOCLASS
+wxSTC_CSS_UNKNOWN_PSEUDOCLASS = stc_c.wxSTC_CSS_UNKNOWN_PSEUDOCLASS
+wxSTC_CSS_OPERATOR = stc_c.wxSTC_CSS_OPERATOR
+wxSTC_CSS_IDENTIFIER = stc_c.wxSTC_CSS_IDENTIFIER
+wxSTC_CSS_UNKNOWN_IDENTIFIER = stc_c.wxSTC_CSS_UNKNOWN_IDENTIFIER
+wxSTC_CSS_VALUE = stc_c.wxSTC_CSS_VALUE
+wxSTC_CSS_COMMENT = stc_c.wxSTC_CSS_COMMENT
+wxSTC_CSS_ID = stc_c.wxSTC_CSS_ID
+wxSTC_CSS_IMPORTANT = stc_c.wxSTC_CSS_IMPORTANT
+wxSTC_CSS_DIRECTIVE = stc_c.wxSTC_CSS_DIRECTIVE
+wxSTC_CSS_DOUBLESTRING = stc_c.wxSTC_CSS_DOUBLESTRING
+wxSTC_CSS_SINGLESTRING = stc_c.wxSTC_CSS_SINGLESTRING
+wxSTC_POV_DEFAULT = stc_c.wxSTC_POV_DEFAULT
+wxSTC_POV_COMMENT = stc_c.wxSTC_POV_COMMENT
+wxSTC_POV_COMMENTLINE = stc_c.wxSTC_POV_COMMENTLINE
+wxSTC_POV_COMMENTDOC = stc_c.wxSTC_POV_COMMENTDOC
+wxSTC_POV_NUMBER = stc_c.wxSTC_POV_NUMBER
+wxSTC_POV_WORD = stc_c.wxSTC_POV_WORD
+wxSTC_POV_STRING = stc_c.wxSTC_POV_STRING
+wxSTC_POV_OPERATOR = stc_c.wxSTC_POV_OPERATOR
+wxSTC_POV_IDENTIFIER = stc_c.wxSTC_POV_IDENTIFIER
+wxSTC_POV_BRACE = stc_c.wxSTC_POV_BRACE
+wxSTC_POV_WORD2 = stc_c.wxSTC_POV_WORD2
wxSTC_CMD_REDO = stc_c.wxSTC_CMD_REDO
wxSTC_CMD_SELECTALL = stc_c.wxSTC_CMD_SELECTALL
wxSTC_CMD_UNDO = stc_c.wxSTC_CMD_UNDO
@@ -1780,6 +1950,7 @@ wxSTC_CMD_DELWORDRIGHT = stc_c.wxSTC_CMD_DELWORDRIGHT
wxSTC_CMD_LINECUT = stc_c.wxSTC_CMD_LINECUT
wxSTC_CMD_LINEDELETE = stc_c.wxSTC_CMD_LINEDELETE
wxSTC_CMD_LINETRANSPOSE = stc_c.wxSTC_CMD_LINETRANSPOSE
+wxSTC_CMD_LINEDUPLICATE = stc_c.wxSTC_CMD_LINEDUPLICATE
wxSTC_CMD_LOWERCASE = stc_c.wxSTC_CMD_LOWERCASE
wxSTC_CMD_UPPERCASE = stc_c.wxSTC_CMD_UPPERCASE
wxSTC_CMD_LINESCROLLDOWN = stc_c.wxSTC_CMD_LINESCROLLDOWN
@@ -1789,12 +1960,22 @@ wxSTC_CMD_HOMEDISPLAY = stc_c.wxSTC_CMD_HOMEDISPLAY
wxSTC_CMD_HOMEDISPLAYEXTEND = stc_c.wxSTC_CMD_HOMEDISPLAYEXTEND
wxSTC_CMD_LINEENDDISPLAY = stc_c.wxSTC_CMD_LINEENDDISPLAY
wxSTC_CMD_LINEENDDISPLAYEXTEND = stc_c.wxSTC_CMD_LINEENDDISPLAYEXTEND
+wxSTC_CMD_HOMEWRAP = stc_c.wxSTC_CMD_HOMEWRAP
+wxSTC_CMD_HOMEWRAPEXTEND = stc_c.wxSTC_CMD_HOMEWRAPEXTEND
+wxSTC_CMD_LINEENDWRAP = stc_c.wxSTC_CMD_LINEENDWRAP
+wxSTC_CMD_LINEENDWRAPEXTEND = stc_c.wxSTC_CMD_LINEENDWRAPEXTEND
+wxSTC_CMD_VCHOMEWRAP = stc_c.wxSTC_CMD_VCHOMEWRAP
+wxSTC_CMD_VCHOMEWRAPEXTEND = stc_c.wxSTC_CMD_VCHOMEWRAPEXTEND
wxSTC_CMD_WORDPARTLEFT = stc_c.wxSTC_CMD_WORDPARTLEFT
wxSTC_CMD_WORDPARTLEFTEXTEND = stc_c.wxSTC_CMD_WORDPARTLEFTEXTEND
wxSTC_CMD_WORDPARTRIGHT = stc_c.wxSTC_CMD_WORDPARTRIGHT
wxSTC_CMD_WORDPARTRIGHTEXTEND = stc_c.wxSTC_CMD_WORDPARTRIGHTEXTEND
wxSTC_CMD_DELLINELEFT = stc_c.wxSTC_CMD_DELLINELEFT
wxSTC_CMD_DELLINERIGHT = stc_c.wxSTC_CMD_DELLINERIGHT
+wxSTC_CMD_PARADOWN = stc_c.wxSTC_CMD_PARADOWN
+wxSTC_CMD_PARADOWNEXTEND = stc_c.wxSTC_CMD_PARADOWNEXTEND
+wxSTC_CMD_PARAUP = stc_c.wxSTC_CMD_PARAUP
+wxSTC_CMD_PARAUPEXTEND = stc_c.wxSTC_CMD_PARAUPEXTEND
STC_USE_DND = stc_c.STC_USE_DND
wxEVT_STC_CHANGE = stc_c.wxEVT_STC_CHANGE
wxEVT_STC_STYLENEEDED = stc_c.wxEVT_STC_STYLENEEDED
@@ -1819,6 +2000,9 @@ wxEVT_STC_START_DRAG = stc_c.wxEVT_STC_START_DRAG
wxEVT_STC_DRAG_OVER = stc_c.wxEVT_STC_DRAG_OVER
wxEVT_STC_DO_DROP = stc_c.wxEVT_STC_DO_DROP
wxEVT_STC_ZOOM = stc_c.wxEVT_STC_ZOOM
+wxEVT_STC_HOTSPOT_CLICK = stc_c.wxEVT_STC_HOTSPOT_CLICK
+wxEVT_STC_HOTSPOT_DCLICK = stc_c.wxEVT_STC_HOTSPOT_DCLICK
+wxEVT_STC_CALLTIP_CLICK = stc_c.wxEVT_STC_CALLTIP_CLICK
#-------------- USER INCLUDE -----------------------
diff --git a/wxPython/contrib/stc/stc_.i b/wxPython/contrib/stc/stc_.i
index 2f0ef5416a..fef927b591 100644
--- a/wxPython/contrib/stc/stc_.i
+++ b/wxPython/contrib/stc/stc_.i
@@ -114,6 +114,14 @@ def EVT_STC_DO_DROP(win, id, func):
def EVT_STC_ZOOM(win, id, func):
win.Connect(id, -1, wxEVT_STC_ZOOM, func)
+def EVT_STC_HOTSPOT_CLICK(win, id, func):
+ win.Connect(id, -1, wxEVT_STC_HOTSPOT_CLICK, func)
+
+def EVT_STC_HOTSPOT_DCLICK(win, id, func):
+ win.Connect(id, -1, wxEVT_STC_HOTSPOT_DCLICK, func)
+
+def EVT_STC_CALLTIP_CLICK(win, id, func):
+ win.Connect(id, -1, wxEVT_STC_CALLTIP_CLICK, func)
"
//----------------------------------------------------------------------
diff --git a/wxPython/contrib/xrc/xrc.py b/wxPython/contrib/xrc/xrc.py
index 79f0b6a62c..0ff99fdb75 100644
--- a/wxPython/contrib/xrc/xrc.py
+++ b/wxPython/contrib/xrc/xrc.py
@@ -63,96 +63,96 @@ class wxXmlResourcePtr(wxObjectPtr):
except:
pass
def Load(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_Load,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_Load(self, *_args, **_kwargs)
return val
def LoadFromString(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadFromString,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadFromString(self, *_args, **_kwargs)
return val
def InitAllHandlers(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_InitAllHandlers,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_InitAllHandlers(self, *_args, **_kwargs)
return val
def AddHandler(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_AddHandler,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_AddHandler(self, *_args, **_kwargs)
return val
def InsertHandler(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_InsertHandler,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_InsertHandler(self, *_args, **_kwargs)
return val
def ClearHandlers(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_ClearHandlers,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_ClearHandlers(self, *_args, **_kwargs)
return val
def LoadMenu(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadMenu,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadMenu(self, *_args, **_kwargs)
return val
def LoadMenuBar(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadMenuBar,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadMenuBar(self, *_args, **_kwargs)
return val
def LoadMenuBarOnFrame(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadMenuBarOnFrame,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadMenuBarOnFrame(self, *_args, **_kwargs)
return val
def LoadToolBar(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadToolBar,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadToolBar(self, *_args, **_kwargs)
return val
def LoadDialog(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadDialog,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadDialog(self, *_args, **_kwargs)
if val: val = wxDialogPtr(val)
return val
def LoadOnDialog(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadOnDialog,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadOnDialog(self, *_args, **_kwargs)
return val
def LoadPanel(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadPanel,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadPanel(self, *_args, **_kwargs)
if val: val = wxPanelPtr(val)
return val
def LoadOnPanel(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadOnPanel,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadOnPanel(self, *_args, **_kwargs)
return val
def LoadFrame(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadFrame,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadFrame(self, *_args, **_kwargs)
return val
def LoadOnFrame(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadOnFrame,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadOnFrame(self, *_args, **_kwargs)
return val
def LoadObject(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadObject,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadObject(self, *_args, **_kwargs)
return val
def LoadOnObject(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadOnObject,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadOnObject(self, *_args, **_kwargs)
return val
def LoadBitmap(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadBitmap,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadBitmap(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val) ; val.thisown = 1
return val
def LoadIcon(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_LoadIcon,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_LoadIcon(self, *_args, **_kwargs)
if val: val = wxIconPtr(val) ; val.thisown = 1
return val
def AttachUnknownControl(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_AttachUnknownControl,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_AttachUnknownControl(self, *_args, **_kwargs)
return val
def GetVersion(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_GetVersion,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_GetVersion(self, *_args, **_kwargs)
return val
def CompareVersion(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_CompareVersion,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_CompareVersion(self, *_args, **_kwargs)
return val
def GetFlags(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_GetFlags,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_GetFlags(self, *_args, **_kwargs)
return val
def SetFlags(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_SetFlags,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResource_SetFlags(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxXmlResource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxXmlResource(wxXmlResourcePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(xrcc.new_wxXmlResource,_args,_kwargs)
+ self.this = xrcc.new_wxXmlResource(*_args,**_kwargs)
self.thisown = 1
self.InitAllHandlers()
def wxEmptyXmlResource(*_args,**_kwargs):
- val = wxXmlResourcePtr(apply(xrcc.new_wxEmptyXmlResource,_args,_kwargs))
+ val = wxXmlResourcePtr(xrcc.new_wxEmptyXmlResource(*_args,**_kwargs))
val.thisown = 1
val.InitAllHandlers()
return val
@@ -163,13 +163,13 @@ class wxXmlSubclassFactoryPtr :
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlSubclassFactory__setCallbackInfo,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlSubclassFactory__setCallbackInfo(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxXmlSubclassFactory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxXmlSubclassFactory(wxXmlSubclassFactoryPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(xrcc.new_wxXmlSubclassFactory,_args,_kwargs)
+ self.this = xrcc.new_wxXmlSubclassFactory(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxXmlSubclassFactory)
@@ -181,29 +181,29 @@ class wxXmlPropertyPtr :
self.this = this
self.thisown = 0
def GetName(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlProperty_GetName,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlProperty_GetName(self, *_args, **_kwargs)
return val
def GetValue(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlProperty_GetValue,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlProperty_GetValue(self, *_args, **_kwargs)
return val
def GetNext(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlProperty_GetNext,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlProperty_GetNext(self, *_args, **_kwargs)
if val: val = wxXmlPropertyPtr(val)
return val
def SetName(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlProperty_SetName,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlProperty_SetName(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlProperty_SetValue,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlProperty_SetValue(self, *_args, **_kwargs)
return val
def SetNext(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlProperty_SetNext,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlProperty_SetNext(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxXmlProperty instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxXmlProperty(wxXmlPropertyPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(xrcc.new_wxXmlProperty,_args,_kwargs)
+ self.this = xrcc.new_wxXmlProperty(*_args,**_kwargs)
self.thisown = 1
@@ -220,86 +220,86 @@ class wxXmlNodePtr :
except:
pass
def AddChild(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_AddChild,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_AddChild(self, *_args, **_kwargs)
return val
def InsertChild(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_InsertChild,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_InsertChild(self, *_args, **_kwargs)
return val
def RemoveChild(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_RemoveChild,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_RemoveChild(self, *_args, **_kwargs)
return val
def AddProperty(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_AddProperty,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_AddProperty(self, *_args, **_kwargs)
return val
def AddPropertyName(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_AddPropertyName,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_AddPropertyName(self, *_args, **_kwargs)
return val
def DeleteProperty(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_DeleteProperty,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_DeleteProperty(self, *_args, **_kwargs)
return val
def GetType(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_GetType,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_GetType(self, *_args, **_kwargs)
return val
def GetName(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_GetName,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_GetName(self, *_args, **_kwargs)
return val
def GetContent(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_GetContent,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_GetContent(self, *_args, **_kwargs)
return val
def GetParent(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_GetParent,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_GetParent(self, *_args, **_kwargs)
if val: val = wxXmlNodePtr(val)
return val
def GetNext(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_GetNext,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_GetNext(self, *_args, **_kwargs)
if val: val = wxXmlNodePtr(val)
return val
def GetChildren(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_GetChildren,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_GetChildren(self, *_args, **_kwargs)
if val: val = wxXmlNodePtr(val)
return val
def GetProperties(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_GetProperties,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_GetProperties(self, *_args, **_kwargs)
if val: val = wxXmlPropertyPtr(val)
return val
def GetPropVal(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_GetPropVal,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_GetPropVal(self, *_args, **_kwargs)
return val
def HasProp(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_HasProp,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_HasProp(self, *_args, **_kwargs)
return val
def SetType(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_SetType,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_SetType(self, *_args, **_kwargs)
return val
def SetName(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_SetName,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_SetName(self, *_args, **_kwargs)
return val
def SetContent(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_SetContent,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_SetContent(self, *_args, **_kwargs)
return val
def SetParent(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_SetParent,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_SetParent(self, *_args, **_kwargs)
return val
def SetNext(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_SetNext,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_SetNext(self, *_args, **_kwargs)
return val
def SetChildren(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_SetChildren,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_SetChildren(self, *_args, **_kwargs)
return val
def SetProperties(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlNode_SetProperties,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlNode_SetProperties(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxXmlNode instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxXmlNode(wxXmlNodePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(xrcc.new_wxXmlNode,_args,_kwargs)
+ self.this = xrcc.new_wxXmlNode(*_args,**_kwargs)
self.thisown = 1
def wxXmlNodeEasy(*_args,**_kwargs):
- val = wxXmlNodePtr(apply(xrcc.new_wxXmlNodeEasy,_args,_kwargs))
+ val = wxXmlNodePtr(xrcc.new_wxXmlNodeEasy(*_args,**_kwargs))
val.thisown = 1
return val
@@ -315,61 +315,61 @@ class wxXmlDocumentPtr(wxObjectPtr):
except:
pass
def Load(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_Load,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_Load(self, *_args, **_kwargs)
return val
def LoadFromStream(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_LoadFromStream,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_LoadFromStream(self, *_args, **_kwargs)
return val
def Save(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_Save,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_Save(self, *_args, **_kwargs)
return val
def SaveToStream(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_SaveToStream,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_SaveToStream(self, *_args, **_kwargs)
return val
def IsOk(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_IsOk,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_IsOk(self, *_args, **_kwargs)
return val
def GetRoot(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_GetRoot,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_GetRoot(self, *_args, **_kwargs)
if val: val = wxXmlNodePtr(val)
return val
def GetVersion(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_GetVersion,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_GetVersion(self, *_args, **_kwargs)
return val
def GetFileEncoding(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_GetFileEncoding,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_GetFileEncoding(self, *_args, **_kwargs)
return val
def SetRoot(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_SetRoot,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_SetRoot(self, *_args, **_kwargs)
return val
def SetVersion(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_SetVersion,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_SetVersion(self, *_args, **_kwargs)
return val
def SetFileEncoding(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_SetFileEncoding,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_SetFileEncoding(self, *_args, **_kwargs)
return val
def GetEncoding(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_GetEncoding,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_GetEncoding(self, *_args, **_kwargs)
return val
def SetEncoding(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlDocument_SetEncoding,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlDocument_SetEncoding(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxXmlDocument instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxXmlDocument(wxXmlDocumentPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(xrcc.new_wxXmlDocument,_args,_kwargs)
+ self.this = xrcc.new_wxXmlDocument(*_args,**_kwargs)
self.thisown = 1
def wxXmlDocumentFromStream(*_args,**_kwargs):
- val = wxXmlDocumentPtr(apply(xrcc.new_wxXmlDocumentFromStream,_args,_kwargs))
+ val = wxXmlDocumentPtr(xrcc.new_wxXmlDocumentFromStream(*_args,**_kwargs))
val.thisown = 1
return val
def wxEmptyXmlDocument(*_args,**_kwargs):
- val = wxXmlDocumentPtr(apply(xrcc.new_wxEmptyXmlDocument,_args,_kwargs))
+ val = wxXmlDocumentPtr(xrcc.new_wxEmptyXmlDocument(*_args,**_kwargs))
val.thisown = 1
return val
@@ -379,124 +379,124 @@ class wxXmlResourceHandlerPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler__setCallbackInfo,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler__setCallbackInfo(self, *_args, **_kwargs)
return val
def CreateResource(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_CreateResource,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_CreateResource(self, *_args, **_kwargs)
return val
def SetParentResource(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_SetParentResource,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_SetParentResource(self, *_args, **_kwargs)
return val
def GetResource(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetResource,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetResource(self, *_args, **_kwargs)
if val: val = wxXmlResourcePtr(val)
return val
def GetNode(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetNode,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetNode(self, *_args, **_kwargs)
if val: val = wxXmlNodePtr(val)
return val
def GetClass(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetClass,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetClass(self, *_args, **_kwargs)
return val
def GetParent(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetParent,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetParent(self, *_args, **_kwargs)
return val
def GetInstance(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetInstance,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetInstance(self, *_args, **_kwargs)
return val
def GetParentAsWindow(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetParentAsWindow,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetParentAsWindow(self, *_args, **_kwargs)
return val
def GetInstanceAsWindow(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetInstanceAsWindow,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetInstanceAsWindow(self, *_args, **_kwargs)
return val
def IsOfClass(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_IsOfClass,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_IsOfClass(self, *_args, **_kwargs)
return val
def GetNodeContent(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetNodeContent,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetNodeContent(self, *_args, **_kwargs)
return val
def HasParam(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_HasParam,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_HasParam(self, *_args, **_kwargs)
return val
def GetParamNode(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetParamNode,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetParamNode(self, *_args, **_kwargs)
if val: val = wxXmlNodePtr(val)
return val
def GetParamValue(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetParamValue,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetParamValue(self, *_args, **_kwargs)
return val
def AddStyle(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_AddStyle,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_AddStyle(self, *_args, **_kwargs)
return val
def AddWindowStyles(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_AddWindowStyles,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_AddWindowStyles(self, *_args, **_kwargs)
return val
def GetStyle(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetStyle,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetStyle(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetText,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetText(self, *_args, **_kwargs)
return val
def GetID(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetID,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetID(self, *_args, **_kwargs)
return val
def GetName(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetName,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetName(self, *_args, **_kwargs)
return val
def GetBool(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetBool,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetBool(self, *_args, **_kwargs)
return val
def GetLong(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetLong,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetLong(self, *_args, **_kwargs)
return val
def GetColour(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetColour,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetSize(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetSize,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetSize(self, *_args, **_kwargs)
if val: val = wxSizePtr(val) ; val.thisown = 1
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetPosition,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def GetDimension(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetDimension,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetDimension(self, *_args, **_kwargs)
return val
def GetBitmap(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetBitmap,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetBitmap(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val) ; val.thisown = 1
return val
def GetIcon(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetIcon,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetIcon(self, *_args, **_kwargs)
if val: val = wxIconPtr(val) ; val.thisown = 1
return val
def GetFont(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetFont,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def SetupWindow(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_SetupWindow,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_SetupWindow(self, *_args, **_kwargs)
return val
def CreateChildren(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_CreateChildren,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_CreateChildren(self, *_args, **_kwargs)
return val
def CreateChildrenPrivately(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_CreateChildrenPrivately,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_CreateChildrenPrivately(self, *_args, **_kwargs)
return val
def CreateResFromNode(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_CreateResFromNode,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_CreateResFromNode(self, *_args, **_kwargs)
return val
def GetCurFileSystem(self, *_args, **_kwargs):
- val = apply(xrcc.wxXmlResourceHandler_GetCurFileSystem,(self,) + _args, _kwargs)
+ val = xrcc.wxXmlResourceHandler_GetCurFileSystem(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxXmlResourceHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxXmlResourceHandler(wxXmlResourceHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(xrcc.new_wxXmlResourceHandler,_args,_kwargs)
+ self.this = xrcc.new_wxXmlResourceHandler(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxXmlResourceHandler)
@@ -512,12 +512,12 @@ wxXmlResource_AddSubclassFactory = xrcc.wxXmlResource_AddSubclassFactory
wxXmlResource_GetXRCID = xrcc.wxXmlResource_GetXRCID
def wxXmlResource_Get(*_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_Get,_args,_kwargs)
+ val = xrcc.wxXmlResource_Get(*_args,**_kwargs)
if val: val = wxXmlResourcePtr(val)
return val
def wxXmlResource_Set(*_args, **_kwargs):
- val = apply(xrcc.wxXmlResource_Set,_args,_kwargs)
+ val = xrcc.wxXmlResource_Set(*_args,**_kwargs)
if val: val = wxXmlResourcePtr(val)
return val
diff --git a/wxPython/demo/About.py b/wxPython/demo/About.py
index 3e22739553..43ac255556 100644
--- a/wxPython/demo/About.py
+++ b/wxPython/demo/About.py
@@ -1,12 +1,12 @@
import sys
-from wxPython.wx import *
-from wxPython.html import *
-import wxPython.lib.wxpTag
+import wx # This module uses the new wx namespace
+import wx.html
+import wx.lib.wxpTag
#---------------------------------------------------------------------------
-class MyAboutBox(wxDialog):
+class MyAboutBox(wx.Dialog):
text = '''
@@ -29,36 +29,40 @@ sit back and enjoy. Be sure to take a peek at the source code for each
demo item so you can learn how to use the classes yourself.
wxPython is brought to you by Robin Dunn and
-Total Control Software, Copyright (c) 1997-2002.
+Total Control Software, Copyright (c) 1997-2003.
Please see license.txt for licensing information.
-
+
-
+
'''
def __init__(self, parent):
- wxDialog.__init__(self, parent, -1, 'About the wxPython demo',)
- html = wxHtmlWindow(self, -1, size=(420, -1))
+ wx.Dialog.__init__(self, parent, -1, 'About the wxPython demo',)
+ html = wx.html.HtmlWindow(self, -1, size=(420, -1))
py_version = sys.version.split()[0]
- html.SetPage(self.text % (wx.__version__, py_version))
- btn = html.FindWindowById(wxID_OK)
+ html.SetPage(self.text % (wx.VERSION_STRING, py_version))
+ btn = html.FindWindowById(wx.ID_OK)
btn.SetDefault()
ir = html.GetInternalRepresentation()
html.SetSize( (ir.GetWidth()+25, ir.GetHeight()+25) )
self.SetClientSize(html.GetSize())
- self.CentreOnParent(wxBOTH)
+ self.CentreOnParent(wx.BOTH)
#---------------------------------------------------------------------------
-
-
+if __name__ == '__main__':
+ app = wx.PySimpleApp()
+ dlg = MyAboutBox(None)
+ dlg.ShowModal()
+ dlg.Destroy()
+ app.MainLoop()
diff --git a/wxPython/demo/AnalogClockWindow.py b/wxPython/demo/AnalogClockWindow.py
new file mode 100644
index 0000000000..7d85145a33
--- /dev/null
+++ b/wxPython/demo/AnalogClockWindow.py
@@ -0,0 +1,79 @@
+
+
+
+from wxPython.wx import *
+from wxPython.lib.analogclock import AnalogClockWindow
+
+#----------------------------------------------------------------------
+
+class TestPanel(wxPanel):
+ def __init__(self, parent, log):
+ self.log = log
+ wxPanel.__init__(self, parent, -1)
+
+ c1 = AnalogClockWindow(self)
+ c1.SetBackgroundColour("RED")
+ c1.SetHandsColour("BLUE")
+ c1.SetTickMarkColours("WHITE")
+
+ c2 = AnalogClockWindow(self)
+ c2.SetBackgroundColour("WHITE")
+ c2.SetHandsColour("RED")
+ c2.SetTickMarkColours("BLUE")
+
+ c3 = AnalogClockWindow(self)
+ c3.SetBackgroundColour("BLUE")
+ c3.SetHandsColour("WHITE")
+ c3.SetTickMarkColours("RED")
+
+ c4 = AnalogClockWindow(self, style=wxRAISED_BORDER)
+ c4.SetTickMarkStyle(AnalogClockWindow.TICKS_CIRCLE)
+
+ c5 = AnalogClockWindow(self)
+ c5.SetTickMarkStyle(AnalogClockWindow.TICKS_NONE)
+
+ c6 = AnalogClockWindow(self, style=wxSUNKEN_BORDER)
+
+
+ # layout the clocks in a grid
+ gs = wxGridSizer(2, 3, 4, 4)
+ gs.Add(c1, 0, wxEXPAND)
+ gs.Add(c2, 0, wxEXPAND)
+ gs.Add(c3, 0, wxEXPAND)
+ gs.Add(c4, 0, wxEXPAND)
+ gs.Add(c5, 0, wxEXPAND)
+ gs.Add(c6, 0, wxEXPAND)
+
+ # put it in another sizer for a border
+ sizer = wxBoxSizer(wxVERTICAL)
+ sizer.Add(gs, 1, wxEXPAND|wxALL, 10)
+
+ self.SetSizer(sizer)
+
+
+#----------------------------------------------------------------------
+
+def runTest(frame, nb, log):
+ win = TestPanel(nb, log)
+ return win
+
+#----------------------------------------------------------------------
+
+
+
+overview = """
+AnalogClockWindow
+
+This is a nice little clock class that was contributed to by several
+members of the wxPython-users group.
+
+
+"""
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/ColourDB.py b/wxPython/demo/ColourDB.py
index 8e00407dba..05fbccdad1 100644
--- a/wxPython/demo/ColourDB.py
+++ b/wxPython/demo/ColourDB.py
@@ -127,3 +127,10 @@ def runTest(frame, nb, log):
overview = """
"""
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/ContextHelp.py b/wxPython/demo/ContextHelp.py
index c115f22c44..7bca0c5156 100644
--- a/wxPython/demo/ContextHelp.py
+++ b/wxPython/demo/ContextHelp.py
@@ -90,3 +90,10 @@ help into your applicaiton using the wxSimpleHelpProvider class.
#----------------------------------------------------------------------
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/DragAndDrop.py b/wxPython/demo/DragAndDrop.py
index e99abc3660..c69091d378 100644
--- a/wxPython/demo/DragAndDrop.py
+++ b/wxPython/demo/DragAndDrop.py
@@ -206,11 +206,38 @@ def runTest(frame, nb, log):
-overview = """\
-This demo shows some examples of data transfer through clipboard or drag and drop. In wxWindows, these two ways to transfer data (either between different applications or inside one and the same) are very similar which allows to implement both of them using almost the same code - or, in other words, if you implement drag and drop support for your application, you get clipboard support for free and vice versa.
+overview = """\
+This demo shows some examples of data transfer through clipboard or
+drag and drop. In wxWindows, these two ways to transfer data (either
+between different applications or inside one and the same) are very
+similar which allows to implement both of them using almost the same
+code - or, in other words, if you implement drag and drop support for
+your application, you get clipboard support for free and vice versa.
+
+At the heart of both clipboard and drag and drop operations lies the
+wxDataObject class. The objects of this class (or, to be precise,
+classes derived from it) represent the data which is being carried by
+the mouse during drag and drop operation or copied to or pasted from
+the clipboard. wxDataObject is a "smart" piece of data because it
+knows which formats it supports (see GetFormatCount and GetAllFormats)
+and knows how to render itself in any of them (see GetDataHere). It
+can also receive its value from the outside in a format it supports if
+it implements the SetData method. Please see the documentation of this
+class for more details.
+
+Both clipboard and drag and drop operations have two sides: the source
+and target, the data provider and the data receiver. These which may
+be in the same application and even the same window when, for example,
+you drag some text from one position to another in a word
+processor. Let us describe what each of them should do.
+
+"""
-At the heart of both clipboard and drag and drop operations lies the wxDataObject class. The objects of this class (or, to be precise, classes derived from it) represent the data which is being carried by the mouse during drag and drop operation or copied to or pasted from the clipboard. wxDataObject is a "smart" piece of data because it knows which formats it supports (see GetFormatCount and GetAllFormats) and knows how to render itself in any of them (see GetDataHere). It can also receive its value from the outside in a format it supports if it implements the SetData method. Please see the documentation of this class for more details.
-Both clipboard and drag and drop operations have two sides: the source and target, the data provider and the data receiver. These which may be in the same application and even the same window when, for example, you drag some text from one position to another in a word processor. Let us describe what each of them should do.
-"""
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/FancyText.py b/wxPython/demo/FancyText.py
index f504ccc21c..959a0dd1b5 100644
--- a/wxPython/demo/FancyText.py
+++ b/wxPython/demo/FancyText.py
@@ -38,3 +38,11 @@ def runTest(frame, nb, log):
overview = fancytext.__doc__.replace("<", "<")
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/FileBrowseButton.py b/wxPython/demo/FileBrowseButton.py
index 9967ea355f..798f201259 100644
--- a/wxPython/demo/FileBrowseButton.py
+++ b/wxPython/demo/FileBrowseButton.py
@@ -74,3 +74,12 @@ overview = """
""" % ( FileBrowseButton.__doc__,
FileBrowseButtonWithHistory.__doc__ ,
str(DirBrowseButton.__doc__) )
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/FontEnumerator.py b/wxPython/demo/FontEnumerator.py
index 67b5f6ef10..3ac7e51d4a 100644
--- a/wxPython/demo/FontEnumerator.py
+++ b/wxPython/demo/FontEnumerator.py
@@ -24,7 +24,7 @@ class TestPanel(wxPanel):
row = wxBoxSizer(wxHORIZONTAL)
row.Add(s1, 0, wxALL, 5)
row.Add(self.lb1, 0, wxALL, 5)
- row.Add(self.txt, 0, wxALL, 5)
+ row.Add(self.txt, 0, wxALL|wxADJUST_MINSIZE, 5)
sizer = wxBoxSizer(wxVERTICAL)
sizer.Add(row, 0, wxALL, 30)
@@ -32,13 +32,27 @@ class TestPanel(wxPanel):
self.Layout()
self.lb1.SetSelection(0)
+ self.OnSelect(None)
+ wxFutureCall(300, self.SetTextSize)
+
+
+ def SetTextSize(self):
+ self.txt.SetSize(self.txt.GetBestSize())
def OnSelect(self, evt):
+ #print "OnSelect: "
face = self.lb1.GetStringSelection()
+ #print '\t '+face
font = wxFont(28, wxDEFAULT, wxNORMAL, wxNORMAL, False, face)
+ #print "\t got font"
+ self.txt.SetLabel(face)
+ #print "\t set label"
self.txt.SetFont(font)
- self.txt.SetSize(self.txt.GetBestSize())
+ #print "\t set font"
+ #self.txt.SetSize(self.txt.GetBestSize())
+ #print "\t set size"
+
## st = font.GetNativeFontInfo().ToString()
## ni2 = wxNativeFontInfo()
diff --git a/wxPython/demo/GridDragAndDrop.py b/wxPython/demo/GridDragAndDrop.py
new file mode 100644
index 0000000000..aae9d5f2dc
--- /dev/null
+++ b/wxPython/demo/GridDragAndDrop.py
@@ -0,0 +1,104 @@
+"""
+Example showing how to make a grid a drop target for files.
+
+"""
+
+from wxPython.wx import *
+from wxPython.grid import *
+
+#---------------------------------------------------------------------------
+# Set VIRTUAL to 1 to use a virtual grid
+
+VIRTUAL = 1
+
+class GridFileDropTarget(wxFileDropTarget):
+ def __init__(self, grid):
+ wxFileDropTarget.__init__(self)
+ self.grid = grid
+
+ def OnDropFiles(self, x, y, filenames):
+ # the x,y coordinates here are Unscrolled coordinates. They must be changed
+ # to scrolled coordinates.
+ x, y = self.grid.CalcUnscrolledPosition(x, y)
+
+ # now we need to get the row and column from the grid
+ # but we need to first remove the RowLabel and ColumnLabel
+ # bounding boxes
+ # Why this isn't done for us, I'll never know...
+ x = x - self.grid.GetGridRowLabelWindow().GetRect().width
+ y = y - self.grid.GetGridColLabelWindow().GetRect().height
+ col = self.grid.XToCol(x)
+ row = self.grid.YToRow(y)
+
+ if row > -1 and col > -1:
+ self.grid.SetCellValue(row, col, filenames[0])
+ self.grid.AutoSizeColumn(col)
+ self.grid.Refresh()
+
+
+
+class FooTable(wxPyGridTableBase):
+ def __init__(self):
+ wxPyGridTableBase.__init__(self)
+ self.dropTargets = {(0,0):"Drag",
+ (1,0):"A",
+ (2,0):"File",
+ (3,0):"To",
+ (4,0):"A",
+ (5,0):"Cell"}
+ def GetNumberCols(self):
+ return 100
+ def GetNumberRows(self):
+ return 100
+ def GetValue(self, row, col):
+ return self.dropTargets.get((row, col), "")
+
+
+
+class SimpleGrid(wxGrid):
+ def __init__(self, parent, log):
+ wxGrid.__init__(self, parent, -1)
+ self.log = log
+ self.moveTo = None
+ if VIRTUAL:
+ self.table = FooTable()
+ self.SetTable(self.table)
+ else:
+ self.CreateGrid(25, 25)
+
+ # set the drag and drop target
+ dropTarget = GridFileDropTarget(self)
+ self.SetDropTarget(dropTarget)
+ self.EnableDragRowSize()
+ self.EnableDragColSize()
+
+ def SetCellValue(self, row, col, value):
+ if VIRTUAL:
+ self.table.dropTargets[row, col] = value
+ else:
+ wxGrid.SetCellValue(self, row, col, value)
+
+
+
+class TestFrame(wxFrame):
+ def __init__(self, parent, log):
+ wxFrame.__init__(self, parent, -1, "DragAndDrop Grid", size=(640,480))
+ grid = SimpleGrid(self, log)
+
+
+
+#---------------------------------------------------------------------------
+
+if __name__ == '__main__':
+ import sys
+ app = wxPySimpleApp()
+ frame = TestFrame(None, sys.stdout)
+ frame.Show(True)
+ app.MainLoop()
+
+
+#---------------------------------------------------------------------------
+
+
+
+
diff --git a/wxPython/demo/GridSimple.py b/wxPython/demo/GridSimple.py
index 89c2ec6e07..267867c434 100644
--- a/wxPython/demo/GridSimple.py
+++ b/wxPython/demo/GridSimple.py
@@ -64,6 +64,11 @@ class SimpleGrid(wxGrid): ##, wxGridAutoEditMixin):
self.SetCellValue(11, 1, "This cell is set to span 3 rows and 3 columns");
+ editor = wxGridCellTextEditor()
+ editor.SetParameters('10')
+ self.SetCellEditor(0, 4, editor)
+ self.SetCellValue(0, 4, "Limited text")
+
# test all the events
EVT_GRID_CELL_LEFT_CLICK(self, self.OnCellLeftClick)
diff --git a/wxPython/demo/ImageBrowser.py b/wxPython/demo/ImageBrowser.py
index 4e234695e0..4a38b95d7c 100644
--- a/wxPython/demo/ImageBrowser.py
+++ b/wxPython/demo/ImageBrowser.py
@@ -4,7 +4,7 @@
#
# Author: Lorne White (email: lorne.white@telusplanet.net)
#
-# Version 0.5
+# Version 0.5
# Date: Feb 26, 2001
# Licence: wxWindows license
#----------------------------------------------------------------------------
@@ -20,11 +20,11 @@ def runTest(frame, nb, log):
initial_dir = os.path.join(dir, 'bitmaps') # set the initial directory for the demo bitmaps
win = ImageDialog(frame, initial_dir) # open the image browser dialog
win.Centre()
- if win.ShowModal() == wxID_OK:
+ if win.ShowModal() == wxID_OK:
log.WriteText("You Selected File: " + win.GetFile()) # show the selected file
else:
log.WriteText("You pressed Cancel\n")
-
+
#---------------------------------------------------------------------------
@@ -38,3 +38,12 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/LayoutAnchors.py b/wxPython/demo/LayoutAnchors.py
index 04b0c3f92c..f4aa323ed6 100644
--- a/wxPython/demo/LayoutAnchors.py
+++ b/wxPython/demo/LayoutAnchors.py
@@ -136,5 +136,8 @@ overview = """
-
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/Layoutf.py b/wxPython/demo/Layoutf.py
index cde4ad405f..b92faffeda 100644
--- a/wxPython/demo/Layoutf.py
+++ b/wxPython/demo/Layoutf.py
@@ -60,3 +60,12 @@ def runTest(frame, nb, log):
overview = Layoutf.__doc__
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py
index 40f9425b84..fd557f0171 100644
--- a/wxPython/demo/Main.py
+++ b/wxPython/demo/Main.py
@@ -12,10 +12,9 @@
#----------------------------------------------------------------------------
import sys, os, time
-from wxPython.wx import *
-from wxPython.html import wxHtmlWindow
-##from wxPython.stc import *
+import wx # This module uses the new wx namespace
+import wx.html
import images
@@ -26,9 +25,14 @@ import images
_treeList = [
# new stuff
('Recent Additions', [
- 'wxIntCtrl',
- 'wxPyColourChooser',
'wxScrolledPanel',
+ 'ShapedWindow',
+ 'NewNamespace',
+ 'PopupMenu',
+ 'AnalogClockWindow',
+ 'MaskedEditControls',
+ 'wxTreeListCtrl',
+ 'wxGrid_MegaExample',
]),
# managed windows == things with a (optional) caption you can close
@@ -45,6 +49,7 @@ _treeList = [
'wxColourDialog',
'wxDirDialog',
'wxFileDialog',
+ 'wxFileDialog_Save',
'wxFindReplaceDialog',
'wxFontDialog',
'wxMessageDialog',
@@ -65,6 +70,7 @@ _treeList = [
# core controls
('Core Windows/Controls', [
+ 'PopupMenu',
'wxButton',
'wxCheckBox',
'wxCheckListBox',
@@ -73,6 +79,7 @@ _treeList = [
'wxGauge',
'wxGenericDirCtrl',
'wxGrid',
+ 'wxGrid_MegaExample',
'wxListBox',
'wxListCtrl',
'wxListCtrl_virtual',
@@ -101,14 +108,16 @@ _treeList = [
('More Windows/Controls', [
#'wxFloatBar', deprecated
#'wxMVCTree', deprecated
- #'wxRightTextCtrl', deprecated as we have wxTE_RIGHT now.
+ #'wxRightTextCtrl', deprecated as we have wxTE_RIGHT now.
+ 'AnalogClockWindow',
'ColourSelect',
'ContextHelp',
'FancyText',
'FileBrowseButton',
'GenericButtons',
+ 'MaskedEditControls',
+ 'PyShell',
'PyCrust',
- 'PyCrustWithFilling',
'SplitTree',
'TablePrint',
'Throbber',
@@ -128,6 +137,7 @@ _treeList = [
'wxStyledTextCtrl_1',
'wxStyledTextCtrl_2',
'wxTimeCtrl',
+ 'wxTreeListCtrl',
]),
# How to lay out the controls in a frame/dialog
@@ -204,9 +214,9 @@ _treeList = [
#---------------------------------------------------------------------------
-class MyLog(wxPyLog):
+class MyLog(wx.PyLog):
def __init__(self, textCtrl, logTime=0):
- wxPyLog.__init__(self)
+ wx.PyLog.__init__(self)
self.tc = textCtrl
self.logTime = logTime
@@ -218,10 +228,63 @@ class MyLog(wxPyLog):
self.tc.AppendText(message + '\n')
-class MyTP(wxPyTipProvider):
+class MyTP(wx.PyTipProvider):
def GetTip(self):
return "This is my tip"
+#---------------------------------------------------------------------------
+# A class to be used to display source code in the demo. Try using the
+# wxSTC in the wxStyledTextCtrl_2 sample first, fall back to wxTextCtrl
+# if there is an error, such as the stc module not being present.
+
+try:
+ ##raise ImportError
+ from wx import stc
+ from wxStyledTextCtrl_2 import PythonSTC
+ class DemoCodeViewer(PythonSTC):
+ def __init__(self, parent, ID):
+ PythonSTC.__init__(self, parent, ID)
+ self.SetEdgeMode(stc.STC_EDGE_NONE)
+ self.SetSelBackground(True, wx.SystemSettings_GetColour(wx.SYS_COLOUR_HIGHLIGHT))
+ self.SetSelForeground(True, wx.SystemSettings_GetColour(wx.SYS_COLOUR_HIGHLIGHTTEXT))
+
+ # Some methods to make it compatible with how the wxTextCtrl is used
+ def SetValue(self, value):
+ self.SetReadOnly(False)
+ self.SetText(value)
+ self.SetReadOnly(True)
+
+ def Clear(self):
+ self.ClearAll()
+
+ def SetInsertionPoint(self, pos):
+ self.SetCurrentPos(pos)
+
+ def ShowPosition(self, pos):
+ self.GotoPos(pos)
+
+ def GetLastPosition(self):
+ return self.GetLength()
+
+ def GetRange(self, start, end):
+ return self.GetTextRange(start, end)
+
+ def GetSelection(self):
+ return self.GetAnchor(), self.GetCurrentPos()
+
+ def SetSelection(self, start, end):
+ self.SetSelectionStart(start)
+ self.SetSelectionEnd(end)
+
+
+except ImportError:
+ class DemoCodeViewer(wx.TextCtrl):
+ def __init__(self, parent, ID):
+ wx.TextCtrl.__init__(self, parent, ID, style =
+ wx.TE_MULTILINE | wx.TE_READONLY |
+ wx.HSCROLL | wx.TE_RICH2 | wx.TE_NOHIDESEL)
+
+
#---------------------------------------------------------------------------
def opj(path):
@@ -231,12 +294,12 @@ def opj(path):
#---------------------------------------------------------------------------
-class wxPythonDemo(wxFrame):
+class wxPythonDemo(wx.Frame):
overviewText = "wxPython Overview"
def __init__(self, parent, id, title):
- wxFrame.__init__(self, parent, -1, title, size = (800, 600),
- style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
+ wx.Frame.__init__(self, parent, -1, title, size = (800, 600),
+ style=wx.DEFAULT_FRAME_STYLE|wx.NO_FULL_REPAINT_ON_RESIZE)
self.cwd = os.getcwd()
self.curOverview = ""
@@ -245,97 +308,97 @@ class wxPythonDemo(wxFrame):
icon = images.getMondrianIcon()
self.SetIcon(icon)
- if wxPlatform == '__WXMSW__':
+ if wx.Platform == '__WXMSW__':
# setup a taskbar icon, and catch some events from it
- self.tbicon = wxTaskBarIcon()
+ self.tbicon = wx.TaskBarIcon()
self.tbicon.SetIcon(icon, "wxPython Demo")
- EVT_TASKBAR_LEFT_DCLICK(self.tbicon, self.OnTaskBarActivate)
- EVT_TASKBAR_RIGHT_UP(self.tbicon, self.OnTaskBarMenu)
- EVT_MENU(self.tbicon, self.TBMENU_RESTORE, self.OnTaskBarActivate)
- EVT_MENU(self.tbicon, self.TBMENU_CLOSE, self.OnTaskBarClose)
+ wx.EVT_TASKBAR_LEFT_DCLICK(self.tbicon, self.OnTaskBarActivate)
+ wx.EVT_TASKBAR_RIGHT_UP(self.tbicon, self.OnTaskBarMenu)
+ wx.EVT_MENU(self.tbicon, self.TBMENU_RESTORE, self.OnTaskBarActivate)
+ wx.EVT_MENU(self.tbicon, self.TBMENU_CLOSE, self.OnTaskBarClose)
- wxCallAfter(self.ShowTip)
+ wx.CallAfter(self.ShowTip)
self.otherWin = None
- EVT_IDLE(self, self.OnIdle)
- EVT_CLOSE(self, self.OnCloseWindow)
- EVT_ICONIZE(self, self.OnIconfiy)
- EVT_MAXIMIZE(self, self.OnMaximize)
+ wx.EVT_IDLE(self, self.OnIdle)
+ wx.EVT_CLOSE(self, self.OnCloseWindow)
+ wx.EVT_ICONIZE(self, self.OnIconfiy)
+ wx.EVT_MAXIMIZE(self, self.OnMaximize)
- self.Centre(wxBOTH)
- self.CreateStatusBar(1, wxST_SIZEGRIP)
+ self.Centre(wx.BOTH)
+ self.CreateStatusBar(1, wx.ST_SIZEGRIP)
- splitter = wxSplitterWindow(self, -1, style=wxNO_3D|wxSP_3D)
- splitter2 = wxSplitterWindow(splitter, -1, style=wxNO_3D|wxSP_3D)
+ splitter = wx.SplitterWindow(self, -1, style=wx.NO_3D|wx.SP_3D)
+ splitter2 = wx.SplitterWindow(splitter, -1, style=wx.NO_3D|wx.SP_3D)
def EmptyHandler(evt): pass
- EVT_ERASE_BACKGROUND(splitter, EmptyHandler)
- EVT_ERASE_BACKGROUND(splitter2, EmptyHandler)
+ wx.EVT_ERASE_BACKGROUND(splitter, EmptyHandler)
+ wx.EVT_ERASE_BACKGROUND(splitter2, EmptyHandler)
# Prevent TreeCtrl from displaying all items after destruction when True
self.dying = False
# Make a File menu
- self.mainmenu = wxMenuBar()
- menu = wxMenu()
- exitID = wxNewId()
+ self.mainmenu = wx.MenuBar()
+ menu = wx.Menu()
+ exitID = wx.NewId()
menu.Append(exitID, 'E&xit\tAlt-X', 'Get the heck outta here!')
- EVT_MENU(self, exitID, self.OnFileExit)
- wxApp_SetMacExitMenuItemId(exitID)
+ wx.EVT_MENU(self, exitID, self.OnFileExit)
+ wx.App_SetMacExitMenuItemId(exitID)
self.mainmenu.Append(menu, '&File')
# Make a Demo menu
- menu = wxMenu()
+ menu = wx.Menu()
for item in _treeList:
- submenu = wxMenu()
+ submenu = wx.Menu()
for childItem in item[1]:
- mID = wxNewId()
+ mID = wx.NewId()
submenu.Append(mID, childItem)
- EVT_MENU(self, mID, self.OnDemoMenu)
- menu.AppendMenu(wxNewId(), item[0], submenu)
+ wx.EVT_MENU(self, mID, self.OnDemoMenu)
+ menu.AppendMenu(wx.NewId(), item[0], submenu)
self.mainmenu.Append(menu, '&Demo')
# Make a Help menu
- helpID = wxNewId()
- findID = wxNewId()
- findnextID = wxNewId()
- menu = wxMenu()
+ helpID = wx.NewId()
+ findID = wx.NewId()
+ findnextID = wx.NewId()
+ menu = wx.Menu()
menu.Append(findID, '&Find\tCtrl-F', 'Find in the Demo Code')
menu.Append(findnextID, 'Find &Next\tF3', 'Find Next')
menu.AppendSeparator()
menu.Append(helpID, '&About\tCtrl-H', 'wxPython RULES!!!')
- wxApp_SetMacAboutMenuItemId(helpID)
- EVT_MENU(self, helpID, self.OnHelpAbout)
- EVT_MENU(self, findID, self.OnHelpFind)
- EVT_MENU(self, findnextID, self.OnFindNext)
- EVT_COMMAND_FIND(self, -1, self.OnFind)
- EVT_COMMAND_FIND_NEXT(self, -1, self.OnFind)
- EVT_COMMAND_FIND_CLOSE(self, -1 , self.OnFindClose)
+ wx.App_SetMacAboutMenuItemId(helpID)
+ wx.EVT_MENU(self, helpID, self.OnHelpAbout)
+ wx.EVT_MENU(self, findID, self.OnHelpFind)
+ wx.EVT_MENU(self, findnextID, self.OnFindNext)
+ wx.EVT_COMMAND_FIND(self, -1, self.OnFind)
+ wx.EVT_COMMAND_FIND_NEXT(self, -1, self.OnFind)
+ wx.EVT_COMMAND_FIND_CLOSE(self, -1 , self.OnFindClose)
self.mainmenu.Append(menu, '&Help')
self.SetMenuBar(self.mainmenu)
- self.finddata = wxFindReplaceData()
+ self.finddata = wx.FindReplaceData()
if 0:
# This is another way to set Accelerators, in addition to
# using the '\t' syntax in the menu items.
- aTable = wxAcceleratorTable([(wxACCEL_ALT, ord('X'), exitID),
- (wxACCEL_CTRL, ord('H'), helpID),
- (wxACCEL_CTRL, ord('F'), findID),
- (wxACCEL_NORMAL, WXK_F3, findnextID)])
+ aTable = wx.AcceleratorTable([(wx.ACCEL_ALT, ord('X'), exitID),
+ (wx.ACCEL_CTRL, ord('H'), helpID),
+ (wx.ACCEL_CTRL, ord('F'), findID),
+ (wx.ACCEL_NORMAL, WXK_F3, findnextID)
+ ])
self.SetAcceleratorTable(aTable)
# Create a TreeCtrl
- tID = wxNewId()
+ tID = wx.NewId()
self.treeMap = {}
- self.tree = wxTreeCtrl(splitter, tID,
- style=wxTR_HAS_BUTTONS |
- wxTR_HAS_VARIABLE_ROW_HEIGHT
+ self.tree = wx.TreeCtrl(splitter, tID,
+ style=wx.TR_HAS_BUTTONS |
+ wx.TR_HAS_VARIABLE_ROW_HEIGHT
)
- #self.tree.SetBackgroundColour(wxNamedColour("Pink"))
root = self.tree.AddRoot("wxPython Overview")
firstChild = None
for item in _treeList:
@@ -347,57 +410,56 @@ class wxPythonDemo(wxFrame):
self.tree.Expand(root)
self.tree.Expand(firstChild)
- EVT_TREE_ITEM_EXPANDED (self.tree, tID, self.OnItemExpanded)
- EVT_TREE_ITEM_COLLAPSED (self.tree, tID, self.OnItemCollapsed)
- EVT_TREE_SEL_CHANGED (self.tree, tID, self.OnSelChanged)
- EVT_LEFT_DOWN (self.tree, self.OnTreeLeftDown)
+ wx.EVT_TREE_ITEM_EXPANDED (self.tree, tID, self.OnItemExpanded)
+ wx.EVT_TREE_ITEM_COLLAPSED (self.tree, tID, self.OnItemCollapsed)
+ wx.EVT_TREE_SEL_CHANGED (self.tree, tID, self.OnSelChanged)
+ wx.EVT_LEFT_DOWN (self.tree, self.OnTreeLeftDown)
# Create a Notebook
- self.nb = wxNotebook(splitter2, -1, style=wxCLIP_CHILDREN)
+ self.nb = wx.Notebook(splitter2, -1, style=wx.CLIP_CHILDREN)
- # Set up a wxHtmlWindow on the Overview Notebook page
+ # Set up a wx.html.HtmlWindow on the Overview Notebook page
# we put it in a panel first because there seems to be a
# refresh bug of some sort (wxGTK) when it is directly in
# the notebook...
if 0: # the old way
- self.ovr = wxHtmlWindow(self.nb, -1, size=(400, 400))
+ self.ovr = wx.html.HtmlWindow(self.nb, -1, size=(400, 400))
self.nb.AddPage(self.ovr, self.overviewText)
- else: # hopefully I can remove this hacky code soon, see bug #216861
- panel = wxPanel(self.nb, -1, style=wxCLIP_CHILDREN)
- self.ovr = wxHtmlWindow(panel, -1, size=(400, 400))
+ else: # hopefully I can remove this hacky code soon, see SF bug #216861
+ panel = wx.Panel(self.nb, -1, style=wx.CLIP_CHILDREN)
+ self.ovr = wx.html.HtmlWindow(panel, -1, size=(400, 400))
self.nb.AddPage(panel, self.overviewText)
def OnOvrSize(evt, ovr=self.ovr):
ovr.SetSize(evt.GetSize())
- EVT_SIZE(panel, OnOvrSize)
- EVT_ERASE_BACKGROUND(panel, EmptyHandler)
+ wx.EVT_SIZE(panel, OnOvrSize)
+ wx.EVT_ERASE_BACKGROUND(panel, EmptyHandler)
self.SetOverview(self.overviewText, overview)
- # Set up a TextCtrl on the Demo Code Notebook page
- self.txt = wxTextCtrl(self.nb, -1,
- style = wxTE_MULTILINE|wxTE_READONLY|
- wxHSCROLL|wxTE_RICH2|wxTE_NOHIDESEL)
+ # Set up a notebook page for viewing the source code of each sample
+ self.txt = DemoCodeViewer(self.nb, -1)
self.nb.AddPage(self.txt, "Demo Code")
+ self.GetDemoFile('Main.py')
# Set up a log on the View Log Notebook page
- self.log = wxTextCtrl(splitter2, -1,
- style = wxTE_MULTILINE|wxTE_READONLY|wxHSCROLL)
+ self.log = wx.TextCtrl(splitter2, -1,
+ style = wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL)
# Set the wxWindows log target to be this textctrl
- #wxLog_SetActiveTarget(wxLogTextCtrl(self.log))
+ #wx.Log_SetActiveTarget(wx.LogTextCtrl(self.log))
- # But instead of the above we want to show how to use our own wxLog class
- wxLog_SetActiveTarget(MyLog(self.log))
+ # But instead of the above we want to show how to use our own wx.Log class
+ wx.Log_SetActiveTarget(MyLog(self.log))
# for serious debugging
- #wxLog_SetActiveTarget(wxLogStderr())
- #wxLog_SetTraceMask(wxTraceMessages)
+ #wx.Log_SetActiveTarget(wx.LogStderr())
+ #wx.Log_SetTraceMask(wx.TraceMessages)
self.Show(True)
@@ -425,14 +487,14 @@ class wxPythonDemo(wxFrame):
self.tree.EnsureVisible(selectedDemo)
- wxLogMessage('window handle: %s' % self.GetHandle())
+ wx.LogMessage('window handle: %s' % self.GetHandle())
#---------------------------------------------
def WriteText(self, text):
if text[-1:] == '\n':
text = text[:-1]
- wxLogMessage(text)
+ wx.LogMessage(text)
def write(self, txt):
@@ -441,13 +503,13 @@ class wxPythonDemo(wxFrame):
#---------------------------------------------
def OnItemExpanded(self, event):
item = event.GetItem()
- wxLogMessage("OnItemExpanded: %s" % self.tree.GetItemText(item))
+ wx.LogMessage("OnItemExpanded: %s" % self.tree.GetItemText(item))
event.Skip()
#---------------------------------------------
def OnItemCollapsed(self, event):
item = event.GetItem()
- wxLogMessage("OnItemCollapsed: %s" % self.tree.GetItemText(item))
+ wx.LogMessage("OnItemCollapsed: %s" % self.tree.GetItemText(item))
event.Skip()
#---------------------------------------------
@@ -478,7 +540,7 @@ class wxPythonDemo(wxFrame):
if self.window is not None:
if hasattr(self.window, "ShutdownDemo"):
self.window.ShutdownDemo()
- wxSafeYield() # in case the page has pending events
+ wx.SafeYield() # in case the page has pending events
self.nb.DeletePage(2)
if itemText == self.overviewText:
@@ -489,19 +551,19 @@ class wxPythonDemo(wxFrame):
else:
if os.path.exists(itemText + '.py'):
- wxBeginBusyCursor()
- wxLogMessage("Running demo %s.py..." % itemText)
+ wx.BeginBusyCursor()
+ wx.LogMessage("Running demo %s.py..." % itemText)
try:
self.GetDemoFile(itemText + '.py')
module = __import__(itemText, globals())
self.SetOverview(itemText + " Overview", module.overview)
finally:
- wxEndBusyCursor()
+ wx.EndBusyCursor()
self.tree.Refresh()
# in case runTest is modal, make sure things look right...
self.nb.Refresh();
- wxSafeYield()
+ wx.SafeYield()
self.window = module.runTest(self, self.nb, self) ###
if self.window is not None:
@@ -523,7 +585,7 @@ class wxPythonDemo(wxFrame):
try:
self.txt.SetValue(open(filename).read())
except IOError:
- self.txt.WriteText("Cannot open %s file." % filename)
+ self.txt.SetValue("Cannot open %s file." % filename)
self.txt.SetInsertionPoint(0)
self.txt.ShowPosition(0)
@@ -550,10 +612,10 @@ class wxPythonDemo(wxFrame):
def OnHelpFind(self, event):
self.nb.SetSelection(1)
- self.finddlg = wxFindReplaceDialog(self, self.finddata, "Find",
- wxFR_NOUPDOWN |
- wxFR_NOMATCHCASE |
- wxFR_NOWHOLEWORD)
+ self.finddlg = wx.FindReplaceDialog(self, self.finddata, "Find",
+ wx.FR_NOUPDOWN |
+ wx.FR_NOMATCHCASE |
+ wx.FR_NOWHOLEWORD)
self.finddlg.Show(True)
def OnFind(self, event):
@@ -568,9 +630,9 @@ class wxPythonDemo(wxFrame):
start = 0
loc = textstring.find(findstring, start)
if loc == -1:
- dlg = wxMessageDialog(self, 'Find String Not Found',
+ dlg = wx.MessageDialog(self, 'Find String Not Found',
'Find String Not Found in Demo File',
- wxOK | wxICON_INFORMATION)
+ wx.OK | wx.ICON_INFORMATION)
dlg.ShowModal()
dlg.Destroy()
if self.finddlg:
@@ -579,8 +641,8 @@ class wxPythonDemo(wxFrame):
return
else:
self.finddlg.Destroy()
- self.txt.SetSelection(loc, loc + len(findstring))
self.txt.ShowPosition(loc)
+ self.txt.SetSelection(loc, loc + len(findstring))
@@ -620,9 +682,9 @@ class wxPythonDemo(wxFrame):
except IOError:
showTip, index = (1, 0)
if showTip:
- tp = wxCreateFileTipProvider(opj("data/tips.txt"), index)
+ tp = wx.CreateFileTipProvider(opj("data/tips.txt"), index)
##tp = MyTP(0)
- showTip = wxShowTip(self, tp)
+ showTip = wx.ShowTip(self, tp)
index = tp.GetCurrentTip()
open(opj("data/showTips"), "w").write(str( (showTip, index) ))
@@ -652,7 +714,7 @@ class wxPythonDemo(wxFrame):
TBMENU_CLOSE = 1001
def OnTaskBarMenu(self, evt):
- menu = wxMenu()
+ menu = wx.Menu()
menu.Append(self.TBMENU_RESTORE, "Restore wxPython Demo")
menu.Append(self.TBMENU_CLOSE, "Close")
self.tbicon.PopupMenu(menu)
@@ -662,19 +724,19 @@ class wxPythonDemo(wxFrame):
def OnTaskBarClose(self, evt):
self.Close()
- # because of the way wxTaskBarIcon.PopupMenu is implemented we have to
+ # because of the way wx.TaskBarIcon.PopupMenu is implemented we have to
# prod the main idle handler a bit to get the window to actually close
- wxGetApp().ProcessIdle()
+ wx.GetApp().ProcessIdle()
#---------------------------------------------
def OnIconfiy(self, evt):
- wxLogMessage("OnIconfiy")
+ wx.LogMessage("OnIconfiy")
evt.Skip()
#---------------------------------------------
def OnMaximize(self, evt):
- wxLogMessage("OnMaximize")
+ wx.LogMessage("OnMaximize")
evt.Skip()
@@ -683,14 +745,14 @@ class wxPythonDemo(wxFrame):
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
-class MySplashScreen(wxSplashScreen):
+class MySplashScreen(wx.SplashScreen):
def __init__(self):
- bmp = wxImage(opj("bitmaps/splash.gif")).ConvertToBitmap()
- wxSplashScreen.__init__(self, bmp,
- wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT,
+ bmp = wx.Image(opj("bitmaps/splash.gif")).ConvertToBitmap()
+ wx.SplashScreen.__init__(self, bmp,
+ wx.SPLASH_CENTRE_ON_SCREEN|wx.SPLASH_TIMEOUT,
4000, None, -1,
- style = wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP)
- EVT_CLOSE(self, self.OnClose)
+ style = wx.SIMPLE_BORDER|wx.FRAME_NO_TASKBAR|wx.STAY_ON_TOP)
+ wx.EVT_CLOSE(self, self.OnClose)
def OnClose(self, evt):
frame = wxPythonDemo(None, -1, "wxPython: (A Demonstration)")
@@ -698,7 +760,7 @@ class MySplashScreen(wxSplashScreen):
evt.Skip() # Make sure the default handler runs too...
-class MyApp(wxApp):
+class MyApp(wx.App):
def OnInit(self):
"""
Create and show the splash screen. It will then create and show
@@ -706,10 +768,10 @@ class MyApp(wxApp):
"""
#import locale
- #self.locale = wxLocale(wxLANGUAGE_FRENCH)
+ #self.locale = wx.Locale(wx.LANGUAGE_FRENCH)
#locale.setlocale(locale.LC_ALL, 'fr')
- wxInitAllImageHandlers()
+ wx.InitAllImageHandlers()
splash = MySplashScreen()
splash.Show()
return True
@@ -724,7 +786,7 @@ def main():
os.chdir(demoPath)
except:
pass
- app = MyApp(wxPlatform == "__WXMAC__")
+ app = MyApp(wx.Platform == "__WXMAC__")
app.MainLoop()
@@ -733,76 +795,36 @@ def main():
overview = """
- Python
-
- Python is an interpreted, interactive, object-oriented programming
- language often compared to Tcl, Perl, Scheme, or Java.
-
- Python combines remarkable power with very clear syntax. It has
- modules, classes, exceptions, very high level dynamic data types, and
- dynamic typing. There are interfaces to many system calls and
- libraries, and new built-in modules are easily written in C or
- C++. Python is also usable as an extension language for applications
- that need a programmable interface.
-
-
wxWindows
-
- wxWindows is a free C++ framework designed to make cross-platform
- programming child's play. Well, almost. wxWindows 2 supports Windows
- 3.1/95/98/NT, Unix with GTK/Motif/Lesstif, with a Mac version
- underway. Other ports are under consideration.
-
- wxWindows is a set of libraries that allows C++ applications to
- compile and run on several different types of computers, with minimal
- source code changes. There is one library per supported GUI (such as
- Motif, or Windows). As well as providing a common API (Application
- Programming Interface) for GUI functionality, it provides
- functionality for accessing some commonly-used operating system
- facilities, such as copying or deleting files. wxWindows is a
- 'framework' in the sense that it provides a lot of built-in
- functionality, which the application can use or replace as required,
- thus saving a great deal of coding effort. Basic data structures such
- as strings, linked lists and hash tables are also supported.
-
-
-
wxPython
-
- wxPython is a Python extension module that encapsulates the wxWindows
- GUI classes. Currently it is only available for the Win32 and GTK
- ports of wxWindows, but as soon as the other ports are brought up to
- the same level as Win32 and GTK, it should be fairly trivial to
- enable wxPython to be used with the new GUI.
-
-
-
- The wxPython extension module attempts to mirror the class heiarchy
- of wxWindows as closely as possible. This means that there is a
- wxFrame class in wxPython that looks, smells, tastes and acts almost
- the same as the wxFrame class in the C++ version. Unfortunately,
- because of differences in the languages, wxPython doesn't match
- wxWindows exactly, but the differences should be easy to absorb
- because they are natural to Python. For example, some methods that
- return multiple values via argument pointers in C++ will return a
- tuple of values in Python.
-
-
-
- There is still much to be done for wxPython, many classes still need
- to be mirrored. Also, wxWindows is still somewhat of a moving target
- so it is a bit of an effort just keeping wxPython up to date. On the
- other hand, there are enough of the core classes completed that
- useful applications can be written.
-
-
-
- wxPython is close enough to the C++ version that the majority of
- the wxPython documentation is actually just notes attached to the C++
- documents that describe the places where wxPython is different. There
- is also a series of sample programs included, and a series of
- documentation pages that assist the programmer in getting started
- with wxPython.
-
- """
+
wxPython
+
+ wxPython is a GUI toolkit for the Python programming language. It
+allows Python programmers to create programs with a robust, highly
+functional graphical user interface, simply and easily. It is
+implemented as a Python extension module (native code) that wraps the
+popular wxWindows cross
+platform GUI library, which is written in C++.
+
+
Like Python and wxWindows, wxPython is Open Source which
+means that it is free for anyone to use and the source code is
+available for anyone to look at and modify. Or anyone can contribute
+fixes or enhnacments to the project.
+
+
wxPython is a cross-platform toolkit. This means that the
+same program will run on multiple platforms without modification.
+Currently supported platforms are 32-bit Microsoft Windows, most Unix
+or unix-like systems, and Macintosh OS X. Since the language is
+Python, wxPython programs are simple, easy to write and easy to
+understand.
+
+
This demo is not only a collection of test cases for
+wxPython, but is also designed to help you learn about and how to use
+wxPython. Each sample is listed in the tree control on the left.
+When a sample is selected in the tree then a module is loaded and run
+(usually in a tab of this notebook,) and the source code of the module
+is loaded in another tab for you to browse and learn from.
+
+"""
#----------------------------------------------------------------------------
diff --git a/wxPython/demo/MaskedEditControls.py b/wxPython/demo/MaskedEditControls.py
new file mode 100644
index 0000000000..92a6cf3d77
--- /dev/null
+++ b/wxPython/demo/MaskedEditControls.py
@@ -0,0 +1,540 @@
+from wxPython.wx import *
+from wxPython.lib.maskededit import Field, wxMaskedTextCtrl, wxMaskedComboBox, wxIpAddrCtrl, states, months
+from wxPython.lib.maskededit import __doc__ as overviewdoc
+from wxPython.lib.maskededit import autoformats
+from wxPython.lib.scrolledpanel import wxScrolledPanel
+import string, sys, traceback
+
+class demoMixin:
+ """
+ Centralized routines common to demo pages, to remove repetition.
+ """
+ def labelGeneralTable(self, sizer):
+ description = wxStaticText( self, -1, "Description", )
+ mask = wxStaticText( self, -1, "Mask Value" )
+ formatcode = wxStaticText( self, -1, "Format" )
+ regex = wxStaticText( self, -1, "Regexp Validator(opt.)" )
+ ctrl = wxStaticText( self, -1, "wxMaskedEdit Ctrl" )
+
+ description.SetFont( wxFont(9, wxSWISS, wxNORMAL, wxBOLD))
+ mask.SetFont( wxFont(9, wxSWISS, wxNORMAL, wxBOLD))
+ formatcode.SetFont( wxFont(9, wxSWISS, wxNORMAL, wxBOLD) )
+ regex.SetFont( wxFont(9, wxSWISS, wxNORMAL, wxBOLD))
+ ctrl.SetFont( wxFont(9, wxSWISS, wxNORMAL, wxBOLD))
+
+ sizer.Add(description)
+ sizer.Add(mask)
+ sizer.Add(formatcode)
+ sizer.Add(regex)
+ sizer.Add(ctrl)
+
+
+ def layoutGeneralTable(self, controls, sizer):
+ for control in controls:
+ sizer.Add( wxStaticText( self, -1, control[0]) )
+ sizer.Add( wxStaticText( self, -1, control[1]) )
+ sizer.Add( wxStaticText( self, -1, control[3]) )
+ sizer.Add( wxStaticText( self, -1, control[4]) )
+
+ if control in controls:
+ newControl = wxMaskedTextCtrl( self, -1, "",
+ mask = control[1],
+ excludeChars = control[2],
+ formatcodes = control[3],
+ includeChars = "",
+ validRegex = control[4],
+ validRange = control[5],
+ choices = control[6],
+ choiceRequired = True,
+ defaultValue = control[7],
+ demo = True,
+ name = control[0])
+ self.editList.append(newControl)
+ sizer.Add(newControl)
+
+
+ def changeControlParams(self, event, parameter, checked_value, notchecked_value):
+ if event.Checked(): value = checked_value
+ else: value = notchecked_value
+ kwargs = {parameter: value}
+ for control in self.editList:
+ control.SetCtrlParameters(**kwargs)
+ control.Refresh()
+ self.Refresh()
+
+
+
+#----------------------------------------------------------------------------
+class demoPage1(wxScrolledPanel, demoMixin):
+ def __init__(self, parent, log):
+ wxScrolledPanel.__init__(self, parent, -1)
+ self.sizer = wxBoxSizer( wxVERTICAL )
+ self.editList = []
+
+ label = wxStaticText( self, -1, """\
+Here are some basic wxMaskedTextCtrls to give you an idea of what you can do
+with this control. Note that all controls have been auto-sized by including 'F' in
+the format codes.
+
+Try entering nonsensical or partial values in validated fields to see what happens.
+Note that the State and Last Name fields are list-limited (valid last names are:
+Smith, Jones, Williams). Signs on numbers can be toggled with the minus key.
+""")
+ label.SetForegroundColour( "Blue" )
+ header = wxBoxSizer( wxHORIZONTAL )
+ header.Add( label, 0, flag=wxALIGN_LEFT|wxALL, border = 5 )
+
+ highlight = wxCheckBox( self, -1, "Highlight Empty" )
+ disallow = wxCheckBox( self, -1, "Disallow Empty" )
+ showFill = wxCheckBox( self, -1, "change fillChar" )
+
+ vbox = wxBoxSizer( wxVERTICAL )
+ vbox.Add( highlight, 0, wxALIGN_LEFT|wxALL, 5 )
+ vbox.Add( disallow, 0, wxALIGN_LEFT|wxALL, 5 )
+ vbox.Add( showFill, 0, wxALIGN_LEFT|wxALL, 5 )
+ header.AddSpacer(15, 0)
+ header.Add(vbox, 0, flag=wxALIGN_LEFT|wxALL, border=5 )
+
+ EVT_CHECKBOX( self, highlight.GetId(), self.onHighlightEmpty )
+ EVT_CHECKBOX( self, disallow.GetId(), self.onDisallowEmpty )
+ EVT_CHECKBOX( self, showFill.GetId(), self.onShowFill )
+
+ grid = wxFlexGridSizer( 0, 5, vgap=10, hgap=10 )
+ self.labelGeneralTable(grid)
+
+ # The following list is of the controls for the demo. Feel free to play around with
+ # the options!
+ controls = [
+ #description mask excl format regexp range,list,initial
+ ("Phone No", "(###) ###-#### x:###", "", 'F^-', "^\(\d{3}\) \d{3}-\d{4}", '','',''),
+ ("Social Sec#", "###-##-####", "", 'F', "\d{3}-\d{2}-\d{4}", '','',''),
+ ("Full Name", "C{14}", "", 'F_', '^[A-Z][a-zA-Z]+ [A-Z][a-zA-Z]+', '','',''),
+ ("Last Name Only", "C{14}", "", 'F {list}', '^[A-Z][a-zA-Z]+', '',('Smith','Jones','Williams'),''),
+ ("Zip plus 4", "#{5}-#{4}", "", 'F', "\d{5}-(\s{4}|\d{4})", '','',''),
+ ("Customer No", "\CAA-###", "", 'F!', "C[A-Z]{2}-\d{3}", '','',''),
+ ("Invoice Total", "#{9}.##", "", 'F-_,', "", '','',''),
+ ("Integer", "#{9}", "", 'F-_', "", '','',''),
+ ]
+
+ self.layoutGeneralTable(controls, grid)
+ self.sizer.Add( header, 0, flag=wxALIGN_LEFT|wxALL, border=5 )
+ self.sizer.Add( grid, 0, flag= wxALIGN_LEFT|wxLEFT, border=5 )
+ self.SetSizer(self.sizer)
+ self.SetupScrolling()
+ self.SetAutoLayout(1)
+
+
+ def onDisallowEmpty( self, event ):
+ """ Set emptyInvalid parameter on/off """
+ self.changeControlParams( event, "emptyInvalid", True, False )
+
+ def onHighlightEmpty( self, event ):
+ """ Highlight empty values"""
+ self.changeControlParams( event, "emptyBackgroundColor", "Blue", "White" )
+
+ def onShowFill( self, event ):
+ """ Set fillChar parameter to '?' or ' ' """
+ self.changeControlParams( event, "fillChar", '?', ' ' )
+
+
+class demoPage2(wxScrolledPanel, demoMixin):
+ def __init__( self, parent, log ):
+ self.log = log
+ wxScrolledPanel.__init__( self, parent, -1 )
+ self.sizer = wxBoxSizer( wxVERTICAL )
+
+ label = wxStaticText( self, -1, """\
+All these controls have been created by passing a single parameter, the autoformat code.
+The class contains an internal dictionary of types and formats (autoformats).
+Many of these already do complicated validation; To see some examples, try
+29 Feb 2002 vs. 2004 for the date formats, or email address validation.
+""")
+
+ label.SetForegroundColour( "Blue" )
+ self.sizer.Add( label, 0, wxALIGN_LEFT|wxALL, 5 )
+
+ description = wxStaticText( self, -1, "Description")
+ autofmt = wxStaticText( self, -1, "AutoFormat Code")
+ ctrl = wxStaticText( self, -1, "wxMaskedEdit Control")
+
+ description.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
+ autofmt.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
+ ctrl.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
+
+ grid = wxFlexGridSizer( 0, 3, vgap=10, hgap=5 )
+ grid.Add( description, 0, wxALIGN_LEFT )
+ grid.Add( autofmt, 0, wxALIGN_LEFT )
+ grid.Add( ctrl, 0, wxALIGN_LEFT )
+
+ for autoformat, desc in autoformats:
+ grid.Add( wxStaticText( self, -1, desc), 0, wxALIGN_LEFT )
+ grid.Add( wxStaticText( self, -1, autoformat), 0, wxALIGN_LEFT )
+ grid.Add( wxMaskedTextCtrl( self, -1, "",
+ autoformat = autoformat,
+ demo = True,
+ name = autoformat),
+ 0, wxALIGN_LEFT )
+
+ self.sizer.Add( grid, 0, wxALIGN_LEFT|wxALL, border=5 )
+ self.SetSizer( self.sizer )
+ self.SetAutoLayout( 1 )
+ self.SetupScrolling()
+
+
+class demoPage3(wxScrolledPanel, demoMixin):
+ def __init__(self, parent, log):
+ self.log = log
+ wxScrolledPanel.__init__(self, parent, -1)
+ self.sizer = wxBoxSizer( wxVERTICAL )
+ self.editList = []
+
+ label = wxStaticText( self, -1, """\
+Here wxMaskedTextCtrls that have default values. The states
+control has a list of valid values, and the unsigned integer
+has a legal range specified.
+""")
+ label.SetForegroundColour( "Blue" )
+ requireValid = wxCheckBox( self, -1, "Require Valid Value" )
+ EVT_CHECKBOX( self, requireValid.GetId(), self.onRequireValid )
+
+ header = wxBoxSizer( wxHORIZONTAL )
+ header.Add( label, 0, flag=wxALIGN_LEFT|wxALL, border = 5)
+ header.AddSpacer(75, 0)
+ header.Add( requireValid, 0, flag=wxALIGN_LEFT|wxALL, border=10 )
+
+ grid = wxFlexGridSizer( 0, 5, vgap=10, hgap=10 )
+ self.labelGeneralTable( grid )
+
+ controls = [
+ #description mask excl format regexp range,list,initial
+ ("U.S. State (2 char)", "AA", "", 'F!_', "[A-Z]{2}", '',states, states[0]),
+ ("Integer (signed)", "#{6}", "", 'F-_R', "", '','', '0 '),
+ ("Integer (unsigned)\n(1-399)","######", "", 'F_', "", (1,399),'', '1 '),
+ ("Float (signed)", "#{6}.#{9}", "", 'F-_R', "", '','', '000000.000000000'),
+ ("Date (MDY) + Time", "##/##/#### ##:##:## AM", 'BCDEFGHIJKLMNOQRSTUVWXYZ','DF!',"", '','', wxDateTime_Now().Format("%m/%d/%Y %I:%M:%S %p")),
+ ]
+ self.layoutGeneralTable( controls, grid )
+
+ self.sizer.Add( header, 0, flag=wxALIGN_LEFT|wxALL, border=5 )
+ self.sizer.Add( grid, 0, flag=wxALIGN_LEFT|wxALL, border=5 )
+
+ self.SetSizer( self.sizer )
+ self.SetAutoLayout( 1 )
+ self.SetupScrolling()
+
+ def onRequireValid( self, event ):
+ """ Set validRequired parameter on/off """
+ self.changeControlParams( event, "validRequired", True, False )
+
+
+class demoPage4(wxScrolledPanel, demoMixin):
+ def __init__( self, parent, log ):
+ self.log = log
+ wxScrolledPanel.__init__( self, parent, -1 )
+ self.sizer = wxBoxSizer( wxVERTICAL )
+
+ label = wxStaticText( self, -1, """\
+These controls have field-specific choice lists and allow autocompletion.
+
+Down arrow or Page Down in an uncompleted field with an auto-completable field will attempt
+to auto-complete a field if it has a choice list.
+Page Down and Shift-Down arrow will also auto-complete, or cycle through the complete list.
+Page Up and Shift-Up arrow will similarly cycle backwards through the list.
+""")
+
+ label.SetForegroundColour( "Blue" )
+ self.sizer.Add( label, 0, wxALIGN_LEFT|wxALL, 5 )
+
+ description = wxStaticText( self, -1, "Description" )
+ autofmt = wxStaticText( self, -1, "AutoFormat Code" )
+ fields = wxStaticText( self, -1, "Field Objects" )
+ ctrl = wxStaticText( self, -1, "wxMaskedEdit Control" )
+
+ description.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
+ autofmt.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
+ fields.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
+ ctrl.SetFont( wxFont( 9, wxSWISS, wxNORMAL, wxBOLD ) )
+
+ grid = wxFlexGridSizer( 0, 4, vgap=10, hgap=10 )
+ grid.Add( description, 0, wxALIGN_LEFT )
+ grid.Add( autofmt, 0, wxALIGN_LEFT )
+ grid.Add( fields, 0, wxALIGN_LEFT )
+ grid.Add( ctrl, 0, wxALIGN_LEFT )
+
+ autoformat = "USPHONEFULLEXT"
+ fieldsDict = {0: Field(choices=["617","781","508","978","413"], choiceRequired=True)}
+ fieldsLabel = """\
+{0: Field(choices=[
+ "617","781",
+ "508","978","413"],
+ choiceRequired=True)}"""
+ grid.Add( wxStaticText( self, -1, "Restricted Area Code"), 0, wxALIGN_LEFT )
+ grid.Add( wxStaticText( self, -1, autoformat), 0, wxALIGN_LEFT )
+ grid.Add( wxStaticText( self, -1, fieldsLabel), 0, wxALIGN_LEFT )
+ grid.Add( wxMaskedTextCtrl( self, -1, "",
+ autoformat = autoformat,
+ fields = fieldsDict,
+ demo = True,
+ name = autoformat),
+ 0, wxALIGN_LEFT )
+
+ autoformat = "EXPDATEMMYY"
+ fieldsDict = {1: Field(choices=["03", "04", "05"], choiceRequired=True)}
+ fieldsLabel = """\
+{1: Field(choices=[
+ "03", "04", "05"],
+ choiceRequired=True)}"""
+ exp = wxMaskedTextCtrl( self, -1, "",
+ autoformat = autoformat,
+ fields = fieldsDict,
+ demo = True,
+ name = autoformat)
+
+ grid.Add( wxStaticText( self, -1, "Restricted Expiration"), 0, wxALIGN_LEFT )
+ grid.Add( wxStaticText( self, -1, autoformat), 0, wxALIGN_LEFT )
+ grid.Add( wxStaticText( self, -1, fieldsLabel), 0, wxALIGN_LEFT )
+ grid.Add( exp, 0, wxALIGN_LEFT )
+
+ fieldsDict = {0: Field(choices=["02134","02155"], choiceRequired=True),
+ 1: Field(choices=["1234", "5678"], choiceRequired=False)}
+ fieldsLabel = """\
+{0: Field(choices=["02134","02155"],
+ choiceRequired=True),
+ 1: Field(choices=["1234", "5678"],
+ choiceRequired=False)}"""
+ autoformat = "USZIPPLUS4"
+ zip = wxMaskedTextCtrl( self, -1, "",
+ autoformat = autoformat,
+ fields = fieldsDict,
+ demo = True,
+ name = autoformat)
+
+ grid.Add( wxStaticText( self, -1, "Restricted Zip + 4"), 0, wxALIGN_LEFT )
+ grid.Add( wxStaticText( self, -1, autoformat), 0, wxALIGN_LEFT )
+ grid.Add( wxStaticText( self, -1, fieldsLabel), 0, wxALIGN_LEFT )
+ grid.Add( zip, 0, wxALIGN_LEFT )
+
+ self.sizer.Add( grid, 0, wxALIGN_LEFT|wxALL, border=5 )
+ self.SetSizer( self.sizer )
+ self.SetAutoLayout(1)
+ self.SetupScrolling()
+
+
+class demoPage5(wxScrolledPanel, demoMixin):
+ def __init__( self, parent, log ):
+ self.log = log
+ wxScrolledPanel.__init__( self, parent, -1 )
+ self.sizer = wxBoxSizer( wxVERTICAL )
+ label = wxStaticText( self, -1, """\
+These are examples of wxMaskedComboBox and wxIpAddrCtrl, and more useful
+configurations of a wxMaskedTextCtrl for integer and floating point input.
+""")
+ label.SetForegroundColour( "Blue" )
+ self.sizer.Add( label, 0, wxALIGN_LEFT|wxALL, 5 )
+
+ numerators = [ str(i) for i in range(1, 4) ]
+ denominators = [ string.ljust(str(i), 2) for i in [2,3,4,5,8,16,32,64] ]
+ fieldsDict = {0: Field(choices=numerators, choiceRequired=False),
+ 1: Field(choices=denominators, choiceRequired=True)}
+ choices = []
+ for n in numerators:
+ for d in denominators:
+ if n != d:
+ choices.append( '%s/%s' % (n,d) )
+
+
+ text1 = wxStaticText( self, -1, """\
+A masked ComboBox for fraction selection.
+Choices for each side of the fraction can be
+selected with PageUp/Down:""")
+
+ fraction = wxMaskedComboBox( self, -1, "",
+ choices = choices,
+ choiceRequired = True,
+ mask = "#/##",
+ formatcodes = "F_",
+ validRegex = "^\d\/\d\d?",
+ fields = fieldsDict )
+
+
+ text2 = wxStaticText( self, -1, """
+A masked ComboBox to validate
+text from a list of numeric codes:""")
+
+ choices = ["91", "136", "305", "4579"]
+ code = wxMaskedComboBox( self, -1, choices[0],
+ choices = choices,
+ choiceRequired = True,
+ formatcodes = "F_r",
+ mask = "####")
+
+
+ text3 = wxStaticText( self, -1, """\
+A masked state selector; only "legal" values
+can be entered:""")
+
+ state = wxMaskedComboBox( self, -1, states[0],
+ choices = states,
+ autoformat="USSTATE")
+
+ text4 = wxStaticText( self, -1, "An empty IP Address entry control:")
+ ip_addr1 = wxIpAddrCtrl( self, -1, style = wxTE_PROCESS_TAB )
+
+
+ text5 = wxStaticText( self, -1, "An IP Address control with a restricted mask:")
+ ip_addr2 = wxIpAddrCtrl( self, -1, mask=" 10. 1.109.###" )
+
+
+ text6 = wxStaticText( self, -1, """\
+An IP Address control with restricted choices
+of form: 10. (1|2) . (129..255) . (0..255)""")
+ ip_addr3 = wxIpAddrCtrl( self, -1, mask=" 10. #.###.###")
+ ip_addr3.SetFieldParameters(0, validRegex="1|2" ) # requires entry to match or not allowed
+
+
+ # This allows any value in penultimate field, but colors anything outside of the range invalid:
+ ip_addr3.SetFieldParameters(1, validRange=(129,255), validRequired=False )
+
+ text7 = wxStaticText( self, -1, """\
+A right-insert integer entry control:""")
+ intctrl = wxMaskedTextCtrl(self, -1, name='intctrl', mask="#{9}", formatcodes = '_-r,F')
+
+ text8 = wxStaticText( self, -1, """\
+A floating point entry control
+with right-insert for ordinal:""")
+ self.floatctrl = wxMaskedTextCtrl(self, -1, name='floatctrl', mask="#{9}.#{2}", formatcodes="F,_-R")
+ self.floatctrl.SetFieldParameters(0, formatcodes='r<', validRequired=True) # right-insert, require explicit cursor movement to change fields
+ self.floatctrl.SetFieldParameters(1, defaultValue='00') # don't allow blank fraction
+
+ text9 = wxStaticText( self, -1, """\
+Use this control to programmatically set
+the value of the above float control:""")
+ number_combo = wxComboBox(self, -1, choices = [ '', '111', '222.22', '-3', '54321.666666666', '-1353.978',
+ '1234567', '-1234567', '123456789', '-123456789.1',
+ '1234567890.', '-1234567890.1' ])
+
+ grid = wxFlexGridSizer( 0, 2, vgap=10, hgap = 5 )
+ grid.Add( text1, 0, wxALIGN_LEFT )
+ grid.Add( fraction, 0, wxALIGN_LEFT )
+ grid.Add( text2, 0, wxALIGN_LEFT )
+ grid.Add( code, 0, wxALIGN_LEFT )
+ grid.Add( text3, 0, wxALIGN_LEFT )
+ grid.Add( state, 0, wxALIGN_LEFT )
+ grid.Add( text4, 0, wxALIGN_LEFT )
+ grid.Add( ip_addr1, 0, wxALIGN_LEFT )
+ grid.Add( text5, 0, wxALIGN_LEFT )
+ grid.Add( ip_addr2, 0, wxALIGN_LEFT )
+ grid.Add( text6, 0, wxALIGN_LEFT )
+ grid.Add( ip_addr3, 0, wxALIGN_LEFT )
+ grid.Add( text7, 0, wxALIGN_LEFT )
+ grid.Add( intctrl, 0, wxALIGN_LEFT )
+ grid.Add( text8, 0, wxALIGN_LEFT )
+ grid.Add( self.floatctrl, 0, wxALIGN_LEFT )
+ grid.Add( text9, 0, wxALIGN_LEFT )
+ grid.Add( number_combo, 0, wxALIGN_LEFT )
+
+ self.sizer.Add( grid, 0, wxALIGN_LEFT|wxALL, border=5 )
+ self.SetSizer( self.sizer )
+ self.SetAutoLayout(1)
+ self.SetupScrolling()
+
+ EVT_COMBOBOX( self, fraction.GetId(), self.OnComboChange )
+ EVT_COMBOBOX( self, code.GetId(), self.OnComboChange )
+ EVT_COMBOBOX( self, state.GetId(), self.OnComboChange )
+ EVT_TEXT( self, fraction.GetId(), self.OnComboChange )
+ EVT_TEXT( self, code.GetId(), self.OnComboChange )
+ EVT_TEXT( self, state.GetId(), self.OnComboChange )
+
+ EVT_TEXT( self, ip_addr1.GetId(), self.OnIpAddrChange )
+ EVT_TEXT( self, ip_addr2.GetId(), self.OnIpAddrChange )
+ EVT_TEXT( self, ip_addr3.GetId(), self.OnIpAddrChange )
+ EVT_TEXT( self, intctrl.GetId(), self.OnTextChange )
+ EVT_TEXT( self, self.floatctrl.GetId(), self.OnTextChange )
+ EVT_COMBOBOX( self, number_combo.GetId(), self.OnNumberSelect )
+
+
+ def OnComboChange( self, event ):
+ ctl = self.FindWindowById( event.GetId() )
+ if not ctl.IsValid():
+ self.log.write('current value not a valid choice')
+
+ def OnIpAddrChange( self, event ):
+ ip_addr = self.FindWindowById( event.GetId() )
+ if ip_addr.IsValid():
+ self.log.write('new addr = %s\n' % ip_addr.GetAddress() )
+
+ def OnTextChange( self, event ):
+ ctl = self.FindWindowById( event.GetId() )
+ if ctl.IsValid():
+ self.log.write('new value = %s\n' % ctl.GetValue() )
+
+ def OnNumberSelect( self, event ):
+ value = event.GetString()
+
+ # Format choice to fit into format for #{9}.#{2}, with sign position reserved:
+ # (ordinal + fraction == 11 + decimal point + sign == 13)
+ #
+ # Note: since self.floatctrl a right-aligned control, you could also just use
+ # "%.2f", but this wouldn't work properly for a left-aligned control.
+ # (See .SetValue() documentation in Overview.)
+ #
+ if value:
+ floattext = "%13.2f" % float(value)
+ else:
+ floattext = value # clear the value again
+ try:
+ self.floatctrl.SetValue(floattext)
+ except:
+ type, value, tb = sys.exc_info()
+ for line in traceback.format_exception_only(type, value):
+ self.log.write(line)
+
+# ---------------------------------------------------------------------
+class TestMaskedTextCtrls(wxNotebook):
+ def __init__(self, parent, id, log):
+ wxNotebook.__init__(self, parent, id)
+ self.log = log
+
+ win = demoPage1(self, log)
+ self.AddPage(win, "General examples")
+
+ win = demoPage2(self, log)
+ self.AddPage(win, 'Auto-formatted controls')
+
+ win = demoPage3(self, log)
+ self.AddPage(win, "Using default values")
+
+ win = demoPage4(self, log)
+ self.AddPage(win, 'Using auto-complete fields')
+
+ win = demoPage5(self, log)
+ self.AddPage(win, 'Other masked controls')
+
+
+#----------------------------------------------------------------------------
+
+def runTest(frame, nb, log):
+ testWin = TestMaskedTextCtrls(nb, -1, log)
+ return testWin
+
+def RunStandalone():
+ app = wxPySimpleApp()
+ frame = wxFrame(None, -1, "Test wxMaskedTextCtrl", size=(640, 480))
+ win = TestMaskedTextCtrls(frame, -1, sys.stdout)
+ frame.Show(True)
+ app.MainLoop()
+#----------------------------------------------------------------------------
+if __name__ == "__main__":
+ RunStandalone()
+
+
+overview = """
+
+""" + overviewdoc + """
+
+"""
+
+if __name__ == "__main__":
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/NewNamespace.py b/wxPython/demo/NewNamespace.py
new file mode 100644
index 0000000000..97b04d190c
--- /dev/null
+++ b/wxPython/demo/NewNamespace.py
@@ -0,0 +1,47 @@
+
+import wx # This module uses the new wx namespace
+from wx import html
+from Main import opj
+
+#----------------------------------------------------------------------
+
+class TestPanel(wx.Panel):
+ def __init__(self, parent, log):
+ self.log = log
+ wx.Panel.__init__(self, parent, -1)
+
+ hwin = html.HtmlWindow(self, -1)
+ hwin.LoadFile(opj('data/wxPackage.html'))
+
+ sizer = wx.BoxSizer(wx.VERTICAL)
+ sizer.Add(hwin, 1, wx.EXPAND)
+
+ self.SetSizer(sizer)
+
+
+#----------------------------------------------------------------------
+
+def runTest(frame, nb, log):
+ win = TestPanel(nb, log)
+ return win
+
+#----------------------------------------------------------------------
+
+
+
+overview = """
+Using the New Namespace
+
+This sample isn't really a demo, but rather a place to display the
+introductory doc for using the new namespace.
+
+
+"""
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/OOR.py b/wxPython/demo/OOR.py
index e0e84b0112..d58bc42bbd 100644
--- a/wxPython/demo/OOR.py
+++ b/wxPython/demo/OOR.py
@@ -136,3 +136,12 @@ and the second will show #2 (working as of 2.3.2 )
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/PopupMenu.py b/wxPython/demo/PopupMenu.py
new file mode 100644
index 0000000000..97966273e3
--- /dev/null
+++ b/wxPython/demo/PopupMenu.py
@@ -0,0 +1,148 @@
+
+from wxPython.wx import *
+import images
+
+#----------------------------------------------------------------------
+
+text = """\
+
+Right-click on the panel (or Ctrl-click on the Mac) to show a popup
+menu. Then look at the code for this sample. Notice how the
+PopupMenu method is similar to the ShowModal method of a wxDialog in
+that it doesn't return until the popup menu has been dismissed. The
+event handlers for the popup menu items can either be attached to the
+menu itself, or to the window that invokes PopupMenu.
+"""
+
+#----------------------------------------------------------------------
+
+class TestPanel(wxPanel):
+ def __init__(self, parent, log):
+ self.log = log
+ wxPanel.__init__(self, parent, -1)
+ box = wxBoxSizer(wxVERTICAL)
+
+ # Make and layout the controls
+ fs = self.GetFont().GetPointSize()
+ bf = wxFont(fs+4, wxSWISS, wxNORMAL, wxBOLD)
+ nf = wxFont(fs+2, wxSWISS, wxNORMAL, wxNORMAL)
+
+ t = wxStaticText(self, -1, "PopupMenu")
+ t.SetFont(bf)
+ box.Add(t, 0, wxCENTER|wxALL, 5)
+
+ box.Add(wxStaticLine(self, -1), 0, wxEXPAND)
+ box.Add(10,20)
+
+ t = wxStaticText(self, -1, text)
+ t.SetFont(nf)
+ box.Add(t, 0, wxCENTER|wxALL, 5)
+
+ self.SetSizer(box)
+
+ EVT_RIGHT_UP(self, self.OnRightClick)
+
+
+ def OnRightClick(self, event):
+ self.log.WriteText("OnRightClick\n")
+
+ # only do this part the first time so the events are only bound once
+ if not hasattr(self, "popupID1"):
+ self.popupID1 = wxNewId()
+ self.popupID2 = wxNewId()
+ self.popupID3 = wxNewId()
+ self.popupID4 = wxNewId()
+ self.popupID5 = wxNewId()
+ self.popupID6 = wxNewId()
+ self.popupID7 = wxNewId()
+ self.popupID8 = wxNewId()
+ self.popupID9 = wxNewId()
+ EVT_MENU(self, self.popupID1, self.OnPopupOne)
+ EVT_MENU(self, self.popupID2, self.OnPopupTwo)
+ EVT_MENU(self, self.popupID3, self.OnPopupThree)
+ EVT_MENU(self, self.popupID4, self.OnPopupFour)
+ EVT_MENU(self, self.popupID5, self.OnPopupFive)
+ EVT_MENU(self, self.popupID6, self.OnPopupSix)
+ EVT_MENU(self, self.popupID7, self.OnPopupSeven)
+ EVT_MENU(self, self.popupID8, self.OnPopupEIght)
+ EVT_MENU(self, self.popupID9, self.OnPopupNine)
+
+ # make a menu
+ menu = wxMenu()
+ # Show how to put an icon in the menu
+ item = wxMenuItem(menu, self.popupID1,"One")
+ item.SetBitmap(images.getSmilesBitmap())
+ menu.AppendItem(item)
+ # add some other items
+ menu.Append(self.popupID2, "Two")
+ menu.Append(self.popupID3, "Three")
+ menu.Append(self.popupID4, "Four")
+ menu.Append(self.popupID5, "Five")
+ menu.Append(self.popupID6, "Six")
+ # make a submenu
+ sm = wxMenu()
+ sm.Append(self.popupID8, "sub item 1")
+ sm.Append(self.popupID9, "sub item 1")
+ menu.AppendMenu(self.popupID7, "Test Submenu", sm)
+
+
+ # Popup the menu. If an item is selected then its handler
+ # will be called before PopupMenu returns.
+ self.PopupMenu(menu, event.GetPosition())
+ menu.Destroy()
+
+
+ def OnPopupOne(self, event):
+ self.log.WriteText("Popup one\n")
+
+ def OnPopupTwo(self, event):
+ self.log.WriteText("Popup two\n")
+
+ def OnPopupThree(self, event):
+ self.log.WriteText("Popup three\n")
+
+ def OnPopupFour(self, event):
+ self.log.WriteText("Popup four\n")
+
+ def OnPopupFive(self, event):
+ self.log.WriteText("Popup five\n")
+
+ def OnPopupSix(self, event):
+ self.log.WriteText("Popup six\n")
+
+ def OnPopupSeven(self, event):
+ self.log.WriteText("Popup seven\n")
+
+ def OnPopupEIght(self, event):
+ self.log.WriteText("Popup eight\n")
+
+ def OnPopupNine(self, event):
+ self.log.WriteText("Popup nine\n")
+
+
+
+
+
+#----------------------------------------------------------------------
+
+def runTest(frame, nb, log):
+ win = TestPanel(nb, log)
+ return win
+
+#----------------------------------------------------------------------
+
+
+
+overview = """
+PopupMenu
+""" + text + """
+
+"""
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/PrintFramework.py b/wxPython/demo/PrintFramework.py
index 36c3ea5a2b..d7a78e1dd4 100644
--- a/wxPython/demo/PrintFramework.py
+++ b/wxPython/demo/PrintFramework.py
@@ -79,7 +79,7 @@ class MyPrintout(wxPrintout):
#-------------------------------------------
- self.canvas.DoDrawing(dc)
+ self.canvas.DoDrawing(dc, True)
dc.DrawText("Page: %d" % page, marginX/2, maxY-marginY)
return True
@@ -176,3 +176,12 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/PyCrust.py b/wxPython/demo/PyCrust.py
index 4d2ae22b32..5bf452e2cc 100644
--- a/wxPython/demo/PyCrust.py
+++ b/wxPython/demo/PyCrust.py
@@ -1,20 +1,18 @@
-
-from wxPython.lib.PyCrust import shell, version
+from wx import py
#----------------------------------------------------------------------
-intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % version.VERSION
+intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % py.version.VERSION
def runTest(frame, nb, log):
- win = shell.Shell(nb, -1, introText=intro)
+ win = py.crust.Crust(nb, intro=intro)
return win
#----------------------------------------------------------------------
-overview = shell.__doc__
-
+overview = py.filling.__doc__ + "\n\n" + py.crust.__doc__
if __name__ == '__main__':
import sys,os
diff --git a/wxPython/demo/PyCrustWithFilling.py b/wxPython/demo/PyCrustWithFilling.py
deleted file mode 100644
index a90c61649a..0000000000
--- a/wxPython/demo/PyCrustWithFilling.py
+++ /dev/null
@@ -1,28 +0,0 @@
-
-from wxPython.wx import wxSplitterWindow
-from wxPython.lib.PyCrust import shell, version, filling
-
-
-#----------------------------------------------------------------------
-
-intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % version.VERSION
-
-def runTest(frame, nb, log):
- win = wxSplitterWindow(nb, -1, size=(640, 480))
- shellWin = shell.Shell(win, -1, introText=intro)
- fillingWin = filling.Filling(win, -1, size=(640, 480),
- rootObject=shellWin.interp.locals,
- rootIsNamespace=1
- )
- win.SplitHorizontally(shellWin, fillingWin)
- return win
-
-#----------------------------------------------------------------------
-
-overview = filling.__doc__
-
-if __name__ == '__main__':
- import sys,os
- import run
- run.main(['', os.path.basename(sys.argv[0])])
-
diff --git a/wxPython/demo/PyShell.py b/wxPython/demo/PyShell.py
new file mode 100644
index 0000000000..d93fc9b4ca
--- /dev/null
+++ b/wxPython/demo/PyShell.py
@@ -0,0 +1,23 @@
+
+
+from wx import py
+
+
+#----------------------------------------------------------------------
+
+intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % py.version.VERSION
+
+def runTest(frame, nb, log):
+ win = py.shell.Shell(nb, -1, introText=intro)
+ return win
+
+#----------------------------------------------------------------------
+
+overview = py.shell.__doc__
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/PythonEvents.py b/wxPython/demo/PythonEvents.py
index d7454aac6b..98301706ff 100644
--- a/wxPython/demo/PythonEvents.py
+++ b/wxPython/demo/PythonEvents.py
@@ -83,3 +83,10 @@ This demo is a contrived example of defining an event class in wxPython and send
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/ShapedWindow.py b/wxPython/demo/ShapedWindow.py
new file mode 100644
index 0000000000..f5097a91f5
--- /dev/null
+++ b/wxPython/demo/ShapedWindow.py
@@ -0,0 +1,122 @@
+
+from wxPython.wx import *
+import images
+
+#----------------------------------------------------------------------
+
+class TestFrame(wxFrame):
+ def __init__(self, parent, log):
+ self.log = log
+ wxFrame.__init__(self, parent, -1, "Shaped Window",
+ style =
+ wxFRAME_SHAPED
+ | wxSIMPLE_BORDER
+ | wxFRAME_NO_TASKBAR
+ | wxSTAY_ON_TOP
+ )
+
+ self.hasShape = False
+ self.delta = wxPoint(0,0)
+
+ EVT_LEFT_DCLICK(self, self.OnDoubleClick)
+ EVT_LEFT_DOWN(self, self.OnLeftDown)
+ EVT_LEFT_UP(self, self.OnLeftUp)
+ EVT_MOTION(self, self.OnMouseMove)
+ EVT_RIGHT_UP(self, self.OnExit)
+ EVT_PAINT(self, self.OnPaint)
+
+ self.bmp = images.getTuxBitmap()
+ w, h = self.bmp.GetWidth(), self.bmp.GetHeight()
+ self.SetClientSize( (w, h) )
+
+ if wxPlatform != "__WXMAC__":
+ # wxMac clips the tooltip to the window shape, YUCK!!!
+ self.SetToolTipString("Right-click to close the window\n"
+ "Double-click the image to set/unset the window shape")
+
+ if wxPlatform == "__WXGTK__":
+ # wxGTK requires that the window be created before you can
+ # set its shape, so delay the call to SetWindowShape until
+ # this event.
+ EVT_WINDOW_CREATE(self, self.SetWindowShape)
+ else:
+ # On wxMSW and wxMac the window has already been created, so go for it.
+ self.SetWindowShape()
+
+ dc = wxClientDC(self)
+ dc.DrawBitmap(self.bmp, 0,0, True)
+
+
+ def SetWindowShape(self, *evt):
+ # Use the bitmap's mask to determine the region
+ r = wxRegionFromBitmap(self.bmp)
+ self.hasShape = self.SetShape(r)
+
+
+ def OnDoubleClick(self, evt):
+ if self.hasShape:
+ self.SetShape(wxRegion())
+ self.hasShape = False
+ else:
+ self.SetWindowShape()
+
+
+ def OnPaint(self, evt):
+ dc = wxPaintDC(self)
+ dc.DrawBitmap(self.bmp, 0,0, True)
+
+ def OnExit(self, evt):
+ self.Close()
+
+
+ def OnLeftDown(self, evt):
+ self.CaptureMouse()
+ pos = self.ClientToScreen(evt.GetPosition())
+ origin = self.GetPosition()
+ dx = pos.x - origin.x
+ dy = pos.y - origin.y
+ self.delta = wxPoint(dx, dy)
+
+
+ def OnLeftUp(self, evt):
+ if self.HasCapture():
+ self.ReleaseMouse()
+
+
+ def OnMouseMove(self, evt):
+ if evt.Dragging() and evt.LeftIsDown():
+ pos = self.ClientToScreen(evt.GetPosition())
+ fp = (pos.x - self.delta.x, pos.y - self.delta.y)
+ self.Move(fp)
+
+
+#----------------------------------------------------------------------
+
+def runTest(frame, nb, log):
+ win = TestFrame(nb, log)
+ frame.otherWin = win
+ win.Show(True)
+
+
+#----------------------------------------------------------------------
+
+
+
+overview = """
+Shaped Window
+
+Top level windows now have a SetShape method that lets you set a
+non-rectangular shape for the window using a wxRegion. All pixels
+outside of the region will not be drawn and the window will not be
+sensitive to the mouse in those areas either.
+
+
+"""
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/Sizers.py b/wxPython/demo/Sizers.py
index ab95d06fd7..0fb4657edc 100644
--- a/wxPython/demo/Sizers.py
+++ b/wxPython/demo/Sizers.py
@@ -141,11 +141,11 @@ def makeBoxInBox(win):
box.Add(wxButton(win, 1010, "one"), 0, wxEXPAND)
box2 = wxBoxSizer(wxHORIZONTAL)
- box2.AddMany([ (wxButton(win, 1010, "two"), 0, wxEXPAND),
- (wxButton(win, 1010, "three"), 0, wxEXPAND),
- (wxButton(win, 1010, "four"), 0, wxEXPAND),
- (wxButton(win, 1010, "five"), 0, wxEXPAND),
- ])
+ box2.Add(wxButton(win, 1010, "two"), 0, wxEXPAND)
+ btn3 = wxButton(win, 1010, "three")
+ box2.Add(btn3, 0, wxEXPAND)
+ box2.Add(wxButton(win, 1010, "four"), 0, wxEXPAND)
+ box2.Add(wxButton(win, 1010, "five"), 0, wxEXPAND)
box3 = wxBoxSizer(wxVERTICAL)
box3.AddMany([ (wxButton(win, 1010, "six"), 0, wxEXPAND),
@@ -159,6 +159,8 @@ def makeBoxInBox(win):
box.Add(wxButton(win, 1010, "ten"), 0, wxEXPAND)
+ ##box.Hide(btn3)
+
return box
#----------------------------------------------------------------------
diff --git a/wxPython/demo/SlashDot.py b/wxPython/demo/SlashDot.py
deleted file mode 100644
index eb0ded644e..0000000000
--- a/wxPython/demo/SlashDot.py
+++ /dev/null
@@ -1,379 +0,0 @@
-#!/usr/bin/python
-"""This is SlashDot 1.2
-
- It's the obligatory Slashdot.org headlines reader that
-any modern widget set/library must have in order to be taken
-seriously :-)
-
- Usage is quite simple; wxSlash attempts to download the
-'ultramode.txt' file from http://slashdot.org, which
-contains the headlines in a computer friendly format. It
-then displays said headlines in a wxWindows list control.
-
- You can read articles using either Python's html library
-or an external browser. Uncheck the 'browser->internal' menu
-item to use the latter option. Use the settings dialog box
-to set which external browser is started.
-
- This code is available under the wxWindows license, see
-elsewhere. If you modify this code, be aware of the fact
-that slashdot.org's maintainer, CmdrTaco, explicitly asks
-'ultramode.txt' downloaders not to do this automatically
-more than twice per hour. If this feature is abused,
-CmdrTaco may remove the ultramode file completely and that
-will make a *lot* of people unhappy.
-
- I want to thank Alex Shnitman whose slashes.pl
-(Perl/GTK) script gave me the idea for this applet.
-
- Have fun with it,
-
- Harm van der Heijden (H.v.d.Heijden@phys.tue.nl)
-"""
-
-from wxPython.wx import *
-from httplib import HTTP
-from htmllib import HTMLParser
-import os
-import re
-import formatter
-
-class HTMLTextView(wxFrame):
- def __init__(self, parent, id, title='HTMLTextView', url=None):
- wxFrame.__init__(self, parent, id, title, wxPyDefaultPosition,
- wxSize(600,400))
-
- EVT_CLOSE(self, self.OnCloseWindow)
- self.mainmenu = wxMenuBar()
-
- menu = wxMenu()
- menu.Append(201, '&Open URL...', 'Open URL')
- EVT_MENU(self, 201, self.OnFileOpen)
- menu.Append(209, 'E&xit', 'Exit viewer')
- EVT_MENU(self, 209, self.OnFileExit)
-
- self.mainmenu.Append(menu, '&File')
- self.SetMenuBar(self.mainmenu)
- self.CreateStatusBar(1)
-
- self.text = wxTextCtrl(self, -1, "", wxPyDefaultPosition,
- wxPyDefaultSize, wxTE_MULTILINE | wxTE_READONLY)
-
- if (url):
- self.OpenURL(url)
-
- def logprint(self, x):
- self.SetStatusText(x)
-
- def OpenURL(self, url):
- self.url = url
- m = re.match('file:(\S+)\s*', url)
- if m:
- f = open(m.groups()[0],'r')
- else:
- m = re.match('http://([^/]+)(/\S*)\s*', url)
- if m:
- host = m.groups()[0]
- path = m.groups()[1]
- else:
- m = re.match('http://(\S+)\s*', url)
- if not m:
- # Invalid URL
- self.logprint("Invalid or unsupported URL: %s" % (url))
- return
- host = m.groups()[0]
- path = ''
- f = RetrieveAsFile(host,path,self.logprint)
- if not f:
- self.logprint("Could not open %s" % (url))
- return
- self.logprint("Receiving data...")
- data = f.read()
- tmp = open('tmphtml.txt','w')
- fmt = formatter.AbstractFormatter(formatter.DumbWriter(tmp))
- p = HTMLParser(fmt)
- self.logprint("Parsing data...")
- p.feed(data)
- p.close()
- tmp.close()
- tmp = open('tmphtml.txt', 'r')
- self.text.SetValue(tmp.read())
- self.SetTitle(url)
- self.logprint(url)
-
- def OnFileOpen(self, event):
- dlg = wxTextEntryDialog(self, "Enter URL to open:", "")
- if dlg.ShowModal() == wxID_OK:
- url = dlg.GetValue()
- else:
- url = None
- if url:
- self.OpenURL(url)
-
- def OnFileExit(self, event):
- self.Close()
-
- def OnCloseWindow(self, event):
- self.Destroy()
-
-
-def ParseSlashdot(f):
- art_sep = re.compile('%%\r?\n')
- line_sep = re.compile('\r?\n')
- data = f.read()
- list = art_sep.split(data)
- art_list = []
- for i in range(1,len(list)-1):
- art_list.append(line_sep.split(list[i]))
- return art_list
-
-def myprint(x):
- print x
-
-def RetrieveAsFile(host, path='', logprint = myprint):
- try:
- h = HTTP(host)
- except:
- logprint("Failed to create HTTP connection to %s... is the network available?" % (host))
- return None
- h.putrequest('GET',path)
- h.putheader('Accept','text/html')
- h.putheader('Accept','text/plain')
- h.endheaders()
- errcode, errmsg, headers = h.getreply()
- if errcode != 200:
- logprint("HTTP error code %d: %s" % (errcode, errmsg))
- return None
- f = h.getfile()
-# f = open('/home/harm/ultramode.txt','r')
- return f
-
-
-class AppStatusBar(wxStatusBar):
- def __init__(self, parent):
- wxStatusBar.__init__(self,parent, -1)
- self.SetFieldsCount(2)
- self.SetStatusWidths([-1, 100])
- self.but = wxButton(self, 1001, "Refresh")
- EVT_BUTTON(self, 1001, parent.OnViewRefresh)
- EVT_SIZE(self, self.OnSize)
- self.OnSize(None)
-
- def logprint(self,x):
- self.SetStatusText(x,0)
-
- def OnSize(self, event):
- rect = self.GetFieldRect(1)
- self.but.SetPosition(wxPoint(rect.x+2, rect.y+2))
- self.but.SetSize(wxSize(rect.width-4, rect.height-4))
-
-# This is a simple timer class to start a function after a short delay;
-class QuickTimer(wxTimer):
- def __init__(self, func, wait=100):
- wxTimer.__init__(self)
- self.callback = func
- self.Start(wait); # wait .1 second (.001 second doesn't work. why?)
- def Notify(self):
- self.Stop();
- apply(self.callback, ());
-
-class AppFrame(wxFrame):
- def __init__(self, parent, id, title):
- wxFrame.__init__(self, parent, id, title, wxPyDefaultPosition,
- wxSize(650, 250))
-
- # if the window manager closes the window:
- EVT_CLOSE(self, self.OnCloseWindow);
-
- # Now Create the menu bar and items
- self.mainmenu = wxMenuBar()
-
- menu = wxMenu()
- menu.Append(209, 'E&xit', 'Enough of this already!')
- EVT_MENU(self, 209, self.OnFileExit)
- self.mainmenu.Append(menu, '&File')
- menu = wxMenu()
- menu.Append(210, '&Refresh', 'Refresh headlines')
- EVT_MENU(self, 210, self.OnViewRefresh)
- menu.Append(211, '&Slashdot Index', 'View Slashdot index')
- EVT_MENU(self, 211, self.OnViewIndex)
- menu.Append(212, 'Selected &Article', 'View selected article')
- EVT_MENU(self, 212, self.OnViewArticle)
- self.mainmenu.Append(menu, '&View')
- menu = wxMenu()
- menu.Append(220, '&Internal', 'Use internal text browser',True)
- menu.Check(220, True)
- self.UseInternal = 1;
- EVT_MENU(self, 220, self.OnBrowserInternal)
- menu.Append(222, '&Settings...', 'External browser Settings')
- EVT_MENU(self, 222, self.OnBrowserSettings)
- self.mainmenu.Append(menu, '&Browser')
- menu = wxMenu()
- menu.Append(230, '&About', 'Some documentation');
- EVT_MENU(self, 230, self.OnAbout)
- self.mainmenu.Append(menu, '&Help')
-
- self.SetMenuBar(self.mainmenu)
-
- if wxPlatform == '__WXGTK__':
- # I like lynx. Also Netscape 4.5 doesn't react to my cmdline opts
- self.BrowserSettings = "xterm -e lynx %s &"
- elif wxPlatform == '__WXMSW__':
- # netscape 4.x likes to hang out here...
- self.BrowserSettings = '\\progra~1\\Netscape\\Communicator\\Program\\netscape.exe %s'
- else:
- # a wild guess...
- self.BrowserSettings = 'netscape %s'
-
- # A status bar to tell people what's happening
- self.sb = AppStatusBar(self)
- self.SetStatusBar(self.sb)
-
- self.list = wxListCtrl(self, 1100, style=wxLC_REPORT)
- self.list.InsertColumn(0, 'Subject')
- self.list.InsertColumn(1, 'Date')
- self.list.InsertColumn(2, 'Posted by')
- self.list.InsertColumn(3, 'Comments')
- self.list.SetColumnWidth(0, 300)
- self.list.SetColumnWidth(1, 150)
- self.list.SetColumnWidth(2, 100)
- self.list.SetColumnWidth(3, 100)
-
- EVT_LIST_ITEM_SELECTED(self, 1100, self.OnItemSelected)
- EVT_LEFT_DCLICK(self.list, self.OnLeftDClick)
-
- self.logprint("Connecting to slashdot... Please wait.")
- # wxYield doesn't yet work here. That's why we use a timer
- # to make sure that we see some GUI stuff before the slashdot
- # file is transfered.
- self.timer = QuickTimer(self.DoRefresh, 1000)
-
- def logprint(self, x):
- self.sb.logprint(x)
-
- def OnFileExit(self, event):
- self.Destroy()
-
- def DoRefresh(self):
- f = RetrieveAsFile('slashdot.org','/ultramode.txt',self.sb.logprint)
- art_list = ParseSlashdot(f)
- self.list.DeleteAllItems()
- self.url = []
- self.current = -1
- i = 0;
- for article in art_list:
- self.list.InsertStringItem(i, article[0])
- self.list.SetStringItem(i, 1, article[2])
- self.list.SetStringItem(i, 2, article[3])
- self.list.SetStringItem(i, 3, article[6])
- self.url.append(article[1])
- i = i + 1
- self.logprint("File retrieved OK.")
-
- def OnViewRefresh(self, event):
- self.logprint("Connecting to slashdot... Please wait.");
- wxYield()
- self.DoRefresh()
-
- def DoViewIndex(self):
- if self.UseInternal:
- self.view = HTMLTextView(self, -1, 'slashdot.org',
- 'http://slashdot.org')
- self.view.Show(True)
- else:
- self.logprint(self.BrowserSettings % ('http://slashdot.org'))
- #os.system(self.BrowserSettings % ('http://slashdot.org'))
- wxExecute(self.BrowserSettings % ('http://slashdot.org'))
- self.logprint("OK")
-
- def OnViewIndex(self, event):
- self.logprint("Starting browser... Please wait.")
- wxYield()
- self.DoViewIndex()
-
- def DoViewArticle(self):
- if self.current<0: return
- url = self.url[self.current]
- if self.UseInternal:
- self.view = HTMLTextView(self, -1, url, url)
- self.view.Show(True)
- else:
- self.logprint(self.BrowserSettings % (url))
- os.system(self.BrowserSettings % (url))
- self.logprint("OK")
-
- def OnViewArticle(self, event):
- self.logprint("Starting browser... Please wait.")
- wxYield()
- self.DoViewArticle()
-
- def OnBrowserInternal(self, event):
- if self.mainmenu.Checked(220):
- self.UseInternal = 1
- else:
- self.UseInternal = 0
-
- def OnBrowserSettings(self, event):
- dlg = wxTextEntryDialog(self, "Enter command to view URL.\nUse %s as a placeholder for the URL.", "", self.BrowserSettings);
- if dlg.ShowModal() == wxID_OK:
- self.BrowserSettings = dlg.GetValue()
-
- def OnAbout(self, event):
- dlg = wxMessageDialog(self, __doc__, "wxSlash", wxOK | wxICON_INFORMATION)
- dlg.ShowModal()
-
- def OnItemSelected(self, event):
- self.current = event.m_itemIndex
- self.logprint("URL: %s" % (self.url[self.current]))
-
- def OnLeftDClick(self, event):
- (x,y) = event.Position();
- # Actually, we should convert x,y to logical coords using
- # a dc, but only for a wxScrolledWindow widget.
- # Now wxGTK derives wxListCtrl from wxScrolledWindow,
- # and wxMSW from wxControl... So that doesn't work.
- #dc = wxClientDC(self.list)
- ##self.list.PrepareDC(dc)
- #x = dc.DeviceToLogicalX( event.GetX() )
- #y = dc.DeviceToLogicalY( event.GetY() )
- id = self.list.HitTest(wxPoint(x,y))
- #print "Double click at %d %d" % (x,y), id
- # Okay, we got a double click. Let's assume it's the current selection
- wxYield()
- self.OnViewArticle(event)
-
- def OnCloseWindow(self, event):
- self.Destroy()
-
-
-#---------------------------------------------------------------------------
-# if running standalone
-
-if __name__ == '__main__':
- class MyApp(wxApp):
- def OnInit(self):
- frame = AppFrame(None, -1, "Slashdot Breaking News")
- frame.Show(True)
- self.SetTopWindow(frame)
- return True
-
- app = MyApp(0)
- app.MainLoop()
-
-
-
-#---------------------------------------------------------------------------
-# if running as part of the Demo Framework...
-
-def runTest(frame, nb, log):
- win = AppFrame(None, -1, "Slashdot Breaking News")
- frame.otherWin = win
- win.Show(True)
-
-
-overview = __doc__
-
-
-#----------------------------------------------------------------------------
-
-
diff --git a/wxPython/demo/TablePrint.py b/wxPython/demo/TablePrint.py
index 51b075c3da..7b370709d9 100644
--- a/wxPython/demo/TablePrint.py
+++ b/wxPython/demo/TablePrint.py
@@ -205,3 +205,12 @@ when the framework allows for it.
""" % os.path.join(os.path.dirname(wxPython.lib.printout.__file__), "printout.py")
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/Threads.py b/wxPython/demo/Threads.py
index 4c165eeb89..05883731b9 100644
--- a/wxPython/demo/Threads.py
+++ b/wxPython/demo/Threads.py
@@ -244,3 +244,11 @@ ProcessEvent does, it processes it later from the context of the GUI
thread.
"""
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/URLDragAndDrop.py b/wxPython/demo/URLDragAndDrop.py
index 16b3b96006..51c1a340ad 100644
--- a/wxPython/demo/URLDragAndDrop.py
+++ b/wxPython/demo/URLDragAndDrop.py
@@ -121,3 +121,12 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/Unicode.py b/wxPython/demo/Unicode.py
index c6910a05c4..ec8a052bf9 100644
--- a/wxPython/demo/Unicode.py
+++ b/wxPython/demo/Unicode.py
@@ -139,3 +139,12 @@ and then pass the unicode to the wxPython method.
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/XMLtreeview.py b/wxPython/demo/XMLtreeview.py
index d57642958e..081ac5f0f6 100644
--- a/wxPython/demo/XMLtreeview.py
+++ b/wxPython/demo/XMLtreeview.py
@@ -110,3 +110,11 @@ else:
overview = """\
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/bmp_source/Tux.png b/wxPython/demo/bmp_source/Tux.png
new file mode 100644
index 0000000000..fcc18c1296
Binary files /dev/null and b/wxPython/demo/bmp_source/Tux.png differ
diff --git a/wxPython/demo/data/stc.h.html b/wxPython/demo/data/stc.h.html
index 87f144bf8d..d2fb4ca78e 100644
--- a/wxPython/demo/data/stc.h.html
+++ b/wxPython/demo/data/stc.h.html
@@ -1,7 +1,7 @@
-/home/others/projects/wx2.3/contrib/include/wx/stc/stc.h.html
-
+/home/work/projects/wx2.4/contrib/include/wx/stc/stc.h.html
+
@@ -31,6 +31,30 @@
#include <wx/wx.h>
#include <wx/dnd.h>
+#ifndef SWIG
+/*
+ * If we're using wx in Dynamic Library format do we
+ * want wxStyledTextCtrl to be in DLL form as well?
+ */
+#if defined(WXUSINGDLL) && \
+ (defined(WXMAKING_STC_DLL) || defined(WXUSING_STC_DLL))
+
+#if defined(WXMAKING_STC_DLL)
+ // When building the DLL WXSTC_DECLSPEC exports classes
+# define WXSTC_DECLSPEC WXEXPORT
+#elif defined(WXUSING_STC_DLL)
+ // When using the DLL WXSTC_DECLSPEC imports classes
+# define WXSTC_DECLSPEC WXIMPORT
+#endif // defined(WXBUILD_STC_DLL)
+
+#else
+// When building the static library nullify the effect of WXSTC_DECLSPEC
+#define WXSTC_DECLSPEC
+#endif // WXUSINGDLL && (WXMAKING_STC_DLL || WXUSING_STC_DLL)
+
+#endif // SWIG
+
+
//----------------------------------------------------------------------
// Should a wxPopupWindow be used for the call tips and autocomplete windows?
@@ -50,12 +74,6 @@
#define wxSTC_START 2000
#define wxSTC_OPTIONAL_START 3000
#define wxSTC_LEXER_START 4000
-
-// Redoes the next action on the undo history.
-#define wxSTC_CMD_REDO 2011
-
-// Select all the text in the document.
-#define wxSTC_CMD_SELECTALL 2013
#define wxSTC_WS_INVISIBLE 0
#define wxSTC_WS_VISIBLEALWAYS 1
#define wxSTC_WS_VISIBLEAFTERINDENT 2
@@ -66,6 +84,9 @@
// The SC_CP_UTF8 value can be used to enter Unicode mode.
// This is the same value as CP_UTF8 in Windows
#define wxSTC_CP_UTF8 65001
+
+// The SC_CP_DBCS value can be used to indicate a DBCS mode for GTK+.
+#define wxSTC_CP_DBCS 1
#define wxSTC_MARKER_MAX 31
#define wxSTC_MARK_CIRCLE 0
#define wxSTC_MARK_ROUNDRECT 1
@@ -96,6 +117,7 @@
#define wxSTC_MARK_BACKGROUND 22
#define wxSTC_MARK_DOTDOTDOT 23
#define wxSTC_MARK_ARROWS 24
+#define wxSTC_MARK_PIXMAP 25
#define wxSTC_MARK_CHARACTER 10000
// Markers used for outlining column.
@@ -174,22 +196,20 @@
#define wxSTC_FIND_MATCHCASE 4
#define wxSTC_FIND_WORDSTART 0x00100000
#define wxSTC_FIND_REGEXP 0x00200000
-
-// Undo one action in the undo history.
-#define wxSTC_CMD_UNDO 2176
-
-// Cut the selection to the clipboard.
-#define wxSTC_CMD_CUT 2177
-
-// Copy the selection to the clipboard.
-#define wxSTC_CMD_COPY 2178
-
-// Paste the contents of the clipboard into the document replacing the selection.
-#define wxSTC_CMD_PASTE 2179
#define wxSTC_FOLDLEVELBASE 0x400
#define wxSTC_FOLDLEVELWHITEFLAG 0x1000
#define wxSTC_FOLDLEVELHEADERFLAG 0x2000
+#define wxSTC_FOLDLEVELBOXHEADERFLAG 0x4000
+#define wxSTC_FOLDLEVELBOXFOOTERFLAG 0x8000
+#define wxSTC_FOLDLEVELCONTRACTED 0x10000
+#define wxSTC_FOLDLEVELUNINDENT 0x20000
#define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF
+#define wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002
+#define wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004
+#define wxSTC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008
+#define wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010
+#define wxSTC_FOLDFLAG_LEVELNUMBERS 0x0040
+#define wxSTC_FOLDFLAG_BOX 0x0001
#define wxSTC_TIME_FOREVER 10000000
#define wxSTC_WRAP_NONE 0
#define wxSTC_WRAP_WORD 1
@@ -197,163 +217,11 @@
#define wxSTC_CACHE_CARET 1
#define wxSTC_CACHE_PAGE 2
#define wxSTC_CACHE_DOCUMENT 3
-
-// Move caret down one line.
-#define wxSTC_CMD_LINEDOWN 2300
-
-// Move caret down one line extending selection to new caret position.
-#define wxSTC_CMD_LINEDOWNEXTEND 2301
-
-// Move caret up one line.
-#define wxSTC_CMD_LINEUP 2302
-
-// Move caret up one line extending selection to new caret position.
-#define wxSTC_CMD_LINEUPEXTEND 2303
-
-// Move caret left one character.
-#define wxSTC_CMD_CHARLEFT 2304
-
-// Move caret left one character extending selection to new caret position.
-#define wxSTC_CMD_CHARLEFTEXTEND 2305
-
-// Move caret right one character.
-#define wxSTC_CMD_CHARRIGHT 2306
-
-// Move caret right one character extending selection to new caret position.
-#define wxSTC_CMD_CHARRIGHTEXTEND 2307
-
-// Move caret left one word.
-#define wxSTC_CMD_WORDLEFT 2308
-
-// Move caret left one word extending selection to new caret position.
-#define wxSTC_CMD_WORDLEFTEXTEND 2309
-
-// Move caret right one word.
-#define wxSTC_CMD_WORDRIGHT 2310
-
-// Move caret right one word extending selection to new caret position.
-#define wxSTC_CMD_WORDRIGHTEXTEND 2311
-
-// Move caret to first position on line.
-#define wxSTC_CMD_HOME 2312
-
-// Move caret to first position on line extending selection to new caret position.
-#define wxSTC_CMD_HOMEEXTEND 2313
-
-// Move caret to last position on line.
-#define wxSTC_CMD_LINEEND 2314
-
-// Move caret to last position on line extending selection to new caret position.
-#define wxSTC_CMD_LINEENDEXTEND 2315
-
-// Move caret to first position in document.
-#define wxSTC_CMD_DOCUMENTSTART 2316
-
-// Move caret to first position in document extending selection to new caret position.
-#define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
-
-// Move caret to last position in document.
-#define wxSTC_CMD_DOCUMENTEND 2318
-
-// Move caret to last position in document extending selection to new caret position.
-#define wxSTC_CMD_DOCUMENTENDEXTEND 2319
-
-// Move caret one page up.
-#define wxSTC_CMD_PAGEUP 2320
-
-// Move caret one page up extending selection to new caret position.
-#define wxSTC_CMD_PAGEUPEXTEND 2321
-
-// Move caret one page down.
-#define wxSTC_CMD_PAGEDOWN 2322
-
-// Move caret one page down extending selection to new caret position.
-#define wxSTC_CMD_PAGEDOWNEXTEND 2323
-
-// Switch from insert to overtype mode or the reverse.
-#define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
-
-// Cancel any modes such as call tip or auto-completion list display.
-#define wxSTC_CMD_CANCEL 2325
-
-// Delete the selection or if no selection, the character before the caret.
-#define wxSTC_CMD_DELETEBACK 2326
-
-// If selection is empty or all on one line replace the selection with a tab character.
-// If more than one line selected, indent the lines.
-#define wxSTC_CMD_TAB 2327
-
-// Dedent the selected lines.
-#define wxSTC_CMD_BACKTAB 2328
-
-// Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
-#define wxSTC_CMD_NEWLINE 2329
-
-// Insert a Form Feed character.
-#define wxSTC_CMD_FORMFEED 2330
-
-// Move caret to before first visible character on line.
-// If already there move to first character on line.
-#define wxSTC_CMD_VCHOME 2331
-
-// Like VCHome but extending selection to new caret position.
-#define wxSTC_CMD_VCHOMEEXTEND 2332
-
-// Magnify the displayed text by increasing the sizes by 1 point.
-#define wxSTC_CMD_ZOOMIN 2333
-
-// Make the displayed text smaller by decreasing the sizes by 1 point.
-#define wxSTC_CMD_ZOOMOUT 2334
-
-// Delete the word to the left of the caret.
-#define wxSTC_CMD_DELWORDLEFT 2335
-
-// Delete the word to the right of the caret.
-#define wxSTC_CMD_DELWORDRIGHT 2336
-
-// Cut the line containing the caret.
-#define wxSTC_CMD_LINECUT 2337
-
-// Delete the line containing the caret.
-#define wxSTC_CMD_LINEDELETE 2338
-
-// Switch the current line with the previous.
-#define wxSTC_CMD_LINETRANSPOSE 2339
-
-// Transform the selection to lower case.
-#define wxSTC_CMD_LOWERCASE 2340
-
-// Transform the selection to upper case.
-#define wxSTC_CMD_UPPERCASE 2341
-
-// Scroll the document down, keeping the caret visible.
-#define wxSTC_CMD_LINESCROLLDOWN 2342
-
-// Scroll the document up, keeping the caret visible.
-#define wxSTC_CMD_LINESCROLLUP 2343
-
-// Delete the selection or if no selection, the character before the caret.
-// Will not delete the character before at the start of a line.
-#define wxSTC_CMD_DELETEBACKNOTLINE 2344
-
-// Move caret to first position on display line.
-#define wxSTC_CMD_HOMEDISPLAY 2345
-
-// Move caret to first position on display line extending selection to
-// new caret position.
-#define wxSTC_CMD_HOMEDISPLAYEXTEND 2346
-
-// Move caret to last position on display line.
-#define wxSTC_CMD_LINEENDDISPLAY 2347
-
-// Move caret to last position on display line extending selection to new
-// caret position.
-#define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348
#define wxSTC_EDGE_NONE 0
#define wxSTC_EDGE_LINE 1
#define wxSTC_EDGE_BACKGROUND 2
#define wxSTC_CURSORNORMAL - 1
-#define wxSTC_CURSORWAIT 3
+#define wxSTC_CURSORWAIT 4
// Constants for use with SetVisiblePolicy, similar to SetCaretPolicy.
#define wxSTC_VISIBLE_SLOP 0x01
@@ -461,6 +329,11 @@
#define wxSTC_LEX_BAAN 31
#define wxSTC_LEX_MATLAB 32
#define wxSTC_LEX_SCRIPTOL 33
+#define wxSTC_LEX_ASM 34
+#define wxSTC_LEX_CPPNOCASE 35
+#define wxSTC_LEX_FORTRAN 36
+#define wxSTC_LEX_F77 37
+#define wxSTC_LEX_CSS 38
// When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
// value assigned in sequence from SCLEX_AUTOMATIC+1.
@@ -729,6 +602,7 @@
#define wxSTC_ERR_DIFF_ADDITION 11
#define wxSTC_ERR_DIFF_DELETION 12
#define wxSTC_ERR_DIFF_MESSAGE 13
+#define wxSTC_ERR_PHP 14
// Lexical states for SCLEX_BATCH
#define wxSTC_BAT_DEFAULT 0
@@ -775,24 +649,31 @@
#define wxSTC_AVE_COMMENT 1
#define wxSTC_AVE_NUMBER 2
#define wxSTC_AVE_WORD 3
-#define wxSTC_AVE_KEYWORD 4
-#define wxSTC_AVE_STATEMENT 5
#define wxSTC_AVE_STRING 6
#define wxSTC_AVE_ENUM 7
#define wxSTC_AVE_STRINGEOL 8
#define wxSTC_AVE_IDENTIFIER 9
#define wxSTC_AVE_OPERATOR 10
+#define wxSTC_AVE_WORD1 11
+#define wxSTC_AVE_WORD2 12
+#define wxSTC_AVE_WORD3 13
+#define wxSTC_AVE_WORD4 14
+#define wxSTC_AVE_WORD5 15
+#define wxSTC_AVE_WORD6 16
// Lexical states for SCLEX_ADA
#define wxSTC_ADA_DEFAULT 0
-#define wxSTC_ADA_COMMENT 1
-#define wxSTC_ADA_NUMBER 2
-#define wxSTC_ADA_WORD 3
-#define wxSTC_ADA_STRING 4
+#define wxSTC_ADA_WORD 1
+#define wxSTC_ADA_IDENTIFIER 2
+#define wxSTC_ADA_NUMBER 3
+#define wxSTC_ADA_DELIMITER 4
#define wxSTC_ADA_CHARACTER 5
-#define wxSTC_ADA_OPERATOR 6
-#define wxSTC_ADA_IDENTIFIER 7
+#define wxSTC_ADA_CHARACTEREOL 6
+#define wxSTC_ADA_STRING 7
#define wxSTC_ADA_STRINGEOL 8
+#define wxSTC_ADA_LABEL 9
+#define wxSTC_ADA_COMMENTLINE 10
+#define wxSTC_ADA_ILLEGAL 11
// Lexical states for SCLEX_BAAN
#define wxSTC_BAAN_DEFAULT 0
@@ -873,6 +754,252 @@
#define wxSTC_SCRIPTOL_COMMENTDOCKEYWORDERROR 18
#define wxSTC_SCRIPTOL_COMMENTBASIC 19
+// Lexical states for SCLEX_ASM
+#define wxSTC_ASM_DEFAULT 0
+#define wxSTC_ASM_COMMENT 1
+#define wxSTC_ASM_NUMBER 2
+#define wxSTC_ASM_STRING 3
+#define wxSTC_ASM_OPERATOR 4
+#define wxSTC_ASM_IDENTIFIER 5
+#define wxSTC_ASM_CPUINSTRUCTION 6
+#define wxSTC_ASM_MATHINSTRUCTION 7
+#define wxSTC_ASM_REGISTER 8
+#define wxSTC_ASM_DIRECTIVE 9
+#define wxSTC_ASM_DIRECTIVEOPERAND 10
+
+// Lexical states for SCLEX_FORTRAN
+#define wxSTC_F_DEFAULT 0
+#define wxSTC_F_COMMENT 1
+#define wxSTC_F_NUMBER 2
+#define wxSTC_F_STRING1 3
+#define wxSTC_F_STRING2 4
+#define wxSTC_F_STRINGEOL 5
+#define wxSTC_F_OPERATOR 6
+#define wxSTC_F_IDENTIFIER 7
+#define wxSTC_F_WORD 8
+#define wxSTC_F_WORD2 9
+#define wxSTC_F_WORD3 10
+#define wxSTC_F_PREPROCESSOR 11
+#define wxSTC_F_OPERATOR2 12
+#define wxSTC_F_LABEL 13
+#define wxSTC_F_CONTINUATION 14
+
+// Lexical states for SCLEX_CSS
+#define wxSTC_CSS_DEFAULT 0
+#define wxSTC_CSS_TAG 1
+#define wxSTC_CSS_CLASS 2
+#define wxSTC_CSS_PSEUDOCLASS 3
+#define wxSTC_CSS_UNKNOWN_PSEUDOCLASS 4
+#define wxSTC_CSS_OPERATOR 5
+#define wxSTC_CSS_IDENTIFIER 6
+#define wxSTC_CSS_UNKNOWN_IDENTIFIER 7
+#define wxSTC_CSS_VALUE 8
+#define wxSTC_CSS_COMMENT 9
+#define wxSTC_CSS_ID 10
+#define wxSTC_CSS_IMPORTANT 11
+#define wxSTC_CSS_DIRECTIVE 12
+
+
+//-----------------------------------------
+// Commands that can be bound to keystrokes
+
+// Redoes the next action on the undo history.
+#define wxSTC_CMD_REDO 2011
+
+// Select all the text in the document.
+#define wxSTC_CMD_SELECTALL 2013
+
+// Undo one action in the undo history.
+#define wxSTC_CMD_UNDO 2176
+
+// Cut the selection to the clipboard.
+#define wxSTC_CMD_CUT 2177
+
+// Copy the selection to the clipboard.
+#define wxSTC_CMD_COPY 2178
+
+// Paste the contents of the clipboard into the document replacing the selection.
+#define wxSTC_CMD_PASTE 2179
+
+// Clear the selection.
+#define wxSTC_CMD_CLEAR 2180
+
+// Move caret down one line.
+#define wxSTC_CMD_LINEDOWN 2300
+
+// Move caret down one line extending selection to new caret position.
+#define wxSTC_CMD_LINEDOWNEXTEND 2301
+
+// Move caret up one line.
+#define wxSTC_CMD_LINEUP 2302
+
+// Move caret up one line extending selection to new caret position.
+#define wxSTC_CMD_LINEUPEXTEND 2303
+
+// Move caret left one character.
+#define wxSTC_CMD_CHARLEFT 2304
+
+// Move caret left one character extending selection to new caret position.
+#define wxSTC_CMD_CHARLEFTEXTEND 2305
+
+// Move caret right one character.
+#define wxSTC_CMD_CHARRIGHT 2306
+
+// Move caret right one character extending selection to new caret position.
+#define wxSTC_CMD_CHARRIGHTEXTEND 2307
+
+// Move caret left one word.
+#define wxSTC_CMD_WORDLEFT 2308
+
+// Move caret left one word extending selection to new caret position.
+#define wxSTC_CMD_WORDLEFTEXTEND 2309
+
+// Move caret right one word.
+#define wxSTC_CMD_WORDRIGHT 2310
+
+// Move caret right one word extending selection to new caret position.
+#define wxSTC_CMD_WORDRIGHTEXTEND 2311
+
+// Move caret to first position on line.
+#define wxSTC_CMD_HOME 2312
+
+// Move caret to first position on line extending selection to new caret position.
+#define wxSTC_CMD_HOMEEXTEND 2313
+
+// Move caret to last position on line.
+#define wxSTC_CMD_LINEEND 2314
+
+// Move caret to last position on line extending selection to new caret position.
+#define wxSTC_CMD_LINEENDEXTEND 2315
+
+// Move caret to first position in document.
+#define wxSTC_CMD_DOCUMENTSTART 2316
+
+// Move caret to first position in document extending selection to new caret position.
+#define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
+
+// Move caret to last position in document.
+#define wxSTC_CMD_DOCUMENTEND 2318
+
+// Move caret to last position in document extending selection to new caret position.
+#define wxSTC_CMD_DOCUMENTENDEXTEND 2319
+
+// Move caret one page up.
+#define wxSTC_CMD_PAGEUP 2320
+
+// Move caret one page up extending selection to new caret position.
+#define wxSTC_CMD_PAGEUPEXTEND 2321
+
+// Move caret one page down.
+#define wxSTC_CMD_PAGEDOWN 2322
+
+// Move caret one page down extending selection to new caret position.
+#define wxSTC_CMD_PAGEDOWNEXTEND 2323
+
+// Switch from insert to overtype mode or the reverse.
+#define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
+
+// Cancel any modes such as call tip or auto-completion list display.
+#define wxSTC_CMD_CANCEL 2325
+
+// Delete the selection or if no selection, the character before the caret.
+#define wxSTC_CMD_DELETEBACK 2326
+
+// If selection is empty or all on one line replace the selection with a tab character.
+// If more than one line selected, indent the lines.
+#define wxSTC_CMD_TAB 2327
+
+// Dedent the selected lines.
+#define wxSTC_CMD_BACKTAB 2328
+
+// Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
+#define wxSTC_CMD_NEWLINE 2329
+
+// Insert a Form Feed character.
+#define wxSTC_CMD_FORMFEED 2330
+
+// Move caret to before first visible character on line.
+// If already there move to first character on line.
+#define wxSTC_CMD_VCHOME 2331
+
+// Like VCHome but extending selection to new caret position.
+#define wxSTC_CMD_VCHOMEEXTEND 2332
+
+// Magnify the displayed text by increasing the sizes by 1 point.
+#define wxSTC_CMD_ZOOMIN 2333
+
+// Make the displayed text smaller by decreasing the sizes by 1 point.
+#define wxSTC_CMD_ZOOMOUT 2334
+
+// Delete the word to the left of the caret.
+#define wxSTC_CMD_DELWORDLEFT 2335
+
+// Delete the word to the right of the caret.
+#define wxSTC_CMD_DELWORDRIGHT 2336
+
+// Cut the line containing the caret.
+#define wxSTC_CMD_LINECUT 2337
+
+// Delete the line containing the caret.
+#define wxSTC_CMD_LINEDELETE 2338
+
+// Switch the current line with the previous.
+#define wxSTC_CMD_LINETRANSPOSE 2339
+
+// Duplicate the current line.
+#define wxSTC_CMD_LINEDUPLICATE 2404
+
+// Transform the selection to lower case.
+#define wxSTC_CMD_LOWERCASE 2340
+
+// Transform the selection to upper case.
+#define wxSTC_CMD_UPPERCASE 2341
+
+// Scroll the document down, keeping the caret visible.
+#define wxSTC_CMD_LINESCROLLDOWN 2342
+
+// Scroll the document up, keeping the caret visible.
+#define wxSTC_CMD_LINESCROLLUP 2343
+
+// Delete the selection or if no selection, the character before the caret.
+// Will not delete the character before at the start of a line.
+#define wxSTC_CMD_DELETEBACKNOTLINE 2344
+
+// Move caret to first position on display line.
+#define wxSTC_CMD_HOMEDISPLAY 2345
+
+// Move caret to first position on display line extending selection to
+// new caret position.
+#define wxSTC_CMD_HOMEDISPLAYEXTEND 2346
+
+// Move caret to last position on display line.
+#define wxSTC_CMD_LINEENDDISPLAY 2347
+
+// Move caret to last position on display line extending selection to new
+// caret position.
+#define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348
+
+// Move to the previous change in capitalisation.
+#define wxSTC_CMD_WORDPARTLEFT 2390
+
+// Move to the previous change in capitalisation extending selection
+// to new caret position.
+#define wxSTC_CMD_WORDPARTLEFTEXTEND 2391
+
+// Move to the change next in capitalisation.
+#define wxSTC_CMD_WORDPARTRIGHT 2392
+
+// Move to the next change in capitalisation extending selection
+// to new caret position.
+#define wxSTC_CMD_WORDPARTRIGHTEXTEND 2393
+
+// Delete back from the current position to the start of the line.
+#define wxSTC_CMD_DELLINELEFT 2395
+
+// Delete forwards from the current position to the end of the line.
+#define wxSTC_CMD_DELLINERIGHT 2396
+
+
// END of generated section
//----------------------------------------------------------------------
@@ -880,8 +1007,11 @@
class WordList;
struct SCNotification;
-
-extern const wxChar* wxSTCNameStr;
+#ifndef SWIG
+extern WXSTC_DECLSPEC const wxChar* wxSTCNameStr;
+class WXSTC_DECLSPEC wxStyledTextCtrl;
+class WXSTC_DECLSPEC wxStyledTextEvent;
+#endif
//----------------------------------------------------------------------
@@ -1043,8 +1173,8 @@
// Set the symbol used for a particular marker number,
// and optionally the fore and background colours.
void MarkerDefine(int markerNumber, int markerSymbol,
- const wxColour& foreground = wxNullColour,
- const wxColour& background = wxNullColour);
+ const wxColour& foreground = wxNullColour,
+ const wxColour& background = wxNullColour);
// Set the foreground colour used for a particular marker number.
void MarkerSetForeground(int markerNumber, const wxColour& fore);
@@ -1070,6 +1200,9 @@
// Find the previous line before lineStart that includes a marker in mask.
int MarkerPrevious(int lineStart, int markerMask);
+ // Define a marker from a bitmap
+ void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp);
+
// Set a margin to be either numeric or symbolic.
void SetMarginType(int margin, int marginType);
@@ -1291,6 +1424,19 @@
// after the inserted text upon completion.
bool AutoCompGetDropRestOfWord();
+ // Register an image for use in autocompletion lists.
+ void RegisterImage(int type, const wxBitmap& bmp);
+
+ // Clear all the registered images.
+ void ClearRegisteredImages();
+
+ // Retrieve the auto-completion list type-separator character.
+ int AutoCompGetTypeSeparator();
+
+ // Change the type-separator character in the string setting up an auto-completion list.
+ // Default is '?' but can be changed if items contain '?'.
+ void AutoCompSetTypeSeparator(int separatorCharacter);
+
// Set the number of spaces used for one level of indentation.
void SetIndent(int indentSize);
@@ -1379,14 +1525,14 @@
// On Windows, will draw the document into a display context such as a printer.
int FormatRange(bool doDraw,
- int startPos,
- int endPos,
- wxDC* draw,
- wxDC* target, // Why does it use two? Can they be the same?
- wxRect renderRect,
- wxRect pageRect);
-
- // Retrieve the line at the top of the display.
+ int startPos,
+ int endPos,
+ wxDC* draw,
+ wxDC* target, // Why does it use two? Can they be the same?
+ wxRect renderRect,
+ wxRect pageRect);
+
+ // Retrieve the display line at the top of the display.
int GetFirstVisibleLine();
// Retrieve the contents of a line.
@@ -1582,7 +1728,7 @@
// Ensure a particular line is visible by expanding any header line hiding it.
void EnsureVisible(int line);
- // Set some debugging options for folding.
+ // Set some style options for folding.
void SetFoldFlags(int flags);
// Ensure a particular line is visible by expanding any header line hiding it.
@@ -1648,17 +1794,51 @@
// Retrieve the height of a particular line of text in pixels.
int TextHeight(int line);
+ // Show or hide the vertical scroll bar.
+ void SetUseVerticalScrollBar(bool show);
+
+ // Is the vertical scroll bar visible?
+ bool GetUseVerticalScrollBar();
+
+ // Append a string to the end of the document without changing the selection.
+ void AppendText(int length, const wxString& text);
+
+ // Is drawing done in two phases with backgrounds drawn before foregrounds?
+ bool GetTwoPhaseDraw();
+
+ // In twoPhaseDraw mode, drawing is performed in two phases, first the background
+ // and then the foreground. This avoids chopping off characters that overlap the next run.
+ void SetTwoPhaseDraw(bool twoPhase);
+
+ // Make the target range start and end be the same as the selection range start and end.
+ void TargetFromSelection();
+
+ // Join the lines in the target.
+ // This is an experimental feature and may be changed or removed.
+ void LinesJoin();
+
+ // Split the lines in the target into lines that are less wide than pixelWidth
+ // where possible.
+ void LinesSplit(int pixelWidth);
+
+ // Set the colours used as a chequerboard pattern in the fold margin
+ void SetFoldMarginColour(bool useSetting, const wxColour& back);
+ void SetFoldMarginHiColour(bool useSetting, const wxColour& fore);
+
+ // Duplicate the current line.
+ void LineDuplicate();
+
// Move caret to first position on display line.
void HomeDisplay();
- // Move caret to first position on display line extending selection to
+ // Move caret to first position on display line extending selection to
// new caret position.
void HomeDisplayExtend();
// Move caret to last position on display line.
void LineEndDisplay();
- // Move caret to last position on display line extending selection to new
+ // Move caret to last position on display line extending selection to new
// caret position.
void LineEndDisplayExtend();
@@ -1812,6 +1992,9 @@
void SetXOffset(int newOffset);
int GetXOffset();
+ // Set the last x chosen value to be the caret x position
+ void ChooseCaretX();
+
// Set the way the caret is kept visible when going sideway.
// The exclusion zone is given in pixels.
void SetXCaretPolicy(int caretPolicy, int caretSlop);
@@ -1820,6 +2003,12 @@
// The exclusion zone is given in lines.
void SetYCaretPolicy(int caretPolicy, int caretSlop);
+ // Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
+ void SetPrintWrapMode(int mode);
+
+ // Is printing line wrapped.
+ int GetPrintWrapMode();
+
// Start notifying the container of all key presses and commands.
void StartRecord();
@@ -1940,6 +2129,7 @@
void OnMouseMove(wxMouseEvent& evt);
void OnMouseLeftUp(wxMouseEvent& evt);
void OnMouseRightUp(wxMouseEvent& evt);
+ void OnMouseMiddleUp(wxMouseEvent& evt);
void OnContextMenu(wxContextMenuEvent& evt);
void OnMouseWheel(wxMouseEvent& evt);
void OnChar(wxKeyEvent& evt);
@@ -1975,7 +2165,7 @@
//----------------------------------------------------------------------
-// SWIG can't handle "#if" type of conditionals, onlu "#ifdef"
+// SWIG can't handle "#if" type of conditionals, only "#ifdef"
#ifdef SWIG
#define STC_USE_DND 1
#else
diff --git a/wxPython/demo/data/wxPackage.html b/wxPython/demo/data/wxPackage.html
new file mode 100644
index 0000000000..5b2fb06588
--- /dev/null
+++ b/wxPython/demo/data/wxPackage.html
@@ -0,0 +1,290 @@
+
+
+
+
+
+
+The wxPython wx Package
+
+
+
+
+
+
+
+
The wxPython wx Package
+
Or, how to survive the new wx namespace changes.
+
+
+
+
+Author:
+Patrick K. O'Brien
+Contact:
+pobrien@orbtech.com
+Organization:
+Orbtech
+Date:
+2003-05-08
+Revision:
+1.1.2.4
+
+
+
+
+
+
Big things sometimes come in small packages. This is certainly true
+of the new wx package, which is being introduced in wxPython 2.4.1 as
+a way to allow the "wx" prefix to be dropped from the names of all
+wxPython classes, functions, and constants. This document should
+answer all the questions you might have concerning the new wx package.
+If not, feel free to contact the author. I hope you like the new wx
+package as much as I do.
+
+
+
+
This change is being made for a couple of reasons. The first reason
+is to discourage the use of import * , which is a dangerous
+technique that can create name conflicts and bloated namespaces.
+
The second reason is to remove what some perceive to be a "wart." For
+example, the following code is rather ugly in that the "wx" prefix on
+the wxFrame class name is no longer useful when you're using the wx
+module prefix:
+
+from wxPython import wx
+
+class Frame(wx.wxFrame)
+
+
The new wx package allows you to write code like this, instead:
+
+import wx
+
+class Frame(wx.Frame)
+
+
The third reason is that the wxWindows project intends to do the same
+thing (implement a new wx namespace and drop the "wx" prefix) and we
+want wxPython to lead the way.
+
+
+
+
As a way of getting to this new syntax as quickly as possible, the
+code in this new wx package was created. What it does is alter the
+existing wx namespace dynamically. By making the changes on-the-fly
+at runtime, we can try out the new syntax before any permanent changes
+are made to the underlying class library. The downside of making
+these changes at runtime is that there is a slight delay when you
+import wx ; the upside is that you can start using the new syntax
+now.
+
+
+
+
No. Your existing code will continue to work and be supported for
+some time. It will be up to you to decide when to switch to the new
+syntax. But all new documentation and code examples will use the new
+syntax. So don't wait too long. You wouldn't want anyone calling you
+old-fashioned, would you?
+
+
+
+
It's pretty simple, and pretty clever. The wx directory contains an
+__init__.py file, making it a Python package. (In contrast, the
+old wxPython.wx module is a module, not a package.) When you import
+wx the code in the __init__.py file is executed, and that's
+where all the magic takes place. Let's take a look at the code inside
+the __init__.py file:
+
+"""wx package
+
+Provides a way to drop the wx prefix from wxPython objects."""
+
+__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
+__cvsid__ = "$Id$"
+__revision__ = "$Revision$"[11:-2]
+
+from wxPython import wx
+
+import types
+
+d_new = globals()
+d_old = wx.__dict__
+
+for old, obj in d_old.items():
+ if type(obj) is types.ModuleType or old.startswith('_'):
+ # Skip modules and private names.
+ continue
+ new = old
+ if old.startswith('EVT_'):
+ # Leave name unmodified; add to the new wx namespace.
+ d_new[new] = obj
+ elif old.startswith('wxEVT_'):
+ # Leave name unmodified; add to the new wx namespace.
+ d_new[new] = obj
+ else:
+ if old.startswith('wx'):
+ # Remove the 'wx' prefix.
+ new = old[2:]
+ # Add to the new wx package namespace.
+ d_new[new] = obj
+
+del d_new
+del d_old
+del new
+del obj
+del old
+del types
+
+del wx
+
+
+
Namespaces in Python are implemented as dictionaries. The dictionary
+used to create the wx package's namespace is accessible using the
+globals() function. The dictionary used to create the old
+wxPython.wx module's namespace is wx.__dict__ . Once we have these
+two dictionaries, it's a simple matter of iterating through one,
+changing the names, adding the renamed object to the other dictionary,
+and cleaning up a few local variables and imported modules. Voila!
+
+
+
+
There's more to wxPython than just the wx namespace. And we've got
+those extra modules covered as well. For each of those modules (as
+well as the lib package) we've got matching modules in the new wx
+package. Let's take a look at a few of them.
+
Here is html.py :
+
+"""Provides a way to drop the wx prefix from wxPython objects."""
+
+__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
+__cvsid__ = "$Id$"
+__revision__ = "$Revision$"[11:-2]
+
+import wx
+from wx import prefix
+
+from wxPython import html
+prefix.rename(d_new=globals(), d_old=html.__dict__)
+del html
+
+del prefix
+del wx
+
+
+
And here is lib/dialogs.py :
+
+"""Provides a way to drop the wx prefix from wxPython objects."""
+
+__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
+__cvsid__ = "$Id$"
+__revision__ = "$Revision$"[11:-2]
+
+import wx
+from wx import prefix
+
+from wxPython.lib import dialogs
+prefix.rename(d_new=globals(), d_old=dialogs.__dict__)
+del dialogs
+
+del prefix
+del wx
+
+
+
As you can see, they both rely on the prefix.rename() function
+defined in prefix.py :
+
+"""Renaming utility.
+
+Provides a way to drop the wx prefix from wxPython objects."""
+
+__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
+__cvsid__ = "$Id$"
+__revision__ = "$Revision$"[11:-2]
+
+import types
+
+def rename(d_new, d_old):
+ for old, obj in d_old.items():
+ if type(obj) is types.ModuleType or old.startswith('_'):
+ # Skip modules and private names.
+ continue
+## mod = d_old['__name__']
+## if hasattr(obj, '__module__') and not obj.__module__.startswith(mod):
+## # Skip objects imported from other modules, except those
+## # related to the current module, such as stc_.
+## continue
+ new = old
+ if old.startswith('EVT_') or old.startswith('wxEVT_'):
+ # Leave these names unmodified.
+ pass
+ elif old.startswith('wx'):
+ new = old[2:]
+ if new:
+ d_new[new] = d_old[old]
+
+
+
Again, the technique is very similar to the one used by the wx
+package.
+
+
+
+
The wx package is automatically created when you install wxPython
+version 2.4.1 or higher. So all you have to do is:
+
+import wx
+
+
+
+
+
Obviously, you need to change your import statements from:
+
+from wxPython import wx
+
+
or:
+
+from wxPython.wx import *
+
+
to:
+
+import wx
+
+
Then you need to refer to wx attributes without a "wx" prefix, such
+as:
+
+class MyFrame(wx.Frame):
+
+
In most cases, existing code can be modified with a simple search and
+replace.
+
One extra issue you might run into when converting existing code is
+that the wx.__version__ attribute is no longer available, since the
+new wx namespace doesn't include any private attributes from the old
+wxPython.wx namespace. The solution is to use the wx.VERSION_STRING
+attribute, which was introduced in wxPython 2.4.1.
+
+
+
+
Example programs are included in the wxPython/samples/wx_examples
+directory, and are documented in the wxPythonExamples documentation
+file. Also, all the code in the py package uses the new wx syntax.
+You can learn more about these in the PyManual .
+
+
+
+
+
+
diff --git a/wxPython/demo/demoMainLoop.py b/wxPython/demo/demoMainLoop.py
index 3d66c2ae4c..73146d1d7d 100755
--- a/wxPython/demo/demoMainLoop.py
+++ b/wxPython/demo/demoMainLoop.py
@@ -9,48 +9,48 @@ in Python. This is not part of the demo framework.
"""
-from wxPython.wx import *
+import wx # This module uses the new wx namespace
import time
#---------------------------------------------------------------------------
-class MyFrame(wxFrame):
+class MyFrame(wx.Frame):
def __init__(self, parent, id, title):
- wxFrame.__init__(self, parent, id, title,
- wxPoint(100, 100), wxSize(160, 150))
+ wx.Frame.__init__(self, parent, id, title,
+ wx.Point(100, 100), wx.Size(160, 150))
- EVT_SIZE(self, self.OnSize)
- EVT_MOVE(self, self.OnMove)
- EVT_CLOSE(self, self.OnCloseWindow)
- EVT_IDLE(self, self.OnIdle)
+ wx.EVT_SIZE(self, self.OnSize)
+ wx.EVT_MOVE(self, self.OnMove)
+ wx.EVT_CLOSE(self, self.OnCloseWindow)
+ wx.EVT_IDLE(self, self.OnIdle)
self.count = 0
- panel = wxPanel(self, -1)
- wxStaticText(panel, -1, "Size:",
- wxDLG_PNT(panel, wxPoint(4, 4)), wxDefaultSize)
- wxStaticText(panel, -1, "Pos:",
- wxDLG_PNT(panel, wxPoint(4, 16)), wxDefaultSize)
+ panel = wx.Panel(self, -1)
+ wx.StaticText(panel, -1, "Size:",
+ wx.DLG_PNT(panel, wx.Point(4, 4)), wx.DefaultSize)
+ wx.StaticText(panel, -1, "Pos:",
+ wx.DLG_PNT(panel, wx.Point(4, 16)), wx.DefaultSize)
- wxStaticText(panel, -1, "Idle:",
- wxDLG_PNT(panel, wxPoint(4, 28)), wxDefaultSize)
+ wx.StaticText(panel, -1, "Idle:",
+ wx.DLG_PNT(panel, wx.Point(4, 28)), wx.DefaultSize)
- self.sizeCtrl = wxTextCtrl(panel, -1, "",
- wxDLG_PNT(panel, wxPoint(24, 4)),
- wxDLG_SZE(panel, wxSize(36, -1)),
- wxTE_READONLY)
+ self.sizeCtrl = wx.TextCtrl(panel, -1, "",
+ wx.DLG_PNT(panel, wx.Point(24, 4)),
+ wx.DLG_SZE(panel, wx.Size(36, -1)),
+ wx.TE_READONLY)
- self.posCtrl = wxTextCtrl(panel, -1, "",
- wxDLG_PNT(panel, wxPoint(24, 16)),
- wxDLG_SZE(panel, wxSize(36, -1)),
- wxTE_READONLY)
+ self.posCtrl = wx.TextCtrl(panel, -1, "",
+ wx.DLG_PNT(panel, wx.Point(24, 16)),
+ wx.DLG_SZE(panel, wx.Size(36, -1)),
+ wx.TE_READONLY)
- self.idleCtrl = wxTextCtrl(panel, -1, "",
- wxDLG_PNT(panel, wxPoint(24, 28)),
- wxDLG_SZE(panel, wxSize(36, -1)),
- wxTE_READONLY)
+ self.idleCtrl = wx.TextCtrl(panel, -1, "",
+ wx.DLG_PNT(panel, wx.Point(24, 28)),
+ wx.DLG_SZE(panel, wx.Size(36, -1)),
+ wx.TE_READONLY)
def OnCloseWindow(self, event):
@@ -74,7 +74,7 @@ class MyFrame(wxFrame):
#---------------------------------------------------------------------------
-class MyApp(wxApp):
+class MyApp(wx.App):
def MainLoop(self):
# This outer loop determines when to exit the application, for
# this example we let the main frame reset this flag when it
diff --git a/wxPython/demo/encode_bitmaps.py b/wxPython/demo/encode_bitmaps.py
index b3d027eb11..5cff6582ce 100644
--- a/wxPython/demo/encode_bitmaps.py
+++ b/wxPython/demo/encode_bitmaps.py
@@ -60,6 +60,7 @@ command_lines = [
"-a -u -n WizTest1 bmp_source/wiztest1.bmp images.py",
"-a -u -n WizTest2 bmp_source/wiztest2.bmp images.py",
+ "-a -u -n Tux bmp_source/Tux.png images.py",
" -u -c bmp_source/001.png throbImages.py",
diff --git a/wxPython/demo/hangman.py b/wxPython/demo/hangman.py
deleted file mode 100644
index f2e09b5bec..0000000000
--- a/wxPython/demo/hangman.py
+++ /dev/null
@@ -1,468 +0,0 @@
-"""Hangman.py, a simple wxPython game, inspired by the
-old bsd game by Ken Arnold.
-From the original man page:
-
- In hangman, the computer picks a word from the on-line
- word list and you must try to guess it. The computer
- keeps track of which letters have been guessed and how
- many wrong guesses you have made on the screen in a
- graphic fashion.
-
-That says it all, doesn't it?
-
-Have fun with it,
-
-Harm van der Heijden (H.v.d.Heijden@phys.tue.nl)"""
-
-import random,re
-from wxPython.wx import *
-
-
-
-class WordFetcher:
- builtin_words = ' albatros banana electrometer eggshell'
-
- def __init__(self, filename, min_length = 5):
- self.min_length = min_length
- print "Trying to open file %s" % (filename,)
- try:
- f = open(filename, "r")
- except:
- print "Couldn't open dictionary file %s, using builtins" % (filename,)
- self.words = self.builtin_words
- self.filename = None
- return
- self.words = f.read()
- self.filename = filename
- print "Got %d bytes." % (len(self.words),)
-
- def SetMinLength(min_length):
- self.min_length = min_length
-
- def Get(self):
- reg = re.compile('\s+([a-zA-Z]+)\s+')
- n = 50 # safety valve; maximum number of tries to find a suitable word
- while n:
- index = int(random.random()*len(self.words))
- m = reg.search(self.words[index:])
- if m and len(m.groups()[0]) >= self.min_length: break
- n = n - 1
- if n: return m.groups()[0].lower()
- return "error"
-
-
-
-def stdprint(x):
- print x
-
-
-
-class URLWordFetcher(WordFetcher):
- def __init__(self, url):
- self.OpenURL(url)
- WordFetcher.__init__(self, "hangman_dict.txt")
-
- def logprint(self,x):
- print x
-
- def RetrieveAsFile(self, host, path=''):
- from httplib import HTTP
- try:
- h = HTTP(host)
- except:
- self.logprint("Failed to create HTTP connection to %s... is the network available?" % (host))
- return None
- h.putrequest('GET',path)
- h.putheader('Accept','text/html')
- h.putheader('Accept','text/plain')
- h.endheaders()
- errcode, errmsg, headers = h.getreply()
- if errcode != 200:
- self.logprint("HTTP error code %d: %s" % (errcode, errmsg))
- return None
- f = h.getfile()
- return f
-
- def OpenURL(self,url):
- from htmllib import HTMLParser
- import formatter
- self.url = url
- m = re.match('http://([^/]+)(/\S*)\s*', url)
- if m:
- host = m.groups()[0]
- path = m.groups()[1]
- else:
- m = re.match('http://(\S+)\s*', url)
- if not m:
- # Invalid URL
- self.logprint("Invalid or unsupported URL: %s" % (url))
- return
- host = m.groups()[0]
- path = ''
- f = self.RetrieveAsFile(host,path)
- if not f:
- self.logprint("Could not open %s" % (url))
- return
- self.logprint("Receiving data...")
- data = f.read()
- tmp = open('hangman_dict.txt','w')
- fmt = formatter.AbstractFormatter(formatter.DumbWriter(tmp))
- p = HTMLParser(fmt)
- self.logprint("Parsing data...")
- p.feed(data)
- p.close()
- tmp.close()
-
-
-
-class HangmanWnd(wxWindow):
- def __init__(self, parent, id, pos=wxDefaultPosition, size=wxDefaultSize):
- wxWindow.__init__(self, parent, id, pos, size)
- self.SetBackgroundColour(wxNamedColour('white'))
- if wxPlatform == '__WXGTK__':
- self.font = wxFont(12, wxMODERN, wxNORMAL, wxNORMAL)
- else:
- self.font = wxFont(10, wxMODERN, wxNORMAL, wxNORMAL)
- self.SetFocus()
- EVT_PAINT(self, self.OnPaint)
-
-
- def StartGame(self, word):
- self.word = word
- self.guess = []
- self.tries = 0
- self.misses = 0
- self.Draw()
-
- def EndGame(self):
- self.misses = 7;
- self.guess = map(chr, range(ord('a'),ord('z')+1))
- self.Draw()
-
- def HandleKey(self, key):
- self.message = ""
- if self.guess.count(key):
- self.message = 'Already guessed %s' % (key,)
- return 0
- self.guess.append(key)
- self.guess.sort()
- self.tries = self.tries+1
- if not key in self.word:
- self.misses = self.misses+1
- if self.misses == 7:
- self.EndGame()
- return 1
- has_won = 1
- for letter in self.word:
- if not self.guess.count(letter):
- has_won = 0
- break
- if has_won:
- self.Draw()
- return 2
- self.Draw()
- return 0
-
- def Draw(self, dc = None):
- if not dc:
- dc = wxClientDC(self)
- dc.SetFont(self.font)
- dc.Clear()
- (x,y) = self.GetSizeTuple()
- x1 = x-200; y1 = 20
- for letter in self.word:
- if self.guess.count(letter):
- dc.DrawText(letter, x1, y1)
- else:
- dc.DrawText('.', x1, y1)
- x1 = x1 + 10
- x1 = x-200
- dc.DrawText("tries %d misses %d" % (self.tries,self.misses),x1,50)
- guesses = ""
- for letter in self.guess:
- guesses = guesses + letter
- dc.DrawText("guessed:", x1, 70)
- dc.DrawText(guesses[:13], x1+80, 70)
- dc.DrawText(guesses[13:], x1+80, 90)
- dc.SetUserScale(x/1000.0, y/1000.0)
- self.DrawVictim(dc)
-
- def DrawVictim(self, dc):
- dc.SetPen(wxPen(wxNamedColour('black'), 20))
- dc.DrawLines([(10, 980), (10,900), (700,900), (700,940), (720,940),
- (720,980), (900,980)])
- dc.DrawLines([(100,900), (100, 100), (300,100)])
- dc.DrawLine(100,200,200,100)
- if ( self.misses == 0 ): return
- dc.SetPen(wxPen(wxNamedColour('blue'), 10))
- dc.DrawLine(300,100,300,200)
- if ( self.misses == 1 ): return
- dc.DrawEllipse(250,200,100,100)
- if ( self.misses == 2 ): return
- dc.DrawLine(300,300,300,600)
- if ( self.misses == 3) : return
- dc.DrawLine(300,300,250,550)
- if ( self.misses == 4) : return
- dc.DrawLine(300,300,350,550)
- if ( self.misses == 5) : return
- dc.DrawLine(300,600,350,850)
- if ( self.misses == 6) : return
- dc.DrawLine(300,600,250,850)
-
- def OnPaint(self, event):
- dc = wxPaintDC(self)
- self.Draw(dc)
-
-
-
-class HangmanDemo(HangmanWnd):
- def __init__(self, wf, parent, id, pos, size):
- HangmanWnd.__init__(self, parent, id, pos, size)
- self.StartGame("dummy")
- self.start_new = 1
- self.wf = wf
- self.delay = 500
- self.timer = self.PlayTimer(self.MakeMove)
-
- def MakeMove(self):
- self.timer.Stop()
- if self.start_new:
- self.StartGame(self.wf.Get())
- self.start_new = 0
- self.left = list('aaaabcdeeeeefghiiiiijklmnnnoooopqrssssttttuuuuvwxyz')
- else:
- key = self.left[int(random.random()*len(self.left))]
- while self.left.count(key): self.left.remove(key)
- self.start_new = self.HandleKey(key)
- self.timer.Start(self.delay)
-
- def Stop(self):
- self.timer.Stop()
-
- class PlayTimer(wxTimer):
- def __init__(self,func):
- wxTimer.__init__(self)
- self.func = func
- self.Start(1000)
-
- def Notify(self):
- apply(self.func, ())
-
-
-
-class HangmanDemoFrame(wxFrame):
- def __init__(self, wf, parent, id, pos, size):
- wxFrame.__init__(self, parent, id, "Hangman demo", pos, size)
- self.demo = HangmanDemo(wf, self, -1, wxDefaultPosition, wxDefaultSize)
- EVT_CLOSE(self, self.OnCloseWindow)
-
- def OnCloseWindow(self, event):
- self.demo.timer.Stop()
- self.Destroy()
-
-
-
-class AboutBox(wxDialog):
- def __init__(self, parent,wf):
- wxDialog.__init__(self, parent, -1, "About Hangman", wxDefaultPosition, wxSize(350,450))
- self.wnd = HangmanDemo(wf, self, -1, wxPoint(1,1), wxSize(350,150))
- self.static = wxStaticText(self, -1, __doc__, wxPoint(1,160), wxSize(350, 250))
- self.button = wxButton(self, 2001, "OK", wxPoint(150,420), wxSize(50,-1))
- EVT_BUTTON(self, 2001, self.OnOK)
-
- def OnOK(self, event):
- self.wnd.Stop()
- self.EndModal(wxID_OK)
-
-
-
-class MyFrame(wxFrame):
- def __init__(self, parent, wf):
- self.wf = wf
- wxFrame.__init__(self, parent, -1, "hangman", wxDefaultPosition, wxSize(400,300))
- self.wnd = HangmanWnd(self, -1)
- menu = wxMenu()
- menu.Append(1001, "New")
- menu.Append(1002, "End")
- menu.AppendSeparator()
- menu.Append(1003, "Reset")
- menu.Append(1004, "Demo...")
- menu.AppendSeparator()
- menu.Append(1005, "Exit")
- menubar = wxMenuBar()
- menubar.Append(menu, "Game")
- menu = wxMenu()
- #menu.Append(1010, "Internal", "Use internal dictionary", True)
- menu.Append(1011, "ASCII File...")
- urls = [ 'wxPython home', 'http://wxPython.org/',
- 'slashdot.org', 'http://slashdot.org/',
- 'cnn.com', 'http://cnn.com',
- 'The New York Times', 'http://www.nytimes.com',
- 'De Volkskrant', 'http://www.volkskrant.nl/frameless/25000006.html',
- 'Gnu GPL', 'http://www.fsf.org/copyleft/gpl.html',
- 'Bijbel: Genesis', 'http://www.coas.com/bijbel/gn1.htm']
- urlmenu = wxMenu()
- for item in range(0,len(urls),2):
- urlmenu.Append(1020+item/2, urls[item], urls[item+1])
- urlmenu.Append(1080, 'Other...', 'Enter an URL')
- menu.AppendMenu(1012, 'URL', urlmenu, 'Use a webpage')
- menu.Append(1013, 'Dump', 'Write contents to stdout')
- menubar.Append(menu, "Dictionary")
- self.urls = urls
- self.urloffset = 1020
- menu = wxMenu()
- menu.Append(1090, "About...")
- menubar.Append(menu, "Help")
- self.SetMenuBar(menubar)
- self.CreateStatusBar(2)
- EVT_MENU(self, 1001, self.OnGameNew)
- EVT_MENU(self, 1002, self.OnGameEnd)
- EVT_MENU(self, 1003, self.OnGameReset)
- EVT_MENU(self, 1004, self.OnGameDemo)
- EVT_MENU(self, 1005, self.OnWindowClose)
- EVT_MENU(self, 1011, self.OnDictFile)
- EVT_MENU_RANGE(self, 1020, 1020+len(urls)/2, self.OnDictURL)
- EVT_MENU(self, 1080, self.OnDictURLSel)
- EVT_MENU(self, 1013, self.OnDictDump)
- EVT_MENU(self, 1090, self.OnHelpAbout)
- EVT_CHAR(self.wnd, self.OnChar)
- self.OnGameReset()
-
- def OnGameNew(self, event):
- word = self.wf.Get()
- self.in_progress = 1
- self.SetStatusText("",0)
- self.wnd.StartGame(word)
-
- def OnGameEnd(self, event):
- self.UpdateAverages(0)
- self.in_progress = 0
- self.SetStatusText("",0)
- self.wnd.EndGame()
-
- def OnGameReset(self, event=None):
- self.played = 0
- self.won = 0
- self.history = []
- self.average = 0.0
- self.OnGameNew(None)
-
- def OnGameDemo(self, event):
- frame = HangmanDemoFrame(self.wf, self, -1, wxDefaultPosition, self.GetSize())
- frame.Show(True)
-
- def OnDictFile(self, event):
- fd = wxFileDialog(self)
- if (self.wf.filename):
- fd.SetFilename(self.wf.filename)
- if fd.ShowModal() == wxID_OK:
- file = fd.GetPath()
- self.wf = WordFetcher(file)
-
- def OnDictURL(self, event):
- item = (event.GetId() - self.urloffset)*2
- print "Trying to open %s at %s" % (self.urls[item], self.urls[item+1])
- self.wf = URLWordFetcher(self.urls[item+1])
-
- def OnDictURLSel(self, event):
- msg = wxTextEntryDialog(self, "Enter the URL of the dictionary document", "Enter URL")
- if msg.ShowModal() == wxID_OK:
- url = msg.GetValue()
- self.wf = URLWordFetcher(url)
- def OnDictDump(self, event):
- print self.wf.words
-
- def OnHelpAbout(self, event):
- about = AboutBox(self, self.wf)
- about.ShowModal()
- about.wnd.Stop() # that damn timer won't stop!
-
- def UpdateAverages(self, has_won):
- if has_won:
- self.won = self.won + 1
- self.played = self.played+1
- self.history.append(self.wnd.misses) # ugly
- total = 0.0
- for m in self.history:
- total = total + m
- self.average = float(total/len(self.history))
-
- def OnChar(self, event):
- if not self.in_progress:
- #print "new"
- self.OnGameNew(None)
- return
- key = event.KeyCode();
- #print key
- if key >= ord('A') and key <= ord('Z'):
- key = key + ord('a') - ord('A')
- key = chr(key)
- if key < 'a' or key > 'z':
- event.Skip()
- return
- res = self.wnd.HandleKey(key)
- if res == 0:
- self.SetStatusText(self.wnd.message)
- elif res == 1:
- self.UpdateAverages(0)
- self.SetStatusText("Too bad, you're dead!",0)
- self.in_progress = 0
- elif res == 2:
- self.in_progress = 0
- self.UpdateAverages(1)
- self.SetStatusText("Congratulations!",0)
- if self.played:
- percent = (100.*self.won)/self.played
- else:
- percent = 0.0
- self.SetStatusText("p %d, w %d (%g %%), av %g" % (self.played,self.won, percent, self.average),1)
-
- def OnWindowClose(self, event):
- self.Destroy()
-
-
-
-class MyApp(wxApp):
- def OnInit(self):
- if wxPlatform == '__WXGTK__':
- defaultfile = "/usr/share/games/hangman-words"
- elif wxPlatform == '__WXMSW__':
- defaultfile = "c:\\windows\\hardware.txt"
- else:
- defaultfile = ""
- wf = WordFetcher(defaultfile)
- frame = MyFrame(None, wf)
- self.SetTopWindow(frame)
- frame.Show(True)
- return True
-
-
-
-if __name__ == '__main__':
- app = MyApp(0)
- app.MainLoop()
-
-
-#----------------------------------------------------------------------
-
-overview = __doc__
-
-
-def runTest(frame, nb, log):
- if wxPlatform == '__WXGTK__' or wxPlatform == '__WXMOTIF__':
- defaultfile = "/usr/share/games/hangman-words"
- elif wxPlatform == '__WXMSW__':
- defaultfile = "c:\\windows\\hardware.txt"
- else:
- defaultfile = ""
- wf = WordFetcher(defaultfile)
- win = MyFrame(frame, wf)
- frame.otherWin = win
- win.Show(True)
-
-
-#----------------------------------------------------------------------
-
-
-
-
diff --git a/wxPython/demo/images.py b/wxPython/demo/images.py
index 8e35d1c1f2..7cee82fd0a 100644
--- a/wxPython/demo/images.py
+++ b/wxPython/demo/images.py
@@ -1,5 +1,5 @@
#----------------------------------------------------------------------
-# This file was generated by encode_bitmaps.py
+# This file was generated by C:\PROJECTS\wx\wxPython\demo\encode_bitmaps.py
#
from wxPython.wx import wxImageFromStream, wxBitmapFromImage
from wxPython.wx import wxEmptyIcon
@@ -4060,3 +4060,1318 @@ def getWizTest2Image():
stream = cStringIO.StringIO(getWizTest2Data())
return wxImageFromStream(stream)
+#----------------------------------------------------------------------
+def getTuxData():
+ return \
+'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x01G\x00\x00\x01h\x08\x06\x00\
+\x00\x00\xc4\xb39\x88\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00 \
+\x00IDATx\x9c\xec\xbd{\x90[\xd7\x9d\xdf\xf9\xb9\xc0\x05\xee\x01\x1a\xdd\xb8\
+\r5\xbb\xd1\xad\x96\x08R4\t\xd2\xb4\xd4R\xf4h9\x9aq{\xec\x1d\xd3\xb3\xde\x0c\
+5\xebJ8\xb3\xceF\xf3\xaa\xd5&U\x1b\xa7\xb2\x95q6\x7f\xacg\xabRQ\xaa65N\xd5n\
+\x8dk\xaaR\xe3\xdd\xa8\x12M\xfe\xb0\x95\xa9YGI\x94X3\xf6jh\xd9\xb1h[\x96ZZ\
+\x99\x04%\x8a\x04)\xaa\x1b\xdd\x04\x81\x83\xe7\xdd?.\x0e\xfa\x02}\x01\\\xa0\
+\x1f\xecn\x9eO\x15\n\xc0}\x9c{.\xba\xf1\xc5\xefu\xce1l\xdbF\xa3\xd1h4\x9d\
+\x84\xeet\x074\x1a\x8df/\xa2\xc5Q\xa3\xd1h|\xd0\xe2\xa8\xd1h4>hq\xd4h4\x1a\
+\x1f\xb48j4\x1a\x8d\x0fZ\x1c5\x1a\x8d\xc6\x07-\x8e\x1a\x8dF\xe3\x83\x16G\x8d\
+F\xa3\xf1A\x8b\xa3F\xa3\xd1\xf8\xa0\xc5Q\xa3\xd1h|\xd0\xe2\xa8\xd1h4>hq\xd4h\
+4\x1a\x1f\xb48j4\x1a\x8d\x0fZ\x1c5\x1a\x8d\xc6\x07-\x8e\x1a\x8dF\xe3\x83\x16\
+G\x8dF\xa3\xf1A\x8b\xa3F\xa3\xd1\xf8\xa0\xc5Q\xa3\xd1h|\xd0\xe2\xa8\xd1h4>hq\
+\xd4h4\x1a\x1f\xb48j4\x1a\x8d\x0fZ\x1c5\x1a\x8d\xc6\x07-\x8e\x1a\x8dF\xe3\
+\x83\x16G\x8dF\xa3\xf1A\x8b\xa3F\xa3\xd1\xf8\xa0\xc5Q\xa3\xd1h|\xd0\xe2\xa8\
+\xd1h4>hq\xd4h4\x1a\x1f\xb48j4\x1a\x8d\x0fZ\x1c5\x1a\x8d\xc6\x07-\x8e\x1a\
+\x8dF\xe3\x83\x16G\x8dF\xa3\xf1A\x8b\xa3F\xa3\xd1\xf8\xa0\xc5Q\xa3\xd1h|\xd0\
+\xe2\xa8\xd1h4>\x98w\xba\x03\x9a\x83\xc1\xfaz\xd1Q\xaf\'&\x12\xc6\x9d\xec\
+\x8bF\xb3\x1dhq\xd4\xf4\xc5+z\xdbu\x8e\x16O\xcd~@\x8b\xa3f\x13\xa3\x08\xe2V\
+\xdb\xd7\x82\xa9\xd9khq\xd4\xb4\xd9iQ\x0crm-\x92\x9a\xbd\x82\x16\xc7\xbb\x9c\
+;)\x88~\xe8\xd8\xa5f\xaf\xa0\xc5\xf1.e\xaf\x89\xa2\x1f\xda\x9a\xd4\xdcIt)\
+\xcf]\xc8~\x10F/\xeb\xebEg\xbf\xf5Y\xb3\xff\xd1\x96\xe3]\xc4~\x17\x18mIjv\
+\x13m9\xde%\xecwa\x14\x9e\x9fqmIjv\x03-\x8ew\x01\x07AHd\xbdS \xe1`\xdc\x97f\
+\xefb\xd8\xb6}\xa7\xfb\xa0\xd9!\xee&\xf1\xd0\xae\xb6f\xbb\xd1\x96\xe3\x01e\
+\xbf\n\xa307\x1e\xc3\xb0_\xefW\xb3w\xd1\t\x99\x03\xc8~\x14\x8ax\\ \x84\x85\
+\x10\x02\x00)%!Y\x01\xa0T\x92\x81\xdaX_/:\xda\x82\xd4l\x17Z\x1c5w\x1c\xaf0\n\
+\x11\xeb\x10H)\xcb\x08a!e\x85fU"\xeb\xfd\xdbr\x7f\x18>\xce\xc4\xc4e-\x92\x9a\
+-\xa1\xc5\xf1\x80\xb1\xdf\xacF\xe5>{\x85Q=@\t\xa4\xfb(\x14V\t\x05\x12\xc9\
+\x9f\xb1\xbe\xfeqG\x0b\xa4f+\xe8\x84\xcc\x01b\xbf\t#lX\x8d\xb6=\x89\x10\x02\
+\xdb\xb6\x11B\x90H$\xa8V]\x05\xacV%\x85B\xa1-\x90\x85\xc2Z +R[\x90\x9a\xad\
+\xa0-\xc7\x03\xc2~\x15\xc6n\x940&\x12\t\x84\x10H)\xa9V\xdd\x98\xa3\x94\x1b\
+\xb1G)-X_\x1bhABb{;\xad\xb9k\xd0\xe2\xa8\xb9c4\xab\x92Pt\xc3\x85V\xcf\xd1\
+\xa8\xd9r\xad\xadV\xbcQ\x10\x8d\nVV\\\xeb\xd1\xb6\')\x14V\x01\x08\xc9J\xdf\
+\x84\x8dN\xd2hFE\x97\xf2\x1c\x00\xf6\xa3\xd5\x08\xb4\xad>)\xa5G\x18]!T\xae\
+\xb6\xebn\xbb\xc9\x1a%\x9a@G\xe2fP\xd9\xcf~\xfd|4w\x16-\x8e\x9a=\x81\x12\xc8\
+\r\xab1\xd6\xde\xa7^\xab}*.\t`\xdbI\xe2\x13I-\x90\x9amG\x8b\xe3>\xe7 |\xe9\
+\x95\xd0\r"\x1a\xdd8\xae[@C\xd1`mh4A\xd11G\xcd\x9e\xc0O U\x9d\xa3z],\x16\x07\
+\x9e\xa3\xe3\x8f\x9a\xedB[\x8e\xfb\x98\x83`5z\xe9\x16;)\xcbHY\xa1PX\xa3X,R,\
+\x16\xdb5\x8f\xa3r\xd0>3\xcd\xce\xa1-G\xcd\x1dC\x98 \x84\xd5~/\xa5$\x91H\xb4\
+\xea\x19\x0b\xed2\x9ej\xb5\xde!\x8c\xfd\xc4Q\x98\x04\xa8\x7f\xd4h\x06\xa3\
+\xc5q\x9frP- \xe5:{\x9f\xbbEQ\x95\xf1\x08\x11kY\x972\xf0\xf0B\xd0\xee\xb5&\
+\x18Z\x1c5w\x8cPT e\xa5]\xec\xad2\xd67o\xdeD\x08A\xa1P\x00\xf0\x15F\xb5\xdd}\
+v\'\xa8\xd0\x16\xa3f;\xd1\xe2\xa8\xb9\xa3t\xbb\xd5\xca\x9dV\xef\xdd\xe7r\x87\
+\x10\xaa\xa4\x8b0]\x81\r:k\x8f\x17m=j\x06\xa1\xc5q\x1frP\\j?Q\xf3\xc6\x13\
+\x95\x95({L]&\xeb@}\xf4\xe4\x8cF\xd3\x0f-\x8e\x9a;\x86*\xdcn\xbb\xc5]\x89\
+\x96\xd2\xc0\xb1\xd3[c}\xfd\xb0\x9e\xb9G\xd3\x13]\xca\xa3\xb9c\xc8\xba;\xbe\
+\x1a6\x04\x12\\Q\\Y\xd9Yat\xf9\xd9N_@\xb3\x8f\xd1\xe2\xb8\xcf8(.\xb5B\x8dliV\
+\xa5+\x88\xb2\xb2\xab\x89\x95\x83\xf6yj\xb6\x0f\xedVk\xee(\xddq\xc4Q\x92+\
+\x1a\xcdN\xa0-G\x8dF\xa3\xf1A\x8b\xa3\xe6\xaeG\xbb\xd6\x1a?\xb48j4\x1a\x8d\
+\x0fZ\x1c5\x1a\x8d\xc6\x07-\x8e\xfb\x08\xed\xfe\xed\x1c\xfa\xb3\xd5t\xa3\xc5\
+Q\xb3\'\x184\x93\xb7F\xb3\xdb\xe8\x7f\xc9\xbb\x085\x16\x19<\xc5\xd7w`\xb2\
+\x065\xad\x98\xf79>\x91$$+]c\xad\xfd\x87\rj4\xbb\x81\x16\xc7\x03\x8cW\x0c;\
+\xb6\x0b\x0bZ"\x14\x1ab\xaa\xaf\xed\xa2\xbd\xb0\x96\xe7Y\xae\xac\x91J%\x01\
+\xdakX\xabG>\x9f\'\x9f\xcfk\x91\xd4\xec*Z\x1c\x0f ~\xebA\xabePm;\xd9^{\xc5\
+\x9d\x16l\x95B\x01\x04\xbb+\x90~\xac\xac\xac\x01\xae\xc5h\xdbI\xd2\xe9Y\xa6\
+\xa6\xa6\x98\x9a\x9a\xc2\xb6mr\xb9K\xedc4\x9a\x9d&\x1ctq#\xcd\x9d\xa7R\xa9~u\
+\xd01\xc2\x04#\xec\xfe\xe65\xab\x92r\xa5N\xadV\xa7\xde\x84Z\xadN\xa3\xd1\xc0\
+4\xc3LM\x1dj\t\xcf!L\xd3\xa4R\xaba\x18\x06\xb5\xda\xd6\x15R\x98Po\x8e~~\xadV\
+\xe7\xd6\xad\xdbT*eB\xa10\x13\x13\x13\x1c=z\x14!b\xac\xad\xadR.W\x0672\x02\
+\x96\x15\xfd\xfd\x1diX\xb3/\xd1\x96\xe3\x01BY\x8c\xfd\xdcO\xb5\xafPX\xc3\xb6\
+\x93\xd8\xf6$\xe9t\x1a\x80|\xfe\xda\x96\\l\x15C\x0cr\xbe\x8a3\xaa\x1f\xe7Bam\
+S\xbf\xdd\xb1\xd6\xcb\x14\n\x05N\x9f>M:\x9d&\x939Bi\xfd\xc2\x8eX\xb9z\x8eG\
+\x8d\x17-\x8e\x07\x88\xa019u\\\xa9$)\x14\xd6\x90R\x92\xc9dZ\xf1\xbdk\xac\xdc\
+\xb8>\x92\xf8\x0c:\'\x1e\x17\xa4\xd3i\x8e\x1f\xcf\x92J\xd9m\x17_\xad0x\xe3\
+\xc6u~\xf4\xa3\x0b\\}/\xd7n\xabT\x92\xee{Y&\x9b=\x89m\xdb\xa4\xa6g\xb8z\xf5\
+\xfa\xf0\x1d\xd4h\x86@\x8b\xe3\x01G\x98\x90\x9a\x9e\xe9Xo\xc5\x1b\xb7+\x95$\
+\xf9|\x1e!D\xdb\x82\x94R"\xb7)\xb6\'L\x98\xbb?\xd3\xb2\xfa2mA\x14B`Y\x82\xc9\
+I\xbb}l6{\x92O|b\x81\xb7\xdf^\xe6\xc2\x85\x0b\xe4r9J%\xd7\x92Ub\x98\xcd\x9e$\
+\x9d\x9e\xddt\x1f\x1a\xcdv\xa3\xc5\xf1\x80\x92J\xb9\t\x8dS\xa7\xb2\xdc\x7f\
+\x7f\x86d\xd2\x15\xa1\xeb\xd7\xafq\xe5\xca\x07\xfc\xf0\x87?h\x0b\x8ekA\xae"\
+\x84\xc0\xb6ml{\xb2c9\x82A\xc4\xe3\xfeK\x15\xc4\xe3\x82L&\xc3\xa9SY&&ll\xdbF\
+\x88\rA\xb4,\xd1\xb1\x1c\xab\x12\xe8\x93\'\xb3,..\xf2\xe2\x8b/r\xfe\xfc\xf9\
+\x8eP@>\x9f\x1f\xa9\x8f\x1a\xcd\xb0hq<\x80\xcc\xcd\xcd\xf0\xe8\xa3\x8fq\xec\
+\xd81fg\xd3$\x93\xae0\x01\xcc\xce\xa6\x99\x99\x99e~\xfe^\xce\x9f\xff>\xcb\
+\xcb\xcb\xae\xebz\xf5:\x85\xc2Z\xdbz\x1c\x06?\x81J\xa5\x92d\xb3\'\xc9f\xb3mQ\
+\xb4,A<.:DQ\x95\xeb\x00\xc4\x84E,\xe6f\xd2S\x936\xb6\xfd\x0c\xd1\xa8\xe0/\
+\xfe\xe2\x15J%I\xa9$\xb9\xf8\xcer;V)\x84\xa5\xc5Q\xb3c\xe8l\xf5>"H\xb6znn\
+\x86\xa5\xa5Os\xfc\xf8q\xe6\xe7\xe7I$\x12n\x9cn\xd2&i\xdbLMMq\xef\\\x1a\x07\
+\x03\xdb\xb6\x89\xc7\x13\xac\xac|H\xb9\\\xa1V\xab\xb3\xbaZ\xc00\x1cL\xd3\x0c\
+\x94\x15\xf6\xcbL\xa7RI\x1e\x7f\xfcI\x8e\x1c\xc9tX\x8b\x89D\x02\xd34\xdb\x82\
+\x98H$\x18O\x8cQ\xaf7\x88\t\x8b\xa4=I\xd84\t\x9b&c\x89\x04\xd1\x88Iz6M\xa9$Y\
+Y\xf9\x10\xa7\xe6N\x84[.W\xa8\x95o\x13\xb1\xc4\xb6e\xd8\x15:c\xadQh\xcb\xf1\
+\x00\x11\x8f\x0b\x1e|\xf0a2\x99\x0c\x93\x93v\xdbMNM\xdaD-\xf7G\xb0Zq-\xad#\
+\x99\xc3T*\xb2m\xb5\xbd\xf6\xda_v\xd4\x19\x8eJ*\x95da\xe1a\xe6\xe6\xd2\xd8\
+\xb6\xcd\xec\xack\x89&\x93v\x87\x95\x08\x1b\x96\xa2\xb2\x16\xd5~\xefR\xacB\
+\x08\x9e|r\x91\x1b7\xf2\xe4r\x97\xda\xb1PY\x878h\xebQ\xb3chq<@\xa4\xd3iN\x9d\
+\xcabY\x1b\xae\xab\x12\xc6n\x0f\xa1\\.\xb7\xe3\x90\x8f<\xb2@\xb5*\xb9p\xe1uJ\
+\xebnIM<.\xda\xa59\xfd\xe8\xde\x9fN\xcf\xb6\x12/v\x87K\x1fk\x8d\xc8QB\xa8\
+\xc4Z\xd1\xdd\xbfjER.\xbbY\xecx\\\xb0\xb8\xf8\x04\xf9\xfc5\x84\xb9\xb1\xb6Li\
+}\xcdw\x04\x90F\xb3\x1dhq< \xc4\xe3\x82\xd3\xa7O#\x84\x1b\xd7S\xee\xac\x17)e\
+\xdbr\x8c\xc5b-+\xcduy\x17\x17\x17\xc9\xe5r\xae\xd5X\x97#Yc\xa9T\x92S\xa7\
+\xb2\x08a\x91L\xda$\x936\xb3\xe9\x19\x92\xf6\xa4+\x901\xb7?\x96\xb5\x11oT\
+\xfdR\x16#\xd0Z\xbbZ\xb4\xc5\x11\xdc!\x85\x8f>\xfa\x18/\xbf\xfcr{9V\xbd4\xab\
+f\'\xd1\xe2x@\xb0\xed$SSSX\x96h[\x841a\x11\xb5D[\x98,\x8f\xb5V\xa9H\x0eg2\\\
+\xbb\x96g\xad\xb0\xca\xb5\xfcu\x1eyd\x81?{\xf1\xc5\x91\xfb\x90\xcd\x9e\xe4\
+\xfe\xfb3\xcc\xce\xa69|\xd8-\xdfQ\xd6\xa3\x12B\xbf\xa1\x8d^J%\xc9\xdc\\\x9a\
+\x95\x95\x02kk\x05\x96\xdfz\x0b)%\xab\xab\x05\xa6\xa6\xa6H\xa7\xd3\\\xbc\x98\
+\x1b\xb9\x8f\x83\xd0\x85\xe0\x1a\x85\x16\xc7\x03\x800!\x939\x82m\xdbLNnXkJ\
+\x98R)\xdb\xf7\xbcRIr\xe4H\x86RIr\xfd\xba["\xf3\xea\xab\x7f9R\x81\xb5\xdb\
+\x87\x0c\xd9l\x96\xd9\xf4\x0c\xd9\x93\'\x99\x99I\x0f\x14\xc3n\xd4\xf1B\x08R)\
+\xb7\x04iyy\xb9mU\x1e?\x9e\xed(\x12\xd7hv\n-\x8e\x07\x84\xb99\xd7J;u2\xcb\
+\xe1L\xa6C\x98T\x0cQ=+\xd4\xebx\\p\xe4H\x06\xcb\x12<\xfa\xe8c\xfc\xe9\x9f\
+\xfe\xd9\xd0\xd7OM\xcfp\xe2D\x96\xa3G2\x9b\xae\xef\xc7\xd5\xaby~|\xe1u.\xe5.\
+c\xdb6\x0b\x0b\x0bd2\x99\x8e>\x95J\x92T\xca\xe6\x93\x9f\\\xc4\xb6m.\\\xb8\
+\x80\x94\x92\x9f\xfc\xe4u=BF\xb3\xe3hq<\x00\x84\xa2\x82\xe9\xe9\x19\x0e\x1f\
+\xcep\xfcD\xb6U\xa2\xe3\x8a\x8b\x94\xb2\x15Kt\xe3zj\x98\xa0\x9fp\xd9\xb6\xcd\
+\x17\xbe\xf0\x05\xfe\xc3\xb7\xfflh\xcb\xcc\xb6\'9r$\xc3D\xd2n\xd73\xfa\xb1\
+\xb2R\xe0\x85\x17^\xe0\x1b\xdf\xf8\x06\xb9\xdc\xa5vR%\x9dN\xb3\xb4\xb4\xc4\
+\x97\xbf\xfceN\x9d\xca\x02\x9d.\xf8\xa9S\xee}I)I\xa7g\xb58jv\x1c-\x8e\x07\
+\x00\xdbN23\xb3\x91%V\xa2\x92\xcb\xe5x\xee\xb9\xe78\x7f\xfe|{\x04L&s\x84g\
+\x9f}\x963g\xcelr\xb7\xe3q\xc1\xc2\xc2\x02s\xf7g\xfa\xc6\xf5\xfc\xb2\xd8\xde\
+\xe2q!6[\xa9\xe0\n\xe3s\xcf=\xc77\xbe\xf1\xc7\xed\xb2!7y\xe4\xce\xe3\xf8\xd2\
+K\xff\x8e\xe5\xe5e\xfe\xe1W~\x8f\xcf\xff\xca\xe7}\xee\xd3M\x1c\xbd\xf2\xca+\
+\xed\xe2u\x8df\xa7\xd0\xcb$\x1c\x00\x84\x88q\xe4H\xa6\xc3-\xbdz5\xcf\xb3\xcf\
+>\xcb\xbf\xfaW/p\xf1\xa2\x9b\x85\x16"F>\x9f\xe7\xcb_\xfe\xbb|\xedk_ce\xa5\
+\xb0\xa9\xadL&\xc3\xf1\xe3\xd9\x9e\xd7\x8a\xc7\x85o\xf9L4\xda9\xea\xa5[\x18K\
+%\xc9\x1f\xfe\xe1\xd7\xf9\xfa\xd7\xbf\xde1&:\x9b\xcdr\xee\xdc\xafs\xf6\xecY\
+\x1e|\xf0a\xf2\xf9<\xbf\xf7\x95\x7f\xc87\xbf\xf9\xe2&\xf1S\xc3\x11\x1f~x\xa1\
+c\xc6p\x8df\'\xd0\xe2x\x00P\x93:(\x8b\xadT\x92|\xfd\xeb_\xe7\xd5W\xcf\x03\
+\xae\xa5\xb7\xb0\xb0\xc0\xd9\xb3gYZZ"\x9b=\xc9\x0b/\xbc\xc0\x0b/\xbc\xb0I\
+\x80\x84\x10<\xf2\xc8\x82;\xa5X\\\xb4\xeb\x1d\xbb\xe9\xde\x16\x8d\x9a\xed\
+\xf3\xbb)\x95$\xaf}\xff<\xff\xfc\x9f\xffA\xc7\xf5\x84I;\xd1\x92\xc9d\xf8\xcc\
+g\x96XZZBJ\xc9s\xcf=\xd7\x9ex\xc2K<.\xc8\x9e8\xe1{\x1d\x8df;\xd1\xe2\xb8\xaf\
+\xf8\xb8\xef\xd6\xa9\xa9\xa9\x8eR\x99B\xa1\xc0\x8b\x9e\x92\x1cYwEH\x95\xd8d\
+\xb3Y\x84\x10<\xf7\xdc?ayy\xb9\xa3-5\xad\x98\xd7m\xf6Z\x8aBX\x08au\xec\x17&$\
+\x12\x89\x9e\xbd\x96R\xf2\xbf\xff\xb3\xafm\x9aEG\xd6]\xd7\xff\xfc\xf9\xf3\
+\xe4r9\x00N\x9e\xccr\xfa\xf4i\x96\x97\x97\xf9\xda\xd7\xbe\xe6\xdb\xde\xe1\
+\xcc\x11l{r\xe8L\xb8F3\x0cZ\x1c\x0f\x00\xd5j\xbd\xa3\x88\xfa\xc7\x17^o\x8b\
+\x8d"\x9f\xbf\xc6\xeb\xaf_\xa0R\x91\xa4\xd3\xee\xd0\xbe\xabW\xaf\xf3\x8do\
+\xfcq\x87uV*Iw\xc8a*I\xb3*\xdbb\x98J%\x99\x9b\x9b!\x9d\x9e%\x9d\x9e%\x95J\
+\xb6\xadG%\x94\xb1\x1e\xae\xeeO~|\x81\xbf\xf8\x8bW|\xf7\x95J\x92W_=\xcf+\xaf\
+\xbc\xc2\xeaj\x81RI2?\x7f/\xcd\xaa\xe4\xfc\xf9\xf3\\\xbf\x9e\xdftN&\x93\xe1\
+\xd8\xb1c\xda\xb5\xd6\xec(Z\x1c\xf7\x15?\xf3\xdd\xaa\\Zp\xc5\xe6\xdf\xbd\xf4\
+\xd2&w\xf4\xea\xd5\xeb\xedzA)\xddB\xebx\\p\xfe\xfc\xf7)\x146\xc7\x1e\x01\xcf\
+\xec7\xa25\x9d\xd8,\xf7\xdf\xef\n\xd3SO\xfd\x02\x9f\xfc\xc5%\xe6\xe6f\x10&T\
+\xab\x92\xb2\xcf\x98\xecRI\xf2\xcdo}k`\xf2$\x9f\xbfF.\x97\xe3\xfa\xf5k\x08\
+\x11#>\x91l\x0b\xba\x1f\xc7\x8e\x1d\xdb\xd2\x18p\x8df\x10:[}\x00P.\xadJ\x84\
+\\\xbcx\xd9\xf7\xb8|\xfe\x1a\xef\xbe\xfb.\x89D\x82\xe9\xe9\x19l\xdb\x15\xa0w\
+\xde^fn\xae3\xdb\xac\xf0N\x00\xe1\x0e\xeb\x93\xed\xe9\xcf\xc0\x1d\x15\x93\
+\xb7\'\xa9V\xfdk\x7f\xa4\x94\\\xb8\xf0\xe3\xbe\xfdO\xa5\x92\xad\xe3.\x90N\
+\xa7[\x8fYr\xb9\x1co\xbd\xb5\xec\x9b\xf9\xced2}\xdb\xd4h\xb6\x8a\x16\xc7\x03\
+@\xb5\xda\xe9\x16\xaf\xaf\xfb[\x82\x85\xc2\x1a\xef\xbe\xfb.\xc7\x8e\x1dk\xaf\
+\x1f\xf3\xe6\x9b\xcb\xbc~\xe1\x02K\x9f^\x02\\1sE\xb0\xd3*\xeb\x9e\xe4A\x08\
+\x0b\xdb\x9e\x04 \x9f\xcf#\xa5\xe4\xf2\xe5\x1c\x99L\x06)7\xc4LJw\xa6q?\\Q\
+\xac\xb4\x8e\xab\x90\xcb\xe5\xc8\xe5r\xed\xe4\x12\xb8\x93\xf3\xfa\xa1\x132\
+\x9a\x9dF\x8b\xe3>bb"a\xac\xaf\x17\x9d\xee\xed\xd5j\xbd\xed.+\x178\x1e\x17\
+\x9b\x16\xcbjV\xdd\x19\xbf\x8b\xc5"\x17/^&\x9fw\x85\xe7\xd2\xa5K\x1d\xed-//\
+\xfb/\xb4U\xef\x14a\xb5\x84*\xb8\x02\xf9\xado\xbd\xc8\xe1\xc3\x1b\xd3\xa5\rJ\
+\x98\xa8\x04M\xb7\xcb\xad\xfa\xa5\xae\xe1\x15[\xd8\x98\xa8B\xa3\xd9It\xcc\
+\xf1\x80\xa1j\x01\x85\xb0|\xeb\x11\x95e\xe8\x8dS\xc2\x86@-//\xf3\xd2K/\x05\
+\x9a\nL-\xd0\xa5\xca\x87r\xb9K\\\xbe\x9c\xa3\\\xde\x10\xbbJe\xf8B\xed\x95\
+\x95\xb5\x8e\xcc\xb6\x16B\xcd\x9d@[\x8e\x07\x80b\xb1\xd8\x8e\r\x96Jn6\xba\
+\xb4\xbe\xb6\xc9\xf2\x93uZ\x93\xc5^jY\x9a\x1b.-\xa8\xa1}\xff\xda\x9d7\xd1\
+\x90\xdc3\x05\xa9q\x83d,D"\xde\xe0v=\x8cS\x85J3\x82\xacT\xa88\x0e \xb9]\x84\
+\x0f\x0bn1\xfa\xeb\xaf_\xe0\x89\'\x16\xdb\xd6\x9e\x9a!hT\xbc\xf1\xcd\x8e{\
+\x91ROt\xab\xd9Q\xb48\x1e\x00\n\x85\x02\xd5\xca\x86[\xfd\xe4\xe2\x13\xae\xe5\
+\xd7c\xae\xc3\x95\x95\xb5\x0e\xf1\x14\xc2\x82\xea\r^z\xe9U.\xfe\xe8\xff\xe2\
+\xccC\r\x1e|\x00\x8e\xde\x1f!.\\/>aY\x14+\rJ\xd4\x99\xb6L\x8a\x950%i\xb0^\
+\xadQ\xb8\x19\xe6Go\x87\xf8`\xf5}\x96\x97\xddYtfg\xd3\x9e,\xf7\xe8\xd3\x8ce\
+\xb3\xd9M\xee\xb9\x94\x92\xb5\xb5\xcdqQ\x8df;\xd1\xe2x\x00\xc8\xe7\xaf\xb1\
+\xb2\xba\x91\x84\xc9\x9e<\x89m\'\xfbZU^\xabR\xca\n\xdf\xfb\xceK\xdc\xfa\xd1\
+\xd7y\xe6\xb3M>6\xddD\xa4#\xc4\x85\x01\xb8S\x1b\x9a\xb2I]\x84(IW0\xc7\x08s\
+\x1b\x87\xc9\x90`\xb5\xd9\xe4\xf3\xbf\xe4\xf0\xf3k\x0e\xef]z\x8b\x1f\xbe\xf4\
+\x7f\x00p\xee\xdc9\x00\x96\x96\x96\xda\xa3u\x86A\x8d\xf5\xf6\xcbV\xaf\xae\
+\xfa\'\x9d4\x9a\xedB\xc7\x1c\x0f\x00j\xc9R\xc5\x91#\x19\xce\x9d\xfbu\xdfa\
+\x7f\xdd\xdc7\x05\xf6\xea\xbf\xa4\xf8\xd6\xdf\xe7\xe3G~\xce\x89\xfb\x1c\xa6\
+\xd3!\xa6\xec\x10S\xb1\x10\x93\xa1\x10\x86\x08Q\x17\x06c\x18-\xc1\x84\xdb\
+\xb8\x16e%\xea>\xc7\x85\xc1\'\x8e\x98\xfc\xf5_\x82\xdf{\xfam\xec\xc2\xb3\xfc\
+\x87\x17\xfeg\n\x85\x02g\xcf\x9e%56\xfc}\x9d;w\x8eG\x1eY\xe8\x10F7\xceY\xe0\
+\x8d7\xde\xd0.\xb5fG\xd1\xab\x0f\xee3\xfcV \xac\xd5\xea\x1c9r\x98\xd3\xa7?\
+\x81m\xdb\xd4juN\x9e\xcc\xf2\xe7\xdf\xfd\x1e\x86\xe1p\xeb\xd6\xedM\xed\x08\
+\x13>\x99\r\xf3\xbb\xff\xb5\xc9S\xc7\x1d\xc6\xac\x10\xb2\xe8\xd00C$\xa2\x0e\
+\xe3\xd1\x102\xec\xd0\x08CTB\x14\xa3-\x88\x00\xab\x850\x17s\r\xdey\xc7\xe0\
+\x83\x0f\xe0g\x17\r"M\x83\x90\x1d"iC&mrH\xfc\x98\xcb?\xfaC\x9c\xf0\x0ck\xb7\
+\xe1\'o\xe6\x02\xdf\xe7\xd1\xa3\x19\x9e{\xee\xb9\xf6\x02]\x8a[\xb7\x8a\\\xb9\
+r\x85?\xfa\xa3?\xc20\x9c@+$\x0e\x8b^\x81P\x03Z\x1c\xf7\x1d\xbd\x96g\x8dD"<\
+\xf5\xd4S\xd8\xb6\x8di\x9aLOOq\xcf=S\xbc\xf8\xe2\x8b\x9b\x04\xe4\xc4\x1c\xfc\
+\xad_\x80\xa7\xffj\x84\xd9I\xa8VC\xbc\x9dw\xb0\x0c\x83\xb9i\x87\xd8\x94A\xcc\
+0h\x84\xdd\xe3\xcb\xa6\x81iB\xdd\x0cA\xdd\x15H\x87&+\xe5&\x1f\xae\x86\xb9Yh\
+\x90{\xbf\xc9\xadr\x13;a\x12\x8f5\x89\x98\x06\x11\xd3`j\xd2!V\xfb.3\xd6eB\
+\xe1&\xab\x05X/\xf5\xbf\xc7\xa3G3\xfc\xf3\xaf\xfd\x01\xbf\xf8\x8b\xbf\xb0i_>\
+\x9f\xe7{\xdf\xfb\x1e/\xbe\xf8"\xeb\xeb\x9bE\x7f;\xd0\xe2\xa8\x01\x1ds<0\xe4\
+\xf3\xf9M\x05\xd4\xbf\xf6kg\xc9\xe7\xf3|\xe5+_i\xbb\xa0\x9f{0\xc4\x99\xc7M\
+\xe6S\x90\x18s\xb0BMnFC\xcc&\x0c\x8e=\xe0`\xcf\x1aL\x86:\xa3-1\x1c\xca\x18\
+\xee\xb3\x08\xe1\xc8&!\xcb\xe4\x81Yx`\xb6\xc9\xcd\x15\x8b\xeb7j j\x8c\xc7\
+\x1d\x0c\x11\x02\x01\xc8\r\x97\xfb\xf1l\x98\x8fgC\\\xbed\xf0\xa7\xaf\xd4\xf9\
+\x7f\xbe\xdf\xe0\xed\xab\x9b\xef\xe3\xd4\xa9,\xff\xf4\xb9\x7f\xc2\xa7\x96>\
+\xbdi\xdf\xcaJ\x81rY\xf2\xedoo\x1e\x1e\xb9\x9d\xe8ud4\xa0\xc5\xf1\xc0p\xf5\
+\xbd\x1c\x17.\\`aa\xa1\xa3\x00\xfb\x99g\x9e\xa1R\x91\xfc\xc1\x1f\xfc\x01\x9f\
+\x98\xfa\x90/~\xd2`:\xd9 \x1a\x0f!\x84\xc1D\x0c\xe6\x92\xd0\x889\x1c\x12\x9d\
+\xa2hHp|\x1c\x0bC\x84\x88\xe1@\xcc5-\xc7\xec&S)\x88\x8b(\x86p\x88\t\x101\x08\
+\x87\x8ep\xbb\x99\x03\xc0\xc1!\x8eA\xe6\xa4\xc1o\xcf\x86\xf8\x9bgB|\xf7\xc7\
+\xf0\xe7\xaf7x7\xefp\xcb8\xcc\x993\x9f\xe3\xd9g\xff\xc7\xf6L\xe0^VV\xdc\xa1\
+\x8b\xcb\xcb\xcb\xbc\xf6\xda_n\xef\x87\xa7\xd1\xf8\xa0\xc5\xf1\x80 \xebp\xe1\
+\xc2\x05\n\x85\x02\xb6m\xb73\xbc\xf1\xb8\xe0\x7f\xf8\xcd_\xe3P\xfd\x02\xe1\
+\xeb\xdfd\xc2\xda\x10F\xdbv\x98\x88\x87\x88Z`\xb5\x841\x1a2\xa86\x1d_QD\x18\
+\xc4\xba69\xa1)\x8c\xe6MbG\x0e\x03\x10\'F\xdd\xaa\xd0t\xae\x11"\x82\x00\xaaN\
+\x88(\r$\x06\x938L\xa6CH\x1b\xfe\x9bY\x87\xcf,\x85\xf9\xf0Z\x88\xe5+\xd7\x88\
+\xcd\x94\x90R\xb2\xb2R\xe8\x98\xa5\\Y\x89\x85B\x81\xe7\x9f\x7f~\xd3\xd4g\x1a\
+\xcdN\xa0\xc5\xf1\x00q\xe1\xc2\xeb\xed\xf9\x19\xdd\x89\x19\xdc5W~\xf8\xef\
+\xfe\x88\xb1\xd5o\x12K@8\xa2,\xc6\x061\xb1!\x8cJ\x14+Q\x07\xa3\xe5\xb1v[\x8e\
+e\t1\x01!\x8f\x85\xd94\x040\x0f@\xd4\nQ\xa7B\xd8\x98%\x14\x8aR\xb3*\xc0\xfd\
+\x98@8\x1e%\xda\xb8L\x13\x08Uk\x08\x1c\xe2F\x88\x92p\x88\x0b\x87C\xb3\x0e\
+\xd5\xd5\x17X{\xf5U~\xf0\xfac\x18\xa9O\x92\x98y\x90L&C\xa5")\x97\xdd)\xcc^~\
+\xf9\xe5]\xf8$5\x1a0z\x8d@\xd0\xecM\xfc\xc6V{\xf9\xa5_Z\xe2\xef}\xf9\xefr8s\
+\x84t:\xcd\xf9\x7f\xf3,\x95\xf7\xbeM,\n\xe1\x88\x83\x10\x06\x860\x98\x8e5pl\
+\xb74g\xacU\xcb\xe8\x08\xb0\xaaF[ \x950\x961\x88\xb5^{\x85\xd1\xb4\xc2`\xcc\
+\x02`DC8\xd5&F\xd4\xddor?\xd4\xaf\xd2t\xee!d|\xd4:\xe1\n\xd4\xdc\xe4P\xa3\
+\x15\x8f\xa4\xec>K\t\xd5B\x93u\xc0(8\x94\xa5\xc3\xb5\xd2,+\xd5y\x8aU\xc9\x8d\
+\xa2\xe0;\xaf\xfc\x80\x1f\xbc\x13\xd9\x95\x12\x1e\x1ds\xd4h\xcbq\xdf\xf1qz\
+\xcd\xeb\x08p\xfe\xfcy.\xe5\xce2\x93\x9e\xe5\xdb\xff\xe2\xcb\x8c\xad~\x9b\
+\xa8\xd1 \x1c\t1a9\x88X\x93\x90\x15"d\x19\x8c\x01\x16\x9d\x1aPm\xb6\xb2\xd1\
+\x1e\x8b1\x86\x03\x18\x94%\x8cy\xb6W\xab3D\xa3\xd7:\x04\x12Z\xc2\x08`\xce\
+\xb9\x85\xb4u\xc0\xf99\xb0yr\xdap\xe8\x08\x8d\xe6%\x84\x80\xf8d\x98\xa8\x05\
+\xd8\x0e%\xe90-\xafs\xbb|\x9d\xdbkM\xaeM\x18\xa4>\x19b\xcc\x94\xbc\xf2\xa6\
+\xd05\x8e\x9a\x1dG\x8b\xe3\xbe\xa3\xb70*\xfe\xf3\x9f~\x9d\xea\x9b\x7f\x9f\
+\xe9\xf101\xcbu\xa5\xadP\x93P\xeb\xafm\x19\x0e\x91\x90+\x8a\x15\xd9l\xc7\x1b\
+\xad\xaaAEt\x19\xa6\xc2\x15\xc5\x18\xb4\xadGhY\x8d\\\x07c\xb6m5FB\xd1\xd6N\
+\xf7\xa9Y\xab\x102>\xa2n\xd61\xb1\xdaV#@\xb8UL\x8e\xb8\x0c\xd2\xa0\x19\x8d@\
+\xb5\x86\x00\xc2\x93!\x84t\xa0\xec\x10\x950i\x8fc\xaf\xdf\xe2\xd8\x0cL\xa7\
+\xa2\x80\x16H\xcd\xce\xa3\xc5\xf1\x80q\x9f-y,\xf563"\x82\xd2\x1f+\xd4$\x16\
+\x83h\x94\x96\xd5\x88k\xa1\x01ua\xb4\xed\xb9js#\xde\xe8\x88\x96;\xcdF\x9c\
+\xb1)\x9b=\xaf\xebZ\x8dsP\xdf\xa8\xcf\tE,\xa8\x83Ik\xf4N\xa4S \xd5\xb60\x15\
+\xc2\x910Xaw\x7fk[\x03\x88\xc7>\x06\x93@\xec\x1d(\x8f\xb1\xf0\xb1[\x84\xabQ\
+\x8a\xa5\x1a?\xcci\x81\xd4\xec\x1cZ\x1c\x0f\x10\x0f\x1d1\xf8\xeb\x8f\xc1\xfd\
+s\x11&\xac\x06\xd0\xb2\x1a#\x06\x11\x00\x9c\x0e\xab\xb1\xee\x897\xc2\xe6\xb2\
+\x9d\x98\xd8H\xc24e\xb3\x1dol\x1as\xc0\xf5\xf6q\xa1\xda\x8c\xfb"\x02\x98s\
+\x1b\r\xd4}\n\x19#>\xeb\xbet\x8b\xa6\x12\xc8\x08P{\x97&\x8f\x13\x9f<\x8e\x11\
+\xaf\x01p\xec\x81[<\xf5P\x98K7$\xa5\x01\x05\xe5\x1a\xcd\xa8\xe8\xb1\xd5\x07\
+\x84\xfb\xa6\xe0o<\x15\xe2\xfe\xb9\x08\xa2\xe5\xdd\x86#a\xac\x90k\xed\x19Q\
+\x87\x980\x08Y\x1bb\xe8M\xc4\x80\xebVw\xe3\x97\x88\x89F[\xc2\xd8r\xa9\x9b\
+\x91\xeb\x9b\xce\x83\xd7\xdc\x04\x8cye\xf3.%\x84\xb5\xca\xc6\xeb\x88\xd5)\
+\x9c\xad}\xb5\xa6\x89!WpD\n\xc7\x8a &o\x13\x9d\x84\xec<\xcc\xda:g\xa2\xd99\
+\xb48\x1e\x00\x84\t\xa7\xe6B\xccO4\x11QZ\t\x980\xf1\x96\xf5(\xe2n\x1c1d\x19D\
+B\x1b.\xb5B\xb9\xd2j\x12\t\xf7$7\xd6\xe8G\xb5:\xd3~m\xd6M\x90\xcf\xb8.\xb4\
+\x97\xfa\xfc\xc6k%\x82\xea\xa1,E?A\x04jM\x93\xdb\xab\x0e\xef_\x84|\xae\xce\
+\x95\xab\xefRZ\xfb\xb9{\x0f\x15\x03\xd1\xd2S\xc3\xb4\x02M\xae1\n\x83\xaa\x02\
+4\x07\x1f\xedV\xef3\xfc\x96J8<\r\x9fz\xc8\x80\xb8I\xd4h\xb4\xb7[\x11\x83J\
+\xcd=4&:\x85\xd1\x12\xa1\xd6\x94c!*Q\x07\xabjP\x95\x9d\xc5\xdfcv\xcb\x8d\xf6\
+\xc4\x1a\xbd\x89\x18w\xc3\x1c\xa6\xf9\x9f\xdd\xe4K[\xe8^\xeb\xfc\xcf\xea\x16\
+N\xaf\xe5\xd8\xe5R7\xa4\xc3\xdaj\x8d\x9f\xbcU\xe5\xea\x95\x08\xa9\xf1&q\xe1\
+\xf0\xd8\x89\x12\xa5\xc9\x9b\xc4q\xc7f\xdf\xb8\xd5@Vj\x9b\x97r\xd0h\xb6\t-\
+\x8e\xfb\x9cx\\\x90\x99\xaa2?\xd1\xc4\xaa5\xc1\n\xb5\xad\xc6J\r&b\x06"\x14\
+\x01j\x1d\xe7\xdd\xc6a\x0c\xa3\x9d\x84\xa9\xe2\x11F5-Y\xa1\xb9\xa9\xe8\xbbZ\
+\x9d!j\xb9\xef#\xd1L{\xbb\x9b|\xb9\xea\x96\xec(1T\xe2\xa7\xf0\xba\xd0>\xc2x{\
+\xd5ae\xd5\xe0\xa7o\x97Y\xf9\xd0\xa2^\x03y\xcb\xe0\x01\xbb\xc9j\xe1\x16c\x15\
+\xa8\x02\x85\x82\xc1\xcaZ\x98\xf7\xd7\x12\x80\x1e-\xa3\xd9\x19\xb48\x1e\x00\
+\xee\xb9\'\x8c\x15\xa9\x13\x8aF\x80\x06\x8dZ\x03,\xd7r4\xa2\x0eF\xb4\xb6\xe9\
+\x9c1\x0c\xa2!\xa3\xedJ[U\x83\n\x9d\x9ed\xac+A\xd3\xb6\x1a\x99\xa5Zi\x126:3\
+\xcf\xcdH\x1d\xb3F\xa7\xcb\xec\x15\xc4nZ\xfb\xcae\x83\xa6l\xf2\xe7\xe7%\xeb\
+\xeb01\x01\xa9\xf1&\x87,\x83\xd9\xb4CY\xbab\\\xad\xc0\x9ac\x02\rV\nu\xa8ha\
+\xd4\xec\x1cZ\x1c\x0f\x00\xf3c5\xaaDQZ\x16\x8e\x84\x81F\xc71!\xcb\xe8p\xa9a\
+\xa3t\xc7+\x92\xe0?L\xb0\x8d1K\xd8\x98\xed\x10N\xd7\x9d~\x8dPw\x99\x8e\xd7r\
+\xf4Z\x8a\x9e\xe3\xcae\x83w\xdfj\xf0\xe37\xc0\xb4\xe0\xa8\x15&\x16\x82\xa8\
+\xdd$&\x0c\x9a\x15\xb0\x0chV\xa0f\x19\xc4\xa9s\xd5pX\x97a\xa0wi\xd1v\xa0g\
+\xe7\xb9\xbb\xd1\xe2x\x00\xa8G\xc2D\xa9A\xab`\x07\\\xabQ\xc4\x1dD(J\xb7K\r\
+\x1b\x82\xa82\xd4\xed\xe1\x82\xc2 &\xdd\x111\xde\xf2\x1d\xf7 7\xce\xd8p\xae\
+\xb5]\xeaf\xad\x02\xb5\xef\xba\xfb\xbbKr\xfcJt\xd4\xcb\xa6\xc9\xda\xf5\x1a\
+\xaf](\xf3\xde\xc50\xf7\xcf\x85\xb8/\x1e&\xda\xca\xb4\x87\xac\x10\xe0\xb4\
+\xb3\xeb\xcd\x8aC\xb3\xe2\xbe\x1fs\xdc}\xd2\x11\x80\xaes\xd4\xec\x0cZ\x1c\
+\xf79\xcd\xaa\xa4$CT[3\xe0D\xe3-Q1]KP\xb9\xd4\x91.#P\tcG\x86\x1a\xdc9\x18\
+\xc5fc\xc9\xb4\xc2T+Mb\xe2^\xf7\xba\xad\xd1/!|b\x8c\xdd%:]\x16e\xb9l\xf0\xfe\
+r\x9d\xd7~\xeaP\xbd\x1d\xe1\x91{\x9bL\xc4\x1c\x8c\x960\x8aP\x14\xc3\xa8\x11\
+\xb2\x0c\x9a\x95\xce\xfe5+\x0e"\xdc$d5\x10F\x8d\x9d.s\xd4\xd6\xe3\xdd\x8b\
+\x16\xc7}\x8e\xac\xc3[\xd7\x0cR6\x1c\x1a\x83y\x0c\x9c\x84\xc3\xb4g4L\xb70\
+\xc2FM\xa3U5\x08[Pr\x1c\x84\x00\xd9\xaa}\xf4\x8e\x88qc\x8d.\xcd\xc8uB\xb5\
+\x19\x1a\xce5\x9a\x91Pg\x8c\x116\ta\xad\xd2@\xfd\x9b\xd5+\rn\x17\x9a\xbcv\
+\xa1\xcc\xc5w\xe0\x81T\x94\xa9\xc3\xee\x9c\x92\xae\x9b\xae4h\xc3\xd2\xf5\n\
+\xa4S\x8d`Dk\x94\xcb\xb0r\x13Vvf"p\x8d\x06\xd0\xe2x \xf8\xc1;\x11\nk\x15\xd2\
+\xe3\x06\x891\xf8+\xc7\x0c\xe2\x9f0\xb8\xd7#\x8c\xde\xa9\xc9\x14m\xab\xb1\
+\xf5$%\xe0\x8d%\xb6\\\xeaz\xa5\x81i\x85\x89Z\xee\x18\xea\x06\xd7\x88Do\xf4\
+\xcc>\xd7\x9a&\xa1j\x8d\xaa\x13\xc2\xb4\xdc\xf3\x9b\xb2\xc9\x079\x83W\x7f\
+\xe4\xd0\xacF8\x9d6\x98L4\x111\xf7\xe2e\xe9\x16\xa9{\xf1Z\x8dN5\xd2>\xee\xcd\
+\x8fL~~\xb53\xa6\xeaG<.\xb0\xed$B\xc4(\x14V\xf5<\x90\x9a\xa1\xd0\xe2x\x00(\
+\x95$\xff\xdfuAz\xbc\xcaX\xd8\xe1\xe7W\x0cn\x16\x1d\x16\x1f68\x9619$:\x8b\
+\x01\xabM\x87h\xc8h[\x8d\x00%\x8b\xf6\xb2\x06\n\xaf\xc5\x08\x80s\x8d\x88\x15\
+nY\x83a\xdf\x98b\xadiR\xaf4P\xe3\x0b\xaak5>\xc8\x19\xbc\xf6S\x87\x95|\x8d\
+\xf9\x89&\xf3\xb3!&bn&]\x84\xa2\x9b\xb2\xe9\xde8#\xb8\xc2(\x9bc8\xd5\x02\xeb\
+e\xf8\xf6\xf7*\xbc_\x18\x1coL\xa7\xd3,--\x91N\xa7\xc9\xe5r\x9c?\x7f\x9e\xab\
+\xef\xe5\x86\xae\x8d\xd4\xae\xf5\xdd\x89\x16\xc7\x03B\xa9$\xc9\xdd\x84\x99\t\
+\x83d\xb4\x01%x\xe5\xcf\x9b\xbcw\xb5\xc9g\x1e\x0e\x11\x9d\x84C\xadc\x1d\x01\
+\x15\x1c\xe2\x86A\xc9i\xad\xf3R1(\t\xc3u\xa7\x8d\xb9V\x1e\xf8z{4L4z\xbd-\x8c\
+\x115A\x84\xa2C\x14]\x8bNY\x8a\xdf;\xdf\xe0\xcdK\r\x8e\x1f2x\xf0p\x98\xb1\
+\xf10\xe3\xe1f[\x18\xfd\xf0Z\x8c\xa5uX/W\xb1"\xae\x80\xbe\xfcf\x98\xf3\x17\
+\x13\x94J\x83\xad\xc0Ba\x15)]\x01\xcdd2\xd8v\x92\xf3\xe7\xbfO>\x7f\x8d\xabW\
+\xfd\x86jP\x93\x0eo\xbe]\xe6\xcd\x1f\x85\xf8O\xaf\x19\xfc\
+\xc5\x9f\xd71\xea\rN\xdd\x1b\xe2\xc4\x8c\xc3\xa1\x94\xc1\xc4\xb8\x83\xd5\xfa\
+W\xeb\xe5J7+\x0e\xcdr\x04Y\x9b\xa0\xb8.Y)\x86\xa8TO\xc0\xc4,\xeb\xd1ORO\xff2\
+\x99\xd3\x9f\xe1\xca\x95\x0f(\x14V\x07\xaeY\x1d\x8b\t\xc0\xc0\xb6m\x12\x89\
+\x04\x00cc\tb1\xc1\xfc\xfc\xbd\xcc\xcf\xdf\xc7\xf4t\x9a\xf5\xe2-\x1a\x8dF_\
+\xb1\xadT\xaa_\xd5\x02yw\xa1\xdd\xea\x03H\xde\xf8\xab<\xfeP\x1ay\xe3<\x8d\
+\x9b\x97)aP\xbbU\xe5\xcf\xbe\x13\xe2\xc4\xbd&\x1f;\xde\xe4\xde\xa4\xc3\xd4$4\
+\xec0\x08\x83\x90\xe3\xc6\x08C\\\xa5i\xccQ\x96\x1f\x10\x8d^\xa7.;\x13\x1fM\
+\xd9\xa4,\xe1\xda5\x87\x0f\x0b5\xd6.\x99|P\xac\xb2~;\xcaX\xa3\xc6}\x13p\xe2\
+\xa1\x08"\x1a&1\xe60a9X\xa6;+\x90B6\xab\xc40\xa88\x9e0\x9et\xdd\xe9j\xb5\x8a\
+l40\xc4a\x9a\x93\x8f16\xf9(Nl\x8a\x98Hc\xc8<\x8eH\xf3\xf4\xd3g\xf9\xc3?\xcc#\
+ee\xe0|\x8eRJ\xae^\xcd\x93N\xa7\x01\xa8T$\x96%\x98\x99\x99eff\x96JE\x92J\xd9\
+\xbc\xf2\xcaw\xf4\xdc\x90\x9a\x0e\xb48\x1e\x10\x84\xe9\xd6<\x16\n\x90H$H\x1d\
+=C\xe2\x81\xbf\xc2;\x7f\xf9\x7f2v\xeb}\x00\x92\x95&o\x7fP\xe7\xed\x0f\xdc\
+\xb5\xa4\xe7f\xe0\xfe9\x10\xc9\x06\xb1\xb8\xebW&\xa2\x16\x13\xb1\xcb\x84,\
+\x93+7\xca\x00\x94K!d\xa5\t2\xc2\xca\xad\x10+\xf9:7\x8b\xee\xf2\t\x99\x99\
+\x06s\x96\xc1\x03)\x88E#\x84#\x0eV\xa8A,\x06\x11\xdc\xa4\x8b\xe33\x15ZY:\xa8\
+4y\xb5\ne\xf7RT\x9b\'\xb1f\xef\xc7\x9c{\x1c\xcbZ\xc4\xb4\x04\xd5\x8a+Z\x8ep\
+\x05.{\xe2\x04KKK\xbc\xf8\xe2\xb7\xfa\n\xda\xca\xca\x1aR\xba\xd6\xe5\xdc\\\
+\x9a\xc3\x873\xed}\x95V\x9b\x96%H\xa7\xd3\xa4\xd3\xb3\x03\xe3\x90:1sw\xa1\
+\xc5\xf1\x00!\xeb\x90\x9a\xb08}\xfa4\x93v\x92X,\xcd\xf1\'\xff\x0e\x97\xff\
+\xfc\x1f\xe1T\x1b\x8cM\xc0\xf8T\x98\xe2\xad&\xb7\x8bM*+\xffg\x02\xd0\x00\x00\
+ \x00IDAT\xf0\xeem\x08YM\xe2\xd1\x08\xa1h\x08)\xeb\xd4\xeb\rT\xada\xb1.H\x98\
+\xae\x90\x98f\x93\x19a0vO\x98\x8f\xcdBbL\x15P\xba\x85\xe7j\xc6qpg\x1dw\xaa\
+\xeek\x95|)\xcbZ\xa7\x05Yrg\r\xaa4C\xd4\x98AL\x9e \x9a\xfe<\x8d\xc9\xd34\x80\
+\xa8G\x18\xbd\xc4b1\x96\x96\x968\x7f\xfe\xfc\xc0\xf2\x9cRI\x92\xcf\xe7\xc9\
+\xe5rm\xeb\xd1\xb2\x04\x96%\xda\x02)\x84`z:\xcd\xdc\xdc\x0c\x85\xc2\x9a\xb6 \
+5\x80\x16\xc7\x03\x83\xac\xbb\xd6\xa3mO\xb2\xb0\xb0@\xac\xa5R\x13\xe9Op\xf8S\
+\xff\x98\x8b\xff\xefW\xa0\x0e\xb1f\x93\xc9{\xc2\x88Y\xb7L\xa7\xec@\xd4\n\x93\
+\x98hbMV(\x97B\x84*&M\xcb\xb5$C\x95:`\xb6\x86\xecm \xc2\xae\xbb\xed\x8a\xa02\
+\xa6<\xb3\x8aW!&"\x94\xa5+\xb2\xe5\x96\xd8z\x05\x11\xa0Q\x0b\xe1L|\x1cs\xe63\
+\x84\xe6>\x8b\xd9\nLv\xc7\xc2\xbd"\x19\xb5\x04\x93v\x92aV\xce\xcc\xe5rd\xb3\
+\'\x98\x99q\x87@*\xf7Zq\xeaT\x96T\xca\x1eX\xee\xa3\xad\xc7\xbb\x07-\x8e\x07\
+\x04aB(*\xb0m\x9b\xd4\xe4\x86h\x94\xcbe&\xd2\x9f\xe0\xd0\xb1\xdf`e\xf9O\x88\
+\xd7kH\xe9\x16|[\xadLq\xc2\x8a\x90\xb0\xc2\xccLG\x88\xc5\x1c\x1c\xd9D\xd5)\
+\x96Z\xb5\x8f\x15\x19\xc6)T\x11\xa1(\xb2Ym\xb7\xefT\x8d\xb65\xa8^+\xb1T\x96\
+\xa2S5\xa8\xe1\xd0\xaco\x08c\xb5\xd4\xc4\x88\xcfB\xfaQ\xe2\'\x9em\xb7W\xadH&\
+\x92\x1b\xfd\xf7\x8a\xa4\x12\xc8jE\x12\x8b\xc5\x98\x9a\x9a\n\xfc\xf9HY\xe6\
+\xc2\x85\x1f\xb3\xb8\x18#\xd9j\xdf+\x90B\xb8\xee\xb5m\xdb\\\xbc\x18\xb8Y\xcd\
+\x01F\x8b\xe3\x01\xc1\x15\xc6$B\x08\xca\xe5r\xdbr\x8c\xc5b\x94\xcbe\xee}\xe8\
+\xbf\xc3\xa9\xd5X\xfd\xf97\x89\x96k\x98\x11(\xd7!d\x86X\xa9\x00\x95\x06\xc9|\
+\x13\xd2&\xe0Z\x95\xa25qn\xb8\x0c\xa2Rk\xcd\x0e^\xed\xacOTk[\xb7,D%\x8c\x15e\
+y\xd5[\xefkPi\x1a\xd4k\'h\xd6\x96\t\xdd\xf3 \xe1\x99\xcf\x10\x9d\xfbl\xc7}D-\
+\x81\x94r\x93\xe5\xa8\xf6y-\xc8c\xc7\x8e\x11\x8f\xbb\xc7\xf5s\x85\x9bU\xc9\
+\xca\r\x89\x94\x92l6\x8b\x10\xa2-\x8a\x95\x8a\xbb=\x9f\xcfS,\x16)\x14\n\x08\
+\x93\xbe\x85\xe2\xdaz\xbc;\xd0\xe2x\x80\x10\xc2\x15\xc4\xb2\xac\xb4\xc5\x11h\
+\xbf\xbe\xef\xf4\x19\x00*?\xff\x13\xea50#P-7\xb1\xc2M\x8a\xeb\x11\n\x0e$c\
+\x10w\xeaDB\xee\xa8\x19Q\x81u\xe9N\x1b\xe6T#\x88\x90\x9bmV1\xc4n\xd6\xcb\x9d\
+\xa3lJ\x15w\xe2\xddR%L)\xea\x10O\xac!\xcd%\xc6\x0f\xff*Q\xfbx\xc7\xb1e\x95\
+\x95\xe9\xb8\'\x81\x10\xa2]\xcc\xedeaa\x01\xdbN\xb2r\xa3\x7f"E\t]HV\xb8y\xf3\
+&\xe9t\xba\xc3j\x94\xb2\xcc\xcaJ\x81w\xdeY&\x9f\xcf\x07\x1aA\xa3\x05\xf2\xe0\
+\xa3\xeb\x1c\xf7\x19\xbd\xd66\t;u\xc6\x936\xa6i\xf2\xd4SO\xb5j\xfc\\\xca\xe5\
+2\x91H\x04\xcc\x04\xc9T\x9a\xdbu\x81q\xfb-j\x15\x87j$\x82\xd1h\x12\xaa51Ca\
+\x1a\xc5:!\x1c\xa4t0K\x11\x8a\xe5:\x96\x13A\xd6\x1a\xd4\x9d\x06\xb5J\x13\x1a\
+\x06uO\xd5t\xa5\x0e\xa5\x8a\xd3\xb6\x16K\x950R:T\xab\x10\n\x87\xa85B4#\xd3D\
+\xad\x04\xa1\xd9s\x8c\x7f\xeco\x12\x16\xf7\x00`\xc8\xc3G\x91:\x1f,\xff)N\xb5A)\x1a\x81J\
+\x8d\xd5"\x94\xaba*M7\xf3,#5\xc0@\xe2>[\xad\xff\x16%\x82j}\x9aR%\xec\xce>\
+\x0e\xc8J\x13a\xb9\xcfc\tW\xec\xe2V\x83\xdb\xd6!BG~s\x93\xb5\xa8\xcas\x14QK\
+\xb4\xadE\x00\xdb\xb6\xdb\xafgf\xdc{\x8b\xc5\x04\xe5\xb2\xa4P(\xb0\xb4\xf4i^\
+z\xe9\xdfs\xf1bn\xe0g$\xeb\x90\xcb]"\x9f\xbf\x06@6{\x92hTp\xe3F\x9e\\\xee\
+\xd2\xd0\x13Sh\xeb\xf1`\xa3\xc5\xf1\x80\xd0\xacJ\xa4,\xf7\x8c\xd7)\xd7\xda\
+\x15\xc94\xa9\x87~\x87ft\x8a\x1b\xcb\xff\x82\xe2\xad\x06\x8e\x11\xa2\xbeZC\
+\xc6B4\xabM\x84\x15\xa2\xe47\xd7\x19\xae\xd8\xddj\r\x98\x91\x95&\x95Z\xa7\
+\xc9V\xa95I&\xdcs\xcd\xc8q\x8a\x93\xc7HL?E\xd3#\x8c\xaa\xa0\xdb\x1b\x1f\xf5\
+\n\xa3W\x14\xd5s<.\x88\xc7\x05\xa9\x94\xcd\xcaJ\x01)%\xe9t\x9a\xd3\xa7O\x93\
+\xcf\xe7\x03\x95\xe0\xb8\x02\xe8\x8a\xa0\xfa\xact\xf9\x8e\xc6\x0f-\x8e\xfb\
+\x88\xa0\xcb\x85\xfa\xc5\xe7\x14\xb1X\xac-LS\'\xcf\x12\x9d|\x80k\xff\xe5\x8f\
+Y\xfb\xe8m D\xa5\x04\xd52\x98\x91&1\xcb\xdfO]\xf1\xbc\xbeUtc\x97uO\xf8qj\xd2\
+}v&>Ns\xe63\xc4\xe7>\xbbiA\x83\x92\x93$\x06\x9b\x841\x9dNwX\x8e*\xe1\x02n\
+\xd2E\xbdW\xc7\x16\n\x05\xbe\xf8\xc5/\xf2\xbd\xef}\xd7\xfd\x81\x18b\xc6\x1d\
+\xafP\x8e\x8a\xb6\x1e\x0f.:\xe6\xb8O\x18$\x8c\xf5\xa6;\xb6\xda\xb6\'Y\\\\d|<\
+A\xd4\x12\x8c%\xdc\xb8\\\xa3\xe1Q\r3\x81!\xf3`&\xb0\x123\x8c\xdd\xf7\x8b$\
+\xc6\x92\xc85I\xa9\xfa!\x15\xc7\xc0i\x1a4jn\xdc\xb0\xdf\x03\xa0\xd9t\x05r,\
+\x0e\xd1\xf8\'\x89\xde\x93\xc6\xba\xef)bG\xbfDx\xf2\xc1\x8e~\xaa\xf8\xa7\x8a\
+/\xaa>&\x12\t\xa6\xa6\xa6\xda\xc2\x18\x8f\x0b"\x91\xce\xdfn\xef\xfbH\xc4$\
+\x1c6\xa9T$\x89D\x82\x9b7?\xe2\xad\x9f\xbd10\xee\xb8\x9d\xa4RI\x9cZ\x85pD\
+\xc7\x1e\x0f"\xdar< (\x8bJJ\xc9\xa4\x9ddz&\xbd\xe9\x18o\x19\x8c\xd7\xa5\x8d\
+\xc5b\xc4N\x9e\xe5\xd0\x91E\xde\x7f\xe3%n_\xff\t\xd5\xe2\xbbT\xaa\x9b\x9ahc\
+\x19M"\x89,Q\xa3\x8c\x11\xbe\x97\xa8\xf5!\xe1\xe9\x07I\x1c\xca\xb4\xcbs\xbcj\
+\xae\xacUo\xfc\xd3\xcf\x8dV\xc2\x18\xf4\x9egf\xd2X\x96\xe0\xec\xd9\xb3\xbc\
+\xf2\xcawX\xb9q}\xd7\xd6\xb2\x96\xb2B(*\xb4\xf5x@\xd1\xe2\xb8\x0f\x08\xeaN\
+\x03\xdc\x7f\x7f\x86\xa4=\x89m\xdb\xed\xe1q\xde8\xa4W \xbd\xe5>\xe0\n\xe6\
+\xfc\xa3\xcf`\xc8<\x1f\xac\x82s\xe3?Q+\xbcO\xb3\xb6\x8a\xd1tG\x968!7\x99\x11\
+\x8aL2n\x87\x89\x89q\xea\xc9\xbfJ\xd2>\xb4)\xb9\x02\x1b\xa2\xe8\x15\xe3\xa4\
+\xed\xfa\xddJ\x0cc\xb1\xce$\xcc0\xb8Bj\xf3\xf0\xc3\x0b\x9c9\xf3y^x\xe1\x05\
+\xa8\xefN\xfc\xb0T\x92\x08\xd3-\xc0\xd7\x1c<\x8ca\x86`i\xee\x0cA\xc4Q\x98p\
+\xf4x\x96\xaf\x7f\xfd\xebd\xb3Y`#\xf6X(\xb8\xc9\x0b)\xa5\xefX\xe5~\xa8\xda\
+\xc3p\xe5\xfdM\xfb\x1a\xd6}\x9b\x04V\xe1\x97pQt[\x8c\xe0f\xa5\x83Z\x8c\xbdx\
+\xe5;\xaf\xf0\xdf\xff\xad\xbf\xb5\xeb\x13\xd9\xc6\xe3\x82RI\xa2\xad\xc7\x83\
+\x85\xfe\xcd\xdb\xe3\x04\xb5\x1aCQ\xc1\xb3\xcf>\xcb\'?\xb9\xd8\x91yU\xa5/\
+\xfd\x924\n\xbf\x89\x1e\xda\xc2\x16;\xeesF\xef\xc9!\x94\x15\xe9M\xb8\x00\x9b\
+\xcat\xbc\xcf[\xe5\xc1\x87\x16XZ\xfa4/\xbe\xf8"\xd0\x7f\xd4\xccv"\x84\x85\
+\x10\x16++k\xda\xbd>@\xf8\xd7jh\xf6\x04\xc3\xb8\xd3\xbf\xf8\x8bK|\xfe\xf3\
+\xee\x08\x98n\x0b\xcc\xb2\x82\xb9\xacA\xad\xca\xa8g\xc2\x86\xees\x0c\x99\xdf\
+t\xac\xb2\x14U\\1\x16\xeb\x8c1\xfa\xf5y\x14R)\x9b\xdf\xfa\xcdg\xda\xb3\xef\
+\xc0\xee\xb8\xbcjZ\xb4\xed\xb8\x07\xcd\xdeA\x8b\xe3\x1eF}\xb1\x07}\xc1S\xa9$\
+\xbf\xf5[\xcf0\xe3I\xc2\xc4\xe3\x9b\x05I\x08\xd1!l\n\xbfm\xfd\xe8\'\xa2\xde\
+\xb8c/k\xd1+\xd6\xc3$`\x82\xf0\xf8\x13\x8b\x9c9\xf39\x84pW\x0e\xdb\x8d\xe4\
+\x8c\xb2P\x85\xb0\x86\xfaA\xd3\xecm\xb4[\xbdG\xa9\x96\x8aN|"IHV\xdc/\xfa\xfa\
+\x9a\xef\x17]\x98p\xee\xdc9\x16\x17\x177\xedS\xb10W\x88\\\xd7uu\xb5\xb0I\xdc\
+\x86\x8dC\x06\xc1o\xa4\x0b\xb0c\xa2\xa8\x88\xc7\x05\xbf\xf6\xf4\xd3\x9c?\xff\
+}\xa4\\\xde5\xd7\xba\xb4\xbeF|"\xb9+\xd7\xd2\xec\x0e\xdar\xdc\x83\xd4\xebuG\
+\r\x07\xb4m\xf7\x0b\x17\x9fH\xfaZ\x90\x8f<\xbe\xc83\xcf\xfcf_\xb1QV\xa4e\t&\
+\'\xed@\x96\xe2\xb0\xd6\xa4\x97\x89\xa4\xbd\xc9\x85\x86\r\x0b2\x95\xb2\xdb\
+\xc2\xbd\x13\xb8\xd6\xe3\x99\xf6g\xb7\x1b\xc8zK \xe3B[\x8f\x07\x04-\x8e{\x0c\
+\xf5\xc5r\x83\xfc\xde\xf1\xd2\x9b\x17\x93J\xa5\x92<\xf3\xcc3d2\x19\x84\xf0\
+\x17\x1b%\x98\xee\x02\xf7\xaeK\x1b$\x012\x8a5\xe9\x8d/\x82\xbb\xc0\x95\xd5\
+\x15o\xf4\x8a\xe2N\xc5\xe8\xe2q\xb7\xee1\x939\xe2\xfe0\xec\x92\x7f$\xeb\x1b.\
+\xb6\x16\xc8\xfd\x8fv\xab\xf7 \xcd\xaa\x84V\xcc\x0c6JrBQ\xd1\xae\xe1\x13&<\
+\xf5\xd4/\xf0\xe9O/\x01\xc1\x85FYs\xbd\xb2\xcc\xa3\xe2u\xa3\xbd\xa2\xe8\x97p\
+\xd9\xc9\xc4\x85\x12\xa7G\x1eY\xe0\xe9\xa7\xcf\xb2\xbc\xfc\x16\xa5\xaa\x1e7\
+\xad\x19\x1em9\xee!\x94\xb5!\xeb\xee\xb8\xdfB\xc1}\xa8U\xf6\xbc\x96\xe1\xd1\
+\xe3Y\xbe\xf4\xa5/\x91LnL\xd00\x08\xaf{m\xdb\xc1\xdc\xeb (7zr\xd2\xeeH\xb8t\
+\xbb\xfa\xbb\x11\xffS\x93S\x00\x9c={\x96tz\xb6=c\xd1n\xa3\xad\xc7\xfd\x8d\
+\x16\xc7=\x82\xdf\x17I\x89\x89w\xc2\x05p\xdd\xe93g\xce\xb0\xb4\xb4\xd4\x8e\
+\xdf\r\x837{\xbd\x15\xa2\x96`\xa2%\xce^Q\xb4m\x9bTj\xc3u\xf7\xba\xf6\xbb\xc9\
+\xccL\x9a3g\xce\xd0\xacJ=\x8aE34Z\x1c\xf7\x00\xfd,\x0c\xaf@\x82\xebNg\xb3\'9\
+{\xf6\xec\xc8\xc3\xed\xbc\xc9\x19\xefz-\xc3\x10mY\x9f\xcaZ\xec\x8e+\xaak\xdd\
+IT\xec1>\x91\xdc\xb5\xf1\xd6\xddh\xebq\xff\xa2\xc5q\x9f\x91\x9a\x9e\xe1s\x9f\
+;\xc3\xc2\xc2\xc2\x96\xc4\xc7\xb6m\x92I\x9bt:\xcd\xf4L\x9a\x89\xa4+\x94*\xa9\
+\xd2\x0be-\xce\xce\xa6\xdb\xb1E\xef\xdc\x8bA\xd6t\xd9M\x16\x16\x16x\xea\xa9_\
+\xb8\xa3\x96\xa3\x16\xc8\xfd\x89v6\xee0\xc3~q\x1e|\xf0a\x9e~\xfa\xec\x96\xae\
+\xe9\x15U\xef\x1a-\x95\x8a\xa4\\\x96\xbe\x13\xe6z3\xd0@G\xac\xd3O\xa4\xef\
+\xb4\xd5\xa8\x88\xc7\x05\xbf\xfb;\xbf\xcd\xcb/\xbf\xbck\x13Rh\x0e\x06Z\x1c\
+\xef \xc3\n\xe3\xa9SY~\xe37\xce\x91\xc9d\xb6E|\xbc\xeeo\xa9\xe4\x8a\xa2e\xc9\
+\xf6l>@\xc7\xda\xce\xdd\xd9\xe7\xeeX\xe8^\xe5\x89\xc5\'\xc9d2\xbc\xf9\xe6\
+\xf2\x1d\xeb\x83\x9e\xd6l\xff\xa1\xc5\xf1\x0e1\x8a\xab\xb5\xb0\xb0\xc0\xd2\
+\xd2\xd2\x8e\x8d,\xf1\xa3{*\xb1\xdd\xa8S\xdcnR)\x9b\xa5\xa5O\xddQq\x04-\x90\
+\xfb\r-\x8ew\x80Q\x84qnn\x86\xdf\xfa\xcdg\x98\x9b\xdb\xdeU\x17\x958\xee\xe6\x04\xb8\xc3\xa0\x05ro\xa1\xc5q\x87\xd8\
+\xea?\xba\x94e\x0e\x1f\xceP.\x97\xdb\xe3\x9ew\xd3r\xdc\xcd\xebl\x15%\x8ajmn\
+\xf5Z\xa1\xb6K)9z$\xe3n\xab\xef\xcd\xac\xb5\x16\xc8\xbd\x83\x16\xc7\x1d`\xbb\
+\xfe\xc1\x95\x05\xd4\xbd\xe6\xf4NZt~\xe5C\xf5\xfc\xc0\xb1c\x9c:\x99\xe5\x87\xff\xe5\x87\xdc\xbe\
+]\xa4V\xbbC+p\x05\xc4\xb2\xa2\xbf\x7f\xa7\xfbp\xb7\xa1-\xc7=\x84\x12\noL\xd1\
+k\r\xc6\x84E,\x16#jm\xc4\xfc\xd4\x9a.J\xc8\xfa\xfd\xd8\xf5\xb3\xf0\xbc\xe7*k\
+\xae{Y\x84\xed\xa0{b\x8bn\xf7X\xb9\xf0\xdeX\xa2\x12I\xef\xc2_\xdd\x8b\x80)\
+\x81\xec\xb6\x14\xfdPY\xec\xc7\x9fX\xe4\x9f>\xf7O\xf8\xbb_\xfe{\\\xbc\x98\
+\xeb{\xce\xdc\xdc\x0c\xb6=I\xa1\xb0\xea\x869V\xd6\x06^g;\xd1\xd6\xe3\xee\xa3\
+\xc5q\x8blgM\xa3\x101\xa4,w\xc4\xf4\xa4\xdcp\x9d\x950n\xbc\x17\xed\xb5\xa2\
+\xc1]\x0e\xa0;\xfe7\xcc\xf5\xbd\xe5.\xbb1\x1a\xc7;\x0bPw\xbd\xa2\x12I\xc0W(\
+\xfd\xac\xca~\xab&z\xcf_]-\xb4\xef\xf1\xf3\xbf\xf2y.\xe5.\xf3\xd5\xaf\xfe\
+\xaf=\x05/\x1e\x17d2G\x98\x9a\x9a\x02\xe0\xca\x95+\xd8v\x81|>\xbfo\n\xe55\
+\xc3\xa3\xdd\xea-R\xa9T\xbf\xba\x1d\xed\x84\x9d:\x11\xcbBJ\xc9\xf1\xe3\'9y2\
+\x8bi\x9a$\x12\tR\x936\xb1\x98\xbb$j"\x91h[\x96\x89D\x82D"\xd1vu\x01_w7(\xe5\
+\xb2l\xbb\x9d\xaa\xddQ\xdb\n\x8a\xd7\xd5\xaf\xd5\xdcp@8l"\x84\x1bb\xf0>\x1b\
+\xc6\x86\xa5\xac\xfeo\x95\xab\xef\xfd\x85\xf2\xba\xdc\xde\x87r\xb1\xd5}\xd5\
+\xebu\xc6\xc7\x13|\xfc\xe3\xa7\xc9\xe5.\xf3\xf6\xdb\xcb\xbe\xeeu\xadV\xe7\
+\xa3\x8fn211\x81mO06\x96 \x1e\x8fS\xaf\xd7\xa9T$a\xa7N\xbd\xb9\xa3\x1f\x13\
+\xe0\xfe\xafi\xf7z\xf7\xd0\xe2\xb8\x05\xb6\xb3Pw\xc2N\xb6\xe3\x85\x8f=\xf6\
+\x18\xc7\x8e\x1dC\x08Aj\xd2]Kz,\x91`r\xd2\x15G%\x8c\xa6i\xb6c\x86\xdd(\xd1\
+\xe9\xf5\xde\xefx\x15\xebS\x8fQ\xac\xc6A\xd7\xe9>\xc6{\xacw[$b\x12\x8b\tb1\
+\xc1\xf8\xb8+\x98\xea\x9e\x95X\xaa\xe3M\x8f\xe8\xd5\xeb\xf5v\xccQ=\xbcq\xc9p\
+\xeb\x18\xd5\x86\x12\xe4\xd3\xa7Os\xfe\xfcy\xde\x7f\xff\x8ao\x9f\x95@\x86\
+\xc3&\xeb\xeb\xeb\x08!\xda\xb1X#\x1c\xa6\xd1h\xec\x8aHjq\xdc=\xb48n\x81\xed\
+\xb2\x1a\x01\x8e\x1c9\xd2*\xf2\x9e\xe5\x0b_\xf8\x02\xb3\xe9\x19&\xc6\xc7\xdb\
+\xd6\xe2\xf8x\x82d\xd2\xfd2\xa6Rv\xdb\xd2\xea%Dj{w\x12\xc6+L\xdd"\xa5\xd6\
+\xacV\x024HL\xfd\xc4\xd7\xaf\xed^}\x0b\x8aJ\xe2(\xc1T\x96\xa5\xfa\xa1P}U\t-\
+\xd8\x10J\xa0m5v[\x90\xaa\x1f\xe1\xb0\xc9\xf4\xf4\x14G2\x19^\xfeO\xff\x91[\
+\xb7n\xfb\xf6\xa3V\xab\xb3\xfaa\x9e\xf7?\xc8\xb3\xb6\xb6\x8a\x101\xa6\xa6\
+\xa60\xcd\x08\xa6i\xd2p\x1c\x0c\xc3\xd8\xd1\xe4\x8e\xb6\x1ew\x0f-\x8e#\xb2\
+\x9dV\xa3\x1botc~_\xf8\xc2\x178}\xfa\x13maT\x16\x8a\x12\x02\x95\x85\x0e\xea>\
+\xf7\xcb(w\xef+\x97e\x87\xb8x3\xdc\xb0YL{Y\x80\xdd\xef\x83X\x93\xdd\x0cj[=\
+\x1c\x87M.\xb8:^\xfdo\xab?\x94\xb2$\xab\x15\x89\x83\x9b\xb9\x8eDZn\xb9\x03\
+\xf7\xce\xcf\x13\x89D\xf8\xeew^\xeei\x01\xaa\xed\xe5r\x85\xb5\xb5\x02\xa6i27\
+7\xcf\xf8x\x020Z\xee\xbfC\xb9\xbcs\xa3o\xb48\xee\x0eZ\x1cGd\x18\xabQ\x98\x10\
+m\xb9\x81~V\xc5\xa1C\xf7P\xaf\xd79v\xecc\x9c=\xfb4\xd3\x87\xa6\x98H\xda\x1dn\
+\xb4\xfa;\xf9\x89b/\x01\x1b\x16\xc7\xd9\x88\xe1\xf9]k\x98\xd2\x1d\xbf\xe3z\
+\xf5\xd3\xef\xf50m+\xab\xd1+\x94\xa6ib\xb4r\xbb\xea\xb3\xeb\xb6$\xeb\xf5\x8d\
+r"U\xd0~\xe2D\x96\xef\xff\xe0\x87\\\xba\x94\x1bx\xedZ\xad\xce\xed\xdbE\xd6\
+\xd6V\x99\x9a:D*5E\xa3Qo\x95D5v\xcc\x82\xd4\xe2\xb8;hq\x1c\x91\xa0\xe2\x18\
+\x8f\x0b&\xef\xb9\x87tz\x16p|]6\xd7\xea\x80\xb3g\x9f\xe6\xd1G\x1fe\xcc\x13WT\
+q\xad\xee\xd8\xe2\xa0\xb8\x9d\x1f\xfd\xe2\x90\xde\xfaC\xd5\xefQ\x85\xb6\xd7y\
+\xbd\xfa9\xa8\xffA\xc5\xdf\xcf\x9a\xf4\x8a$\xb0)y\xa3\xdco!\\q\x9d\x98H0u\
+\xcf=\xfc\xdb\x7f\xfbo\x03\x89[\xadV\xe7\xd6\xad\xdb\\\xbf\x9egr\xd2&\x9dN31\
+\x91l\'kvB \xb5k\xbd;hq\x1c\x91 \xe2\x98J%9v\xeccLM\x1dj\xcfr\xd3\xedn\xa9\
+\xa4\xc7\xe2\xe2\x93\x9c\xfb\x1b\x7f}S\xe2E\x15\\w3L\xd2\xa3\xfb\x1c?\xeb\
+\xcc+\xb4*\x96\x19D\x90\xfaY}[\xb1b\xfd\xfa\xdd\xfd\xba\xdf\xf1~"\xe9=\xb7^\
+\xaf\xb7\xddk)e\xdb\xbd\x8e\xc5\x04\xf7\xde{\x1fo\xbe\xf9\x06o\xbe\xb9\x1c\
+\xb8\x8f*a\x13\x8dF\x99\x9a\x9a"\x1e\x8fS,\xde\xa2V\xbe\xbd#I\x1a-\x8e;\x8f\
+\x16\xc7\x11\x08\x12o\x9c\x9b\x9b\xe1\xf4\xe9O \x84\xe0\xca\x95+\xdc\xbc\xf9\
+\xa1o\x1d\xdd\xa1C\xf7\x90H\x8c\xf3\xb7\xff\xf6\xdf\xe6\x81c\xc7Z\x01~\x13\
+\xdb\xb6;\xe2\x8b\xbd\xe8g\xa5\x05\xb1\xe0\xbcm\xf4ri\x07\xc5\x1e{\xb5\xdb\
+\xcfJ\xed\'\xa0\xc3f\xbc\xfb\xdd\xa7\x12I\x85\xd7\x8a\xf4\xfe\x11\x95\xf5\
+\x18\x0e\xbbV\xfa\xdc\xdc<\x7f\xf2\'/\x0ce\xf9\xa9\x84\x8dc\x84H\xa7\xd34\
+\x9b\x0e\xb7\xcb\xe5\x1d\x89?j\xebq\xe7\xd1\xe28\x02\x83\xacFa\xc2\xc9\x8f\
+\x7f\x82\xe9\xe9).]\xca\xf1\xce;\xef\xf6\xfc\x82\x8c\x8f\'x\xfc\xf1\xc7\xf8\
+\xd5_=\xcb\xf8x\xa2]\xbb\x08\x04\xb2\xc2\xfa\xed\x1f6&\xd8\xef\xf8a\xad\xb7\
+\xa0\xe7\x0f\x12\xdca\xda\xeb\x97AWVd\xbd^\xef\x10\xc8\xeea\x85\xca\xbdN\xa7\
+\xd3\xbc\xfb\xee\xbb\xfc\xf4\xa7o\x0cu\x9f\xf5&\xdc\xbe]$\x1a\x8d2=\x9d\xa6\
+\xd1h\xec\xd8\xf0D-\x8e;\x8b\x9e\xecv\x07\x98\xbb?\xc3\xd4\xd4\x14\x17/\xe6\
+\xc8\xe5r\x03\x8f\xffk\x7f\xed,\xe9t\x9a\x99\xd6\x12\xac\xde\x91#\x8aA\xab\
+\x02\xf6\xabI\x0c:\x8a\xe3N\x8e\xf6\xe8\x9e\xa0\xa2\xfbu\x90\xbe\x05\x99\x00\
+\xc3\xb6m\x92I\xb7\xa8\xbe{\xea5)\xddIr\xd5\xfa\xe0_\xfe\xf2\x97G\xae\xf5\\^\
+^\xe6\xbd\xf7r\xa4\xd3il;\xb9#\x93\xea\xea\tqw\x16-\x8e\xdb\x8c0]\xab#\x91H\
+\x90\xcf_\xeb\xfb\xa5\x16&<\xfa\xe8c\x9c9s\xa6=$p\xd0\x97q\x94\xa5S\xfd\xce\
+\xf1;\x7fP\xdb\xbd\xce\x0f\xf2z\x18\xfcD-\xe8=\x0cjW\x95M\xf9\t\xa4\x1aZ\xa8\
+\x86&f\xb3Y>\xfb\xd9\xcf\x0elW\x98\x9bg\x14/\x95$\x85\xc2*\x00\x99\xcc\x91=\
+\xbb$\x83\xa67Z\x1c\x87d\xd0\xafu|"\xc9\xd4\xd4\x14\xf9|\x9eB\xa1\xff\xe4\
+\x04\xf1\x89$_\xfc\xe2\x17I\xa5\xecM\xd6\xe2\xa0/~\xf7td\xfd\x96\x12\xf0\x9e\
+\xd3\xeb\xfc^\xc7\xf5\x1a\xab\x1d\xf4\xf5n\x08\xe7\xb0m{\x05R\r\xc5\xf4Z\x90\
+\x85B\xa1\x9d\xbd\xff\xdd\xdf\xf9\xed\x81V_(\xea\xaeG\x93J\xb9\x0f\xd5\xaf\
+\x95\x1b\xd7\xc9\xe5rLL\xd8\xa4\xd3\xb3{j\xadl\xcd`\xb48n3\xb6=\t\x10hR\x82\
+\xa7\x9e\xfa\x05\x96\x96\x96|\xf7\x05\xb1\x10\xfd\x84\xc2;\xd1\xacb\x90\x08\
+\x06\xbd\xc6(\x0c\x12\xd1\xedr\xe5\x87m[\t\xa4\x10\xa2\xc3\x82T\xf3Z^\xbf\
+\x9e\x07\xe0SK\x9f\xe6\x97\x7f\xe5\x0b\x03\xda\xb1\x80\x8dY\x8cl\xdb\x15\xc9\
+PT\x90\xcf\xe7\xb9q#O:\x9dn/\xec\xb5\x9dh\xd7z\xe7\xd0\xe2\xb8\x8d\xa4RI2\
+\x99\x0c7o\xde\xec\x1bkt\xb3\xa13\xfc\xee\xef\xfcv\xdb\x9d\xde\x8a\x80\xf9\
+\x1d?h[\xaf\xfdA\xae\x13\xc4\xed\x0eJ\x10\xebo\xd4\xeb\r\xba\xaf^.\xb6\x94\
+\xee\x94i\xcaz\xfc\xd2\x97\xbe\xe4k=z\'\x0c\xb6\xedI\x84\x88\xb5\x9f\xbd\x96\
+h.w\x89hT\x90\xc9d\x10\xc2\xda\xb3\x8bzi:\xd1\xe28\x04\xfd~\xa5\xddX\xe3l+\
+\xd6\xd8\xdfjlV%\xe7\xce\xfd:O,>\xb9)\xa6\xd6\x8b^\xfb\xfb]g\xabb\xd5\xab\
+\x9d^\x82\x1d\xa4\x8f\xc3Z\xc2\xc3\\/H\xdb~mt\xbb\xd8\xea\x07KY\x8f\x8b\x8b\
+\x8b\xcc\xdd\x9f\xf1mW\x08\xab-\x86\xb6m{\x1e\x93n"FXHY\xe1\x9dw\x96I\xa5\\\
+\xf7:\x14\xd5\xee\xf5~@\x8b\xe36\x11\x9fHr\xec\xd81\x8a\xc5"\xf9|\xbe\xef\
+\xb1\xa9\xe9\x19\xce\x9d;G*eo\xda7l2\xa4\x9f\xa8\x8e\x1a\x93\x0bz\x8d~\xe2\
+\x14$V9,\xa3\xfe\x80\x0c:&\x1e\x17\xa4R\xae0\xba\xd9e\xbb\x9d\xd5.\x95$ssi\
+\xce\x9e=\xdb\xb7]euv>6,\xc8Ba\x95\xabW]\xf7Z\xb9\xe1\xdb\x85v\xadw\x06-\x8e\
+\xdb\x800iO\x86:\xc8j\x8c\xc7\x05\xe7\xce\xfd:\xd9l\xb6\xe7~\xe8o%\r\xb2\xee\
+\x82$cz\x1d\x17\xf4\x1a\x83\xce\x19$T\xc3\xfe\x08\xec\xc6\xf9J \x958\xaaDY\
+\xa9$\xf9\x95\xcf\x9f\xf1\xbd\'o2\xc7\xfb\xec\x15H\x80\x95\x955\x8f{}D\'g\
+\xf6\x01Z\x1c\x03\xd2\xef\xd795=\xc3\xfc\xfc<\xeb\xeb\x05\xf2\xf9k}\xdb\xb1\
+\xed$\xe7\xce\x9d\x1bx\xbda\xbf<\xa3XgAb\x8d\xbd,\xc0Qj\'\x83\xb4\x15$\x1b\
+\xdd\xbd\xaf\xd7\xf6~\x96m\xafl\xbd\xaa\x1a\xe8n\xe7\xf8\x89,\x99L\xa6\xe3X\
+\xaf\x05\xa8\x84Q\x15\xf0o,\x10Vn\x1fW(\xacq\xe3F\x9e\xf9\xf9y\xd7\x82\xdc\
+\xc6\xd8\xa3\xb6\x1e\xb7\x1f-\x8e[D\xc5\x1a\xa7\xa6\xa6x\xf3\xcd\xe5\xbek\
+\x8b\xc4\xe3\x82\xb3g\xcf\x92\xcdf\xb7\xe4\xf2\x0es\\P\x86\x8d#\x06M\x14\x05\
+\x11\xedQ\xdd\xe1Q\xea\x1c\xfd\xde\x07ign.\xcd\xd2\xd2\xa7\xda\xe7m$c:\x93/\
+\xc5b\xb1\xfd\xda\xbb\x94\x830\xdd\xeb\xa8\x1f\xcft:\xadk\x1f\xf78Z\x1c\xb7H\
+|"\xc9\xf4t\x9a\\\xae\xffh\x98x\xdc\x8dg\x9d;\xf7\xeb\x9b\xac\x96\xa0\xd6N\
+\xd0Xc\x90\xf3\xb7\xda\xae\xf7\xf8\xad\xc43\x83\xf4\xb5\xd7\xb6Q\xc2\x0b~\
+\x04\xbd\xe7EO\x02\xcdM\xc4l\x14\x8f\xabg5\xc1\x88\xfb\xbc\xda\xda^A\xb6F\
+\x0f\x16\nk\xdc\xbcy\x93\xa9\xa9)7\xb3\xad3\xd7{\x16-\x8e\x01\xe8\xe7\xb2\
+\xd8\xf6$\xa9\x94M.\x97\xeb?\x1aFX\x9c={\x96\x85\x85\x05`4\xd7w\x181\xf0\xab\
+w\x0cZ\x04\x1e\xa4\xdda\xfa\xd8\xeb\xf8a\xe3\xaa\xc3d\xd2\x83\xf6e\x18\x16\
+\x16\x16\xb0\xed\rk\xaf[\x14\x950\xba\x8f\xd5\xd6\xfbNO\xa2T\x92\xe4r\x97H$\
+\x12\xa4\xd3\xe9m\xcd\\k\xd7z{\xd1\xe2\xb8\x05\xe2q\xb7vme\xa5\xc0\xd5\xf7r}\
+\x8f\xb3\xedI\xce\x9d;7\xb0\xfcd+\x99\xe4QDJ\xd5\xf2\x95Jr\xdb\xda\xed\xeec\
+\x90\x918A\xda\xf1\xdb\xd6\xaf\x8d\xa0\x02\x1f\xf4\xb8L&C&s\x04p\xadA\xf7\
+\xb9\x8c\x94e\xf2\xf9k\xe4\xf3\xd7(\x14V\xdb\xc2\xa8\x8e\xe9n\xa7PX\xa3X,\
+\x92\xcdfI\xa7\xd3=\xfb\xaf\xb9\xb3hq\xdc\x02\xeeH\x08\x9b\xf7\xde\xcb\xb5\
+\xdd\xa6n\xd4\x08\x8a\xa5\xa5%\xdf\x0cu\x908X\xd08`/\xfc\xda*\x95$++\xae\xfb\
+\xa7\x04r+\x96V\x10\x0bn\xbb\xea.\x83&\x86\x82\xd6M\x06\xfd!\x88\xc7\x05\x0b\
+\x0b\x0f\xb5\xdfKY\xa1PXk[\x88\xeaQZ_ceem\xd3\x0f\x8e\xb7\xcfo\xbc\xf1\x06BX\
+\xdb\x9e\x98\xd1l\x1fZ\x1c\x07\xd0\xcbUqc\x88\xb3\x00\x033\xd4B\x08\x9e>\xfb\
+\xabC%\x15\x82Xk\xa3\xc4\xd4\xbcE\xe7j4\x88\x1aK\x1c\xe4\x1a[\x89U\x06IB\r;\
+\x1af\xbb\x85\xb7\xd75\xd5\xeb\xc5\xc5\'\xdb\xef\xdb\x8f\xf55\x9a\xd5\x8d\
+\xf7\xbd~(\xbd\xb8\xc3\n\xaf\x03h\xd7z\x8f\xa2\xc5qDl;\xc9\xd1\xa3\x19\xae^\
+\xcd\xf7\xcdP\x03d\xb3\'yh\xe1\xe1\xf6\xfbQ\x13 AF\xaa\x0cS\xe7\xe7\xcd\xa6\
+\xf6\xbaNP+k\xd8\xebou4L\xbf\xf6\xfc\xce\x1f$\x9eAc\xa9\x0b\x0b\x0b\x9b\x8a\
+\xb8e\x9d@\x82\xe8\xa5Y\x95\\\xbd\x9agjjj\xb8\x135\xbb\x86\x16\xc7>\xf4\xfb\
+\x15N\xa7g\x89F\x05\xb9\xdc\xa5\x9e\xe7\x0bs#\x1137\xb7\x11[\x1a\xc6\x82\x1c\
+v\xa4J\xd0\xcc7l$\x14\xba\'<\x0e\x9a\x0c\x19\xd4\xc7\xad\xb8\xe9A\xaf\xd7\
+\xef\xfc u\x8dA\xf7+\xdc\t$f\x07\x1e7\x08Yw\xad\xc7h\xd4\xecH\xf2h\xf6\x0eZ\
+\x1cG\xc0M\xb0\xd8\xe4\xf3yVZ\xae\x91\xefq\x13I\xb2\xd9\x93=g\xde\xe9n\x13\
+\x86/W\x19\x86\xad\xb8\xa0A\xda\xed\xc5\xb0\xaer\xafc\xfc\xac\xd7~\x16\xe2\
+\xb0\xf1\xdc \x9fu*e\xb3\xb8\xb88\xb0\xdfA\x90\xb2L4\xea\x8e\xa2\xd9\xce\xcc\
+\xbav\xad\xb7\x07-\x8e#\xa0\xa6\x9f\xca\xe7\xf3=\xdd\xa9T*\x89\x10\x82\xa5\
+\xa5\xa5M#+\xfa\xb1]\xb1;\xbf\xf7\xde\xf3\x95\xd5X\xa9l\x16\x9c~\xe7\xf6\xdb\
+7\xeah\x98\xa0\xc9\xa7^\x16\xedVb\x9f\x83\x04\xd1o\xbf*\xc7\xda*\x85\xc2\x1a\
+\xd5\xaalMx\xb1\xbd\xe3\xad5[G\x8bc\x0fz\xfd\xfa\xaa\x99\xbe\x8b\xc5b\xdf\
+\xa2ow\x12\x83Y\xce\x9c9\x13H\x04F\x11#\x18\x9c]\x1d\xd4\x96e\x89Mn\xb5\xf7\
+\xdcA\x96[\xd0\xbe\xf4\xdb\xbeUW|\xbb\xeb\x19\xfb}n\xa5\x92\xe4\xd4\xc9\xcdU\
+\x07\xa3\xd0\xacJ\xaa\xd5:\xd3\xd3\xee\xf2\x18:k\xbd\xb7\xd0\xe2\x18\x10\xf5\
+\x8f\xabf\xfa.\x16\x8b}EKJI6\x9b\xed(\xdf\xe9W\x84\xdd\xcfr\x1b\xa5\xb6\xb0_\
+[AF\x9f\xf4\xeas\x90s\x86=f\x98\xf3\x82\xb67\xcaH\x99~mx\xb3\xfc\x873\x99m\
+\x11d\xe5uD\xa3f{\x82\n\xcd\xdeA\x8b\xa3\x0f~V\xa3\xfaGV\xe3\xa8\xfbY\x8d\
+\xca\xa5>s\xe6\x8c\xef\xb4d\x8a~\x16\xca(\x99\xe0a\xac5\x85\xb2\x1aw\xcab\
+\x0bb5\xfbm\x1b5k\xedw\\\x90X\xeb0\x16r2\xb9}np\xb5\xea\xfecIY\x1e:\xe3\xdd\
+\x0f\x1dw\xdc:Z\x1c\x03\xd0\xb6\x1a\xe3\xee\xf8h)\xe5\xc09\x1b3\x99#\x81\x12\
+1\xdd\x04\xb5 \xb7\x9a\xcd\xf5\x0e}\xf3Z\x93\xa3XY\xc3\x8e\x86\xf1\x13\xaba\
+\x85}\x14\xcb\xb0\xdbj\x1e5\xcb\xae&\xad\xd5\x1cl\xb48v1\xe8\x177\xc8L\xdfRV\
+XZZj\x97\xef\x8c\x1aO\x84\xd12\xc1A\xad5\x95\x8cQ#d\x82\x9c;\xc8\xc2\x1a\
+\x1e\xd4M\x0fZ\x838\xec5\x83X\xa1\xbd\xac\xdc\xfb{\xcc\x0c>*\xbdjN5w\x0e-\
+\x8e\x01P\xee\x8em\'\xdb\xe2\xd8\x0f!,~\xe9\xd3K\xed\xf7A-\x96~\x04\xb1\xc8\
+\xfa\xed\xf3\n\x88\xdf\x171h\x968\xa8\xb8\xf4+\xb7\trN\x90\xed~\xc7\x8dbQ\
+\x06Ixu\xff\xcdN\x9d\xda\x9e\xa4L4\xea\xba%j\x1c\xb6f\xef\xa0\xc5\xd1\xc3 \
+\xab\xd1\xb6\')\x16\x8b\\|g\xb9\xe71ss3d\xb3\'9~\xa2\xf3\xcb\xb3\xd5\x91%\
+\x83\xac\xa3aEAY\x8d\xfd\xfa4\x0c\xc3\nL\xaf\xf3\x86\xb1\xb2\x83Z\x94\x83\
+\xda\x19\xa6\xa4HmO&{\xc7\x925\x07\x03-\x8e\x01Q\xf1\xc6\x9b7o\x0e\x0c\x9c/,\
+<\xd4^\xa4\xa9\x1f\xfdb^\xc3Z\x8a\xc3Zt\x96\xd5\xdb\xa5\r\xf2:h\xbf\xfc\x8e\
+\x19T\xa8\xdd\xcf\xca\x1e\xc6\xea\x1e\xd6Z\x0fZ\x8aT*Ifg\xd3}\xaf\x1d\x94j\
+\xb5\xce\xcd\x9b7\xb7\xa5\xadntRfkhql1\xd8j\x0c\xe6R\x03,-}:P\x8da\x10\x11\
+\xdb\xce\x92\x16\xef\xfb~\x96\xe3\xa0\xd7\xa3\xd6k\xfa\xb59h\x7f\x90\xda\xcd\
+Q\xda\xd9*~\xb5\xa1\xa3P\xad\xeaX\xe3^E\x8bc\x00\xd4R\x08\xd1\xa8\xd9W\x1cS\
+\xa9$\xe9\xf4l\xc7\x88\x98 \x16KP\x8b,\xc8\xa8\x93\xa0\xd7\xf4\xa2\xa6-\x0bJ\
+P\xf1\xda\xc9:H\xbfs\x87\xbd\xde\xa8\xfd\x8b\xc7\x05\x93vr\xcbE\xdb\xf1\xb8 \
+\x1a\x15}gE\xd2\xdc9\xb48\x12\xdc\xfd(\x16%\xcd>\xbf\xf4RV\xb0m\xbbC\x1c\xb7\
+jA\x069\xae\xdb\xa2\x1b\xc6JR\xab\xe4m\xb7e\xe5\xd7\xaf~\xc7\x04aP\x1cp\xd8\
+\xcfz\x98Xc7I{2h\xb7{"\x84\xd5N\xc8h\xf6\x1ew\xbd8\x06\x11F\xef|{\x83\xe6\
+\xde\xcbfO\xf4-\xfc\x86\xfe%,[\xb1\xb6F\x11b\x95\xb9.\x95d\xcf~\x04u\xa3\x83\
+\xf4kPRf\x14\xa1\xda\xea\xe8\xa2QF\x01\xd9\xb6\xbd-\xf30\x16\x8b\xc5\xf6Z3\
+\x9a\xbd\xc5]/\x8eAP\xa3!\xa2Q\xb3\xaf\xe5h\xdb\xc9\xf6d\xa8^\x86\xa9e\xdc\
+\x8a5\xe3w\xcd\xa0_\xf6x|\xf3r\xa4A\xfa7l\xbd\xa1_\xdfG)\x15\xea\xc7(\xb5\
+\xa1\x83\xda\xea>\'\x16\x13[\x1e%c\xdb\x93$\x12\x89M\xeb\xcch\xf6\x06w\xb58\
+\x06u\xa7\xa5\xac \x84h\xafI\xecG<\xee\xae\x13\xa3\xc6R\x8fR\xcb\xd8\xdd\xde\
+\xa0\xf3G-\x9fY[+\xf8\xb65j\xdc\xb1\xdf\xbe \xe5;\xfd\xd8\xea\xf9~\xe7\xf4\
+\xea\xdf0\xa2\xde\x9d\xed\x1f\x85\xedJ\xea\xf4Cg\xacG\xe7\xae\x16\xc7 \xa8\
+\xa0\xbbr?{\xb9Rj=\x10\xb5`\xd2(\xb5\x8c\x83\xd8\x8e\xfa\xbc^t[\x8e\xc3\xf4u\
+\x94\xebm\xcc\xc8\x00\x00 \x00IDAT"\xeaa\xcf\xf7\x1e\xb7\xd5Q<\xbd\xda\x0f\
+\xf2Y\xa9}*V\xbb\x15l\xdb\xa6X,\xf6\xf5F4w\x8e\xbbV\x1c\x03[\x8d\xf5\r\xb7z\
+\xd0\x8c\xcd~+\xc9\xf5\xabe\xecu\xdcN\xd48\xf6\xb3\xf4T\xb6z\x94\xba\xcb\xee\
+c\x83\xf6};2\xef\xc3\x84\x01\x06\xf5\xaf\xbb\xdd 5\x92[\x9dIG\xad\xe1\xb3\
+\x9d\x13Nh\xb6\x8f\xbbR\x1cGq5\x82\x8c}\xf5\x13\xcf\xa0\xf1\xafa,\x98\xed.\
+\xfbP\xd9\xeaa\xeb.\x07\x8dP\xe9GP\x11\xdf\xee,\xfa0\x96\xf4N\xf5\x01\\\x8f$\
+\x95\xb2)\x14\nz\x1e\xc7=\xca])\x8e\xc3\xa2\\\xa8A\x96\x82\xdd\xa7\xbccXk\
+\xb0\xdf\xbe\xed\xfe\xb2v\xd79\x06\xb5\x12\xfb\xf5c\xabq\xc5a\x18%\\1l=\xa6\
+\x1f[q\xabCQ\xc1\xc4\x84\xad\'\x9c\xd8\xc3\xdcu\xe2\xb8\xbe~x\xe4\x00\xb5+\
+\x90\xfe\x19Jw\xe6\xeft\xcf/\xcc0\xf1\xac\xadn\x0f\xba_\xd1]\xe7\xb8\x1d\xe2\
+\x1b\xd4\xd2\xec\xbe\xde(\xa5>\xc3f\xfb\xfb]?\xc8ua\xeb1G\xdbN\xb6\x96\xc5]\
+\xd5n\xf5\x1e\xe5\xae\x13G\xf8\xd9PG\xab/N\xa1P\x18X\x8f\xe6\xfd\xb2l\xd5R\
+\x0c\x12\x93\x1b$\x04\x83b\x85^\x82\xd6\x1a\x06=\xaf\xbb\x8f\xbd\xfa\xdb\xeb\
+\xf8 \xb1\xda\xa0\x9f\xe5\xa0\xcf!H|\xd1\xefZ[\x11\xc7tz\xd6]\x83H\xcf\xc6\
+\xb3g\xb9\xab\xc4q\xd4\xb2\x06!bm\xb7\xba\xd7\x17B\x88Xk\xa1$w\xff0q\xc3abw\
+\xc3\xd4\t\xfa\xf5\xa3\x97\x1b\x17\xb4\xae\xb1\xfbu\xaf\xf3\x86\x15\xc0Qj9\
+\xbd\x04\xb5\x0e\x83\n\xf8N3=\x9d\x1e8/\xa8\xe6\xcerW\x89\xe3\xb0\xb8\xb5\
+\x8b\xee\x92\x07\xb6m#e\xb9g\\Q\x08A\xcc\xc7\xe5\x0eb\rnW\xec\xae\x1f\xea\
+\x1a^q\xf7.\xae\xb5\x1d\t\x8a\xed\x1c\x99\xe2\xd7\xe6V3\xe6\xea\xb8Q?\xd3\
+\xed\xfc[\xb8\xe3\xf4\xaf\xe9d\xcc\x1eF\x8bc\x0f\xe2q7\xbe\xd8\x9d\x84\xf1+\
+\xd7Q\xc4b\xfd\x136\xc3\x8cl\xe9w\xceV\n\xa3\x83X\x8e\xa32J\xb1\xfa0mnW\xc6|\
+\x98\x114\xfd\xc2\x18\xa3\xba\xd5j\xec\xbd\x94\x15\x1do\xdc\xc3hq\xf4A\x98nm\
+\xa3mO\xb6\xadF\xe5V\xf7Z\x83\xda\xb6m\xa2\x01GM\x0cS\xcb\xd7\xef\x98~\xf1\
+\xc5Q2\xb8\xc3\x9c?L,\xb2\x97K;\xaa\xc8\x0f\xb28\x83\xde\xfb\xa8\xb1\xc6\xad\
+\xfe\x90\xa4\xd3i\xae\\\xb9\xa2\x8b\xbf\xf78Z\x1c}\xf0\x8e\x82\x11\xc2-\xb9H\
+$\x12m\xa1\xec&\x95J\x92\xcdf7\xed\x0b\x9a\x94\tb\x1d\x06\xf9\x92\x0e\x137\
+\x1c\xd4\xafA\xe7\x0f\x12\xbc~\xfd\xf5;\xa6\xdfy\xc3Z\x9e\xa3&m\x86%:\xc2\
+\xc4\x13\xf1\xb8h\xcd\x0bzM[\x8d{\x9c\xbbF\x1c\x87I\xc6\x94JrS\x161\x1a5\x91\
+R\xba\xcbr\xf6\x88\x13u\xbb\xac\xc3XL\xdd\xecVb`\x18z\t\xdeVb\x8d\xbd\xb6\
+\x05ms\xab\xd9\xf4 \xed\xf5:o\x94\x89jm;I\xb5Z\xa7PX\xdb\x93\x7fc\xcd\x06w\
+\x8d8\x0eK\xa9\xe4.\xbf\x9a\xcb]\xe2\xc6\x8d<++\x05\n\x85\x82;\x92d\xa2\xf70\
+\xc2a-<\xef\xf5z\xf5c\xd01\xa3\xd2=\x1b\xf8\xa8\xd7\xdaJ\xacq\x98\x92\xa7~\
+\xf1\xc5 \xed\x0c\x93%\x1f$\xce\xa3\x14o\xc7\xe3\x82L\xe6\x08\xef\xbd\x97\
+\xeb\xdbg\xcd\xde@\x8bc\x1fJ%Ii}\x8d\\\xee\x12\x85B\x81\xabW\xf3\xac\xae\x16\
+F\x1a\t3\xe8\xd8 \xa5;\xbd2\xb2Ac\x85\xdd\xd7\xe8\x9eY&Hm\xe0(\xa2\x194\xcb\
+\x1c\xa4\xbdQ\xeaG\xfb\x1d\x1b\xe4s\xf7\xbb\xa6\x94\xfe\xab8\xf6CU>\xe4\xf3\
+\xd7\xb40\xee\x03\xb48\x0e@\xd6\xdd\xacb>\x7f\x8d\xf7\xde\xcb\x91\xcb\xe5|3\
+\xd6BXLN\xf6\x8e9\x06\xcd\xaa\x06\xfd\xd2\x04)\x8c\xee\xe7\xaa*\xfae\\\x83ZQ\
+\xdd\xc7\x04\xb1\xc6F\x19\t\xd3\xef\xfaA\xdb\x1d\xe6\xbc~\xd7\xacTd\xa0\xf5\
+\x84\xbcmd2GZ\xa2\xaa\x0b\xbf\xf7\x03Z\x1c\x03R(\xacQ(\xac\xb2\xb2R`n\xaeS\
+\x1c\x95\xc0\x94\xcbr\xa4\xd1\x1cAF\xc3\x8cbi\x0c\xb2\x1c\xd5\xac0\x83\xda\
+\x0f\xd2\xa7a\xad\xb1a\x8a\xd9\x87\xf9\x11\x19$\xe8\xdb%\xba\xab\xab\x05\xa4\
+,\xf7=\xc7\x8b[\x16&\x86\x12T\xcd\x9dE\x8bc\x00J%wb\x86Ba\xad\x1d/\x1a5\x98\
+\xee\xf7\xe5\x1cFL\x82\xc4&{\x9d\xd3\xcbr\x8c\xc7\x83\xaf!\xb3\x13\xa3IF\x11\
+\xfeab\x8d\xbd\xb6\x8f"\xba\nw\\t\xb0\x19\xbc\xe3qA:=K\xa1\xe0\n\xaaw|\xbe\
+\xfa\xec\xe3q\xe1\x96\x90\xe9\xa2\xf0=\x83\xfeS\x0cI.\x97\xc3\xb6m\x16\x16\
+\x16\xb8p\xe1B\xfb\xcb$e%P\x0cj\x90\xdb;L\x01\xb3\xf7x\x15\x8f\xebg\x91\xc5\
+\xe3\xa2\xa3\x8f\xfd\xb2\xeb\xdb!|A\xdb\x19\xe5s\xe8u\xeeV\t\xda^\x10\x0b\
+\xf0\xe8\xd1L\xc7\x90\xd2B\xa1\x80\x101\xa4\x94\x08\x13\xe2\x13I\xdf\xd9\x9e\
+\xa4,\xb7\x85w\xab\xb1\xc9\x89\x89\x84\xb1\xa5\x06\xeeb\xb4\xe58\x04\xca\x82\
+\xbcp\xe1\x02\x00\x8b\x8b\x8b\xed/S\xb7\xd0\x8c\xe2\x12\x0f\x1b\x83\x0c\x92\
+\x05\x1f\x84\x9f\xe5\x18\xb4.\xb2\xfb\x98ac\x8d\xc3\xb8\xc6\x83\xce\xdd\xeeX\
+\xe3\xa0\xf6._\xce\xf5\xb4\xd6\x8f\x1e\xcd\xf0\xc8#\x0bd2\x99v\xe8BM\\\x92\
+\xcf\xe7)\xad\xafm\xaaqT.\xba;\xbb\x93\xbb\xbco:\x9dfnn\xa6\xc3\xba\xd4\xec\
+\x1e\xdar\xf4!\x1e\x174\xab\xbdgh.\x95$\xcb\xcbo\xb1\xb0\xf00g\xcf\x9eeyy\
+\xb95\xc3\xcap1\xb8^t[\x84~\xdb\x83\x9e?\xe8<\xd5\xe7A1@o\x1b\xbd\xfa7\xac+;\
+\xc8R\xed\xb6\x86\xfb]kP\xdf\x82\xf4\xdfo{\xafm\x97.]\xf2\xedo:\x9d&\x93\xc9\
+P(\x14X^~\xab\xc3\xf5\xee\xfe\x9fZYY#\x1e\xaf\x00\xea\x985l;\x89mO\xba\xd6ek\
+\xd0A:=\xdb\xce\x8eKYv\xe7\xdf\xf4\x11X\xcd\xf6r\xd7\x88\xe3\xc4D\xc2\xf0+\
+\x04\x8f\xc7\x05\x1f\x9b\xa9\xf0h&\xc4\x03\xf3\x10\xb2\x1a\x80\xe4\xc6Ga\xfe\
+\xcb%\xf8\xe9{\t\xa4\xacl\xb6T\xd6\xd7\xb8p\xe1u\x16\x16\x1e&\x9b\xcd\x92\
+\xcf\xe7\x07\xbaZ~"\xe0\xb7m\x90\xc8\x0c\x12\xc9~\xc2\xd1\x8d\xb2\x1c\x87is\
+\xa7\\\xd9a>\x0bE\xf79\xa3\xc6\x1a{m\xefu\xec\xf2\xf2\xdb\x9b\x8eS\xf3y\xe6r\
+9\n\x85\xd5@\x02\xd6\xfd7iV7b\x99J(7\x86\xafn\xf4\xc5\xad\xc1\xf5\xb7^5\xdb\
+\xc3]#\x8e\xdd\xa4\xc6\xe0\x0b\x0f\x1b|\xf6\xc9&\xf7MEH\xce\x86\xb1D\x9d{\
+\xe3\x11\x00*Q\x87j\xa1\xc9\xbb\x97\xca<\xffR\x83\x7f\xfd\xfd\xce\x1a;Y\x07\
+\xb9\xe2\n\xe4\xe3\x8f?\xc9\xa7>\xb5D\xa1P\xd8\x94d\tb\x8d\x0c\x1b\xe3\xeb>\
+\'\xa8\xa5\xd8\x1ds\x04\xd7rT.\xdb\xb0\xfd\xe8w\xdda\xacWo\xff\x82^k\xd09A\
+\xae7jl5\x97\xcbu\xfc\x10*a\x04\xdc\x1a\xc6-Xu\xb2\x0e\xd47\x12h^\xa1L\xa7g\
+\x99\x9eN37\x97&\x9b=\xc1\xc5\x8b\x19~\xf2\x93\xd7\xb9z\xf5:\xc2D[\x92\xdbLx\
+7\x96\x87\xdc+XV\xf4\xf7+\x95\xeaW?\xb5\x10\xe6\x7f9\x17\xe1\x89\x93!\x8e\
+\xcc4\xb9\xef>\x83\xf4\x84\xc1d"D\xc8\x84\x90\t\x11\xc3@\xc4B\xd8ix\xe28\xcc\
+\xa6\x1a\xbc\x95sX/u\xb6Y.WXY\xf9\x90H$\xc2\x83\x0f>H:\x9d&\x95\xda\xa8w\x8c\
+D6\xff\xfetoS\xefK%\xe9\xfb\xda\x0f\xef\xbe^\xeduS*I\xeau\xf7\x1b\xd4h\xd41M\
+\x93D"\xd1>~P?\xba\xfb\xd4\xbd=\xc8\xbeA\xf75\xe8~\x83\x9e?L\xff\xbd\xf8\xb5\
+\xdf\xbd\xed?\xfe\xc7\x97y\xfe\xf9\xe7\xa9\xd5\xea\xc4\xe3\xee\xb4v\xa6\x19!\
+\x9f\xcf\xb3\xbe~\x9bzs\xe8\xdb\xebI\xadV\xa7V\xabs\xeb\xd6m\xd6\xd6\n\xc4b\
+\x02\xd34\x99\x9e\x9e\xe1\xbe\xfb\xe61\xcd\x08\xb5Z\x95\xdbeI\xad\xd6\xa9\
+\x8e:\x19\xb35\xee*q\x04\xf8;\xffU\xfa\xab\xff\xedb\x89\xd9)\xb8\xf7\x90Cj*\
+\x84=\x19&\xd4\xe3\xfb\x161\x0cD$\xc4\xc7\xe6\xe1\xd4\x03a~\xf2v\x93\x8fnu\
+\x1e\xe3\xd4*\\\xbb~\x9d\x95\x955\x0e\x1d\x9a"\x99\xb4\x19\x1f\xef\xbd\xc6u/\
+z}q\x07\tB\xaf\xfd~bP.Kn\xdf.\x02`\x9a&B\x08j\xb5z\xcfk\x0f\x12\x93~\xdb\xfd\
+\xf6\xf5\xbb\xaf ?\x0e\xfd\x84\x7f\xd0\xf1A\xce\xf5\xbb\xbe\xf7\xbc\x95\x95\
+\x02\xcf?\xff/y\xf5\xd5\xef\x030>>\xc6\xd4\xd4!n\xde\xfc\x90\xf5\xf5\xdb\xbe\
+\xedo\x17\xb5Z\x9dJ\xa5L<>\x86\x94\x92\x89\x89\t\xe2\xf1\x18\xf5z\x83b\xf1\
+\x16\xb5r\xa70[V\xf4\xf7w\xb4C\x07\x9c\xbb.[\xfd\xe4\xa9<\xf7\x8c7\xb0m\x87q\
+\xdb j\x8d\x0f<\'l\x81%B<\xb6`\xf0\xcf\xbel\xf2\xd0\x91\xcd?\xc8RVx\xed\xb5\
+\xbf\xe4\xf9\xe7\x9f\xe7\xfc\xf9\xf3\\\xbd\xba\xe1vm5.4\xaa;\x1a\xa4\xceQ\
+\x1d7L\x1f\xfb\x1d;L;\xdd\xfd\x1b&\xae\x19$3>\xec\xb9~\xfb\xba?;)%\x17.\xfc\
+\x18pk\x12U\xf2de%X\xcd\xe3V\x91\xb2B\xa1P\xa0X,\xf2\xee\xbb\xefr\xe3\xc6u\
+\xc0]v\xa1\xdf\x98\x7f\xcd\xf0\xdcU1\xc7\x7f\xf1l\xd5I\x8c9$\x93\x93L\xc4\
+\xd7\xa8\x0b\x83\xf1P\x89F\xc5\x15\xc0~\xc4b\x06\xd1\x8a\xc1C\x19\x87\x7f\
+\xf4\x9b&\xff\xf8\x8f\xeb\xfc\xf8\x92\x9b\xdfQq"!,\xdex\xe3\r\xfe\xcd\xbfy\
+\x01)%KKK\xcc\xcd\xa5\x03\xc5\xe5\x82\xc6\xeb\xfa\xc5\xc9\x86\xads\xf4;\xa6W\
+\x1b\xbd2\xbc\xbd\xda\x19\x86\xa0\xb1\xc6 }\x186C\xad\xf6Q\xbdA\xf3\xca7)}\
+\xf8\x13\x8a\xad\xed\xeay\xa5\x11%\x1a\xae\xb2\xd2\x88R\xafJ\x96\x0e\xff\x88\
+\xdb\xd7\x0c\xde_\x9bh\x8f\x95\xdeM\x84\x10\xad\x82\xf2\r\xc1\xd6\xab\x18n?w\
+\x95[\xfd\xdb\x9fk|5a5\x99HU\x89\t\x08\xd5\xc1\x8a\xb8\xc6s/\xb7\xdaK\xc8\
+\x04\x11\x0bq(\xe1p\xe4\xbe\x10\xef]\x8b\xf2\xc1\xcd\x8d8O\xb9\\\xc10\x1c.]\
+\xca\x91\xcf\xbb\xbf\xe8SSS\x1dc\xaeGq_\xfb\xc5\xf2\xfc\x8e\xeb\xe7f\xd7\xeb\
+\xf5\xf6l<\xca\xad\x0e\xd2\xfe \xb7\xbd\x9f\x8b\xdc\xafO\x83\x08\xe2\x16o\
+\xf5\xdc\xc6\xf5\x97\xb9\xf1\xbd\x7fH\xf9\xea\xffM\xbd\xf8&\xb1\xf02\xa1\xfa\
+[\x18\xb5\xf7\x08\xd7\x7f\x8cY\xbf\xd4~\xb6\xf89\xa7\xef\xaf\xf0\xe4\x890S\
+\xf74Y\xcf\x87\xf9\xd9\xe5\x0f\x87\xbe\xafQ\x88\xc77f\xa7O$\xdc\xb0\x8d\xaa\
+\xa1\xbcy\xf3C\x84\x10\xdc\xba\xb5\xe1\xdak\xb7zk\xdc5\xe2\xf8\xfc\xdf\xb7\
+\x9d\xf1\xf0-,1ITT\x88F`<\x1e\xa6\xd2\x88c\x86j\x81\xc4Q\xa1\x04\xf2\xbeY\
+\xa7\x87@\x1a\\\xb9r\x85+W\xae\x10\x89\x98\xa4\xd3i,K\x04\xfer\x07\x11\x92a\
+\xe2|\xde\xed\xab\xab\x05L\xd3l\'d\xfcb\x8e\x83\xda\xf7;\xc6\xef\xfc^q\xbb~\
+\xf7\x17\xe4\xde\x87I\\\r<\xbf\xf0\x1ek?\xf8\x074J\xdfg<\x19\xc2\x9e\x0c\x11\
+N\x809i`\x8e\xd70\xc7=\xcff\x95h\xa8\xceX"\xc4L\xca`l"\xc4\xcb?Z\xe3r~\xe4\
+\xd5~\x87b||\x8ctz\x16!\xdc\xa4\x8cr\xaf\xa5,\xb3\xbe\xf2\x11F\xd8\xc40\x0c\
+\xc2N\x9dxB\'c\xb6\xca]!\x8e\xff\xea\x7f\xaa:c\x91u\xc6,\x83X\xa4\x81\x15k\
+\x126\x81P\x82x\xbc\x84\xd3\x00\xa7\x11\xcczT\x88X\x88\xf9)\x83\x13SM\xde\
+\xbfap\xf9\xc3\x8d/\x88\x12\x9bb\xf1\x16W\xae|@\xadV\xe7\xe8\xd1\x0c\x93\x93\
+\xf6\x96\x85\xaf\x9b\xa0\xd6\x9bz}\xebVq\x93\xe5\x18\xd4\x15\x1eV\x88\x06%p\
+\xfc\xfa7l\x96y\x18\x91\xf4\xbbF\xf3\xf2\xbf\xa4r\xe3ybc\xe3\xc4\xe3u\x9a6\
+\x84\xc7C\x84b\x82P\xa8A\xc84\xda\x0f\xc7\xf8\xff\xdb{\xf3 I\xae\xfb\xbe\xf3\
+\xf3^\x9eU\xd5=\xdd=\x18`zp\x10#\x12\xe2\t\x8a\xe0a\x1e\x12\xb5\x80\xd7\x1b\
+\x12$\xcb&\xe4\x90(j\x15\xd2r-)\x04\xca6\x82\x92\xb9^\xac\xcc\x10gw\x1dk\xd8\
+k;\x10\xa468\xb6)\tZ\x980\xa4]\x9b0\xc5\x10\x87\x16\xb5\x82l\x89\x1crehV\x02\
+\x06C\x12"\x06\xc41=\x07\xa6\xab\xaf\xac\xbc\xdf\xfe\xf1\xf2eeUguWu\xf7t\xcf\
+\xf4\xe47"\xa3\xaa\xb3\xb22\xb3:_~\xf3\xfb;\x1f(_/V\nk\xdd\x94G\xbfr\x07\x17\
+/^\x1a\xfb\x7f\xb2\x1d\x08!\xca\x94\xa1K\x97.\x91\xa6iYj(,\x9b\x9b\x0f\xae\
+\xf1\x0f\x7f\xca\xe2\x87\xbf\xcf\xe6\xf7\xff\x8b\xd5\xa8\xc6m\xe2\xba\x08\
+\xc8X\x8e&.\xe1\xce"\xdc\xa4\\/\xc4\x1aA\xd0\xc6\xf26\xf79\xd6\xa1\xd5\x12\
+\xbc\xe6M\xf0w?$\xd7\x05i\x82 ,[\x9d\xfd\xf6o?\xce\xa7?}\x9c\xd3\xa7\xcf\xac\
+\x0b~\x8c\x1b\xdc\xd8(\x98R\xf7\xbe\xee\xb3 \x08\xd7\xb5(\x9b\xa4\xc4o3\xdf\
+\xe0\xa4\x9fMr\xee\x9baTPe\xb3\xf3_}\xe1w\x89#\x88\xa3\xa1\x14\x84$\x02\xc7\
+\x1bX\xaci\x1f\xcb\x17\xe4\xae\x83h\x1d\xe5[K\tY\xf7\xcc\xa6\xe7\xb6S\xf0}\
+\xaf(C\xec\x16\x952\xbd\xd2\xd7\x98\xc7!\xf7\xbcI\xf2\xd67Z\xfc\xe8\xfb;\xfc\
+\xf9\xff\x9d\xee\x8e\x9c\xdd\xc7\xd8\xf7\xe4\xf8\xd8\x03\xb1\xf2d\x8e\xe7\
+\x08|\xd9\xf7\xc7T\xa3\xd4Y\xa4\x97I\x91{\x8a\xd7\xccY\xdc9\xaf\xf8\xd8\x07\
+\x1c\x0e\x1e\x1c\x8c\x16\x9a$\xdenw\x91\x13\'Np\xfc\xf8\xa7y\xea\xa9S\x03\
+\xdbl\x14e\x1dUj\xb7]T\x9b\xdcn\x16)\xae\r^\xd4\xbc\x1f\'H\xb3\x93\xd5\x1c\
+\x1b\xedkRb\x8dz\x9aG\xb2\x08d\x17\xb2\xc5\\/+\xa1&\xc9\xeaR`-?\xcb\xc2Y\x87\
+ \xde\xc6\x8f\x18\x13\xbe\xad\xe7)\x9a\x9f?\x02P\x92\xa2)#\x0c\x82\x90\x1bg\
+\xe1{\xef\xb4\xb9\xb5\x93@k\x8d\x99\xc3\x0e/\xfeA\xaa\x1a\x92\xdc:\xf6=9\xb6\
+\xbd\x0c\xcf\x11x\x85\xc5\xe5\xb5\x04\xae\xa7\x95\x82R\x1d_{N;\x8d`y\xa9hn\xa2\xeb\
+\xfc\xcdb\xa6\x11\xfe\x81\xb7\xba\x1c:\x98\xe0\xcf\xe9\x07v\x92\xdb\xa5\xd2\
+\x9d9\xec\xec\xca9\xee7\xec[r\xfc\x9d\xbf\x7fT\x19\xd5\xe8\xb7\x15-\x7f\x90\
+\x88\\o\x1aW\xea\x81dT\xe3\xa4\xea1\xf7\x142\x12\xe4\x9eB\xf9\xe0\xce\xc1\
+\xdfx\xaf\xc5{\xee\xb4j\xb77\x04\xf9\xc7\x7f\xfc\x9f9~\xfc8\xbf\xf5[\x8f\xf0\
+\xfc\xf3g\xd7m7\xae:\xab\xdbf\xa3mG\x91K\xb53\xcf$\xc7\xd8l\xbbqL\xf0q\xfd\
+\x8eUL\xea\xc3\xdc\xec\xbdyh\xae\xf3;\xd2\xb7\x0e\xe8)\xc2\x1e\x84=\x08\xba9\
+\xcb\x8b9\xcb\xe1\xee(G\xd0\x0fXC\x88\x06\xed\xb6O\xdb\x83\x0f\xdf\xbd\xca\
+\x9do\xb584?8\xee\x92\xbc\xff\x94\xfe\xeag\xa2F=N\x88}\x19\xad\xfe\xe2\xaf\
+\x84\nu\xb14\xa7\x855\x87c\x87\xa5I\r`\xd9\x1e^+\x998J]\x85\xc8D\xf9j\xf9\
+\xe0\xda\x82XX\xbc\xf6\x06\xf8\x8b\xe7\xb2ue\x86\xa0K\r3%\xe8v\x17y\xee\xb9\
+\xbf\xa4\xdb\xed\xe2\xd867\x1d\x9e\xdf\xd1(\xf6\xa8\xa8\xafm\xdb\xd8\xb6\xfe\
+\xdb\xbc\xaf\xa6\xf3\x8cs\x8cq\xa3\xd6\xdb\xc9Q\xdc\xe8x\xdb\xad\xd3\xae\xee\
+w\xf9\x1b\xbfM\xba\xbc\x80\xed\xeb\x0c\x06\xcb\x9a\xc2q\x86,\x8cL\xa0lH\xd1\
+\xd7{\xa5\'Y]\xc8\xf9\xea\xd3\x19\xcf\x9d\xb7\xe8\xf5\xf6fN\x18\xc7\xb1y\xff\
+\x9bS\xfe\xf6\x07\\^\xfb&\x90\xbe$\t\x15v\xaaH\x04\xd8y\x86J\xc1v\x14i*\xf8\
+\xf4\xef\xc8&\x82=\x01\xf6\x159~\xe9W{\xea\x87\xdf\xa6\x8e\x85\xb1\xc0\xb1\
+\x15\xb6%p\xfcYZ~\x17\xafU\xa8D[\x97\x02\x82\x8b\xcc\x93-\xf9\x1a\xeb`\x08\
+\x12r\xa6\xa4\xe2P\xc7\xe6?\x9fq\xd65\x03Hs\x9d\xea#\x84 \x0c{\x9c:u\x8as\
+\x0b\xe7\xb9\xe1\xe0\x1c7\xdcp#J\x8d\x97\xcc=.)\x0c\x93\x8a\xe3\xd8\xa8BCTI\
+\xb2.\xf02*-h;\xc9\xdd\xe3\xe6(\x8e:\xde\xa8\xdf\xb6\xd5\xfd\xae\xbe\xfc\'\
+\xa4\xab\xa7\xb0\x1d\x81e\x83\xed\xa48\xceP\xe6\x81R\xa4)\xf4RA\xb2\x9a\x93\
+\x9c\xcfx\xb5\x0b\xcf\xbc$9w1 \x8e\xd9\xd1f\x13\xe3\xc0\xb7\xa1\xd5\xe9\xf0\
+\x8b\x7f\x0b\xee|MNkN\xa2R\x85\x8f"D\xe0\xa59a*\xb0\x1dP)\x08\xe0=G\x0e\x1e\
+\xfb\xf7_\r\x1b\x82\x1c\x13Wm\xf9\xe0c\x0f\xc4*wnB&\x17j?_\x05:|7\x82o\x91%\
+\x19\x96c\xf1j\xd7"wn\xe2\x06o\x01\xbf=\x07,\x96\x11j\xb7B\x82\xae\x14D\x996\
+\xa3\xc7)\x1d\x9c\x04\x07g\x05A\xa8x\xfb[\x05?sw\xcc\xf1/\xd6oW5\x8f\xbe\xfc\
+\xe5/\xb3\xba\xba\xca\xfd\xf7G\xdcs\xcf=\x1b\xb68\x1b\xb5~\xa3\xb2\xc2alV\
+\x1eXw\x8cq\xca\xf5&=\xf6F\xbfc\xa7\xf7[\xf7\x19\x80k\xc5T\x1b-\xb9R\xac\x1b\
+\x13m!\x08\x94\xa2\x85"\x00"\xa5\xc9\xf3\xd6NB\xdb\x9d\xe84w\x14\x1f\xb9{\
+\x99\xf7\xdca3wD\x96\xa4\x08@\xa8\xc0\x87v\x04\x01\xe0\xa3 \x84P\x9c\x07vp\
+\xb0\xefs\\5\xe4\xf8\xe8Gz\xcar\xac2\'\xd1\x939p\x0e1=\xe8G\x89\xc2\xd7\xa3\
+\xf8\x063@\x96|\x0b\xcbQ\xe4\xce\x11,\xce\xe3\xfb\x02\xdf:\x87\xebjbl\xf9\
+\x02\xe9\xa58\xb2\xaf\x04\\o\x9a(c[Q\xeaQ0\xfe\xa9[\xe7%V/\xe7\'\xee\xb1\xf9\
+\xb3\xe7%_;3:\xfa\xea\xdb ]\x9fS\xa7\xfe\x8c\x87\x1ez\x88\x17^8\xcbO\xfc\xc4\
+\x87\x06f8\x1c\x87\x98&%\xcc\xad\x12\xe98\xb5\xd7\x93\x92\xf6f\xa9C[y\x00\
+\x98}\x8d\xfa\x8eYw9\xd3\xec\x16\xf5\x14\xae\'\x88s\x1d`+\x8f\xaf*\xae\xba^\
+\x87 Z\xc1\x13\n\x10\xcc\xceY@F\xdb\xdb\xfd^\x8a?t\x97\xe4\xfdwY\xb8\xc5\x14\
+\xea\x86\x18\xc3\xb0 \xf3P\xd1\x16\x9a \xf3b\x8c\xb7\xe3\xa6hf\x12\xec\xb9Y\
+\xfd\xe8Gz\xea\xc7\xbfW\x1d\xc3\x9f\xa7\xe3,\xd3qa\xe6\x80\xa2=#\x99q\x1d\
+\xa6\xa62,1\xc3\x8c\x97\xd2q%\x9e\x7f\x1e\xc7R\xf8\xaeB:\x12\xdb\x16x\xf6\
+\x1aS^N\xdb\x9f\xc5\xb2BZ~\x84c\xeb\x81\xe0\xba}?\xa3\xebM\xe3Y\x01^k\xb2r\
+\xc1I\xa1lH[\x12\xc2\x9c\xa3\xb3\xf0\xa5?_o^\x1bT\xcd\xecK\x97.q\xf6\xecY^z\
+\xe9Eff\xe6\xb8\xe1\x86C\x13\x9b\xb0\xe3\xf8\xe6\xb6S\xbe7\x8e\x89\xbb\x93\
+\xfe\xc1\xed\xeek\xf8;A\x10\x16\xfd\x11WY\\\xec\x92\xbc|\x02;{\x96,\x05\xcf\
+\x17\xb4]9\xe0\x87v\x84@\xc6\x82\x95D\xa1\xa2\x08\x11A\x96B\x94JD&\xf9\xc6\
+\xcbpaI\xa1\xd4\xee\x99\xd6o\xfb.\xc1\xdf\xf9\x11\x87[\x0f\xe7\x1c9d\xd1\xb3\
+\x05N\xaa\xa0\x18b2\x16d\x16$\xc5\xf9\x8bL\xe0\x08\xc1\xd9\x17\xee\xe0\xdf\
+\x7fm\xa91\xab\xc7\xc4\x9e\x92\xa3Q\x8b\x9di\x98\xf1\x96\xe9t`zZ\xe0\xd8\x02\
+[\x80\xd5V\x08[\xe0\xfa\x11\xd2\xcb\x81\x0c\xc7\x16\xf8\x9e@\xb8\x12W\xcc\
+\xe09\x013\x9e\x83\x92\x19-?\xc2\xebH\x84-\x10\xb6`jZ\xfb\x91@\x13\xa3\x10kX\
+B\\Qb\x04M\x8e\xd6\x94\x85\x14\n\x85\xc0J\x13\xfe\xf4\xb9\x8d\x83\x85eS\xd3\
+\xc5K\xfc\x7f\x7f\xf1\x0c\x0b\x0b\x0b\xb4\xdb\xed\x81\xde\x90[\r>lT\xe7\\\
+\xb7\xed8\xd8N)\xe1v\x03)\x93\xfa\x1a\x8dz\xbc|Y\xd7"/-u\xcbJ\x93\xd6\xeaI\
+\xe2\xeei\xbc\x96\x1e+q\xa2hOI\xb2\x08BK!cA\xe4*T1\xc3F\x96ir\\]\xceI2I\xb0\
+\x92\xf1\xfc\xab\x10\x84\xbbC\x8e\xb7\x1d\x82\xfb\xff\x1b\x8b\xb7\xbfQ1;\'I}\
+\x10\xb6\xc0$\xeb\x88\x10R\x0f\xbcX\xe0\xd9}\xa5\x98E\xf0\x9d\x97\x0e6\xe48\
+\x01\xf6\x8c\x1c\xff\xd5\x03\xb1\xea\xf8\x82\x96\x93s\xc0\x05\xdb\x9d\xa3\
+\xe5\xeb\xa8\x9f\xf4\x04\xae+\xb0\x04\x03\x8b\xb24\xe9\xa9\x0c\\_`\x8b\x10\
+\xaf#\x91^N\xa7-\xb4S]@\xcb\x07\xb7\x18-\xae7\xad#\xd3V\x80%\xc4\x8e\x9a\xd1\
+\xa3\xa0l\xb0\x1c=h\xed0\xe7\xf0\x94\\W\x7f=\nFI\xbe\xf8\xe2wXXX`vv\x96\x1bn\
+84\xd0\x8f\x1c\x84_\xbe\xcf\xe5\xae\xd7*\xe6f\
+\x05\xed)A^\x08\x81\x14M\x90"\xd5\x8b%\x04Q\xa2Hl\xad\x1eU\x06\xa7\xbf=\xcd\
+\x17\xfet\xa5!\xc71\xb1g\xe4\xf8\x93\xef\xc9\x8e\xb5\x9c\x9c\x99\x999\xda\
+\x9d\x10\xc7\xd6~9\xaf\xa5\t\x0et\x10\xc5\xb2\xfb\x0b\xb9&\xc9\xf6\x94\x80\
+\xbc\xffj\x89\xc1m\r!\xdaN\n\xb8\x9a\x18\xbd\xad\xa7\xecL\n\x91\t"O+X\xe5\
+\x08\xecTq\xeb!\xc9\x9f~3[7\xcd\x82\x81o\x0f\xdePI\x92r\xfe\xfc\x02\xcf=\xf7\
+\x1cB0\xd0\xd9g3Ss\xab\x91\xec\x8d>\x1bEP\x9b\x99\xd3[9\xfeNw\xf41\xc4X\xd7\
+\xf7p.y\x8al\xf54\x00\xb6\x13c;\xa9&\x16W\x91Y\x9a\x18A\x93c\x96i\xdfd/T\xac\
+\x05\x10\x86\x8a\xd4\xb5\x98s2^^\x14\xac\xf4 \xb3|Zv\xba#f\xb6\x19\x13\xb6\
+\x84\xef9*\xf8\xe8\xbd\x827\xdf\x0e33\xe0\xd8\x82\xc8\xd7VV\'\x05\xa7 E\xd0\
+\x8d1\xf2D\xd7\xfe\xcbX\x13\xe3J\x90\xf1\xca+K|\xfeO\x9b\x86\x14\xe3bO\xc8\
+\xf1\xd1\x8f\xf4\x94\xb4$S-\xb0\x9d^\xe9\x1f4\xe96S\x07\xa6\x81\xb8$9Ct\xae7\
+\x05\xe8bVc.\x97\xc4I\x9f\x14\x85X\xc3\xb3\xf4 \xb7\xa5\x1e\xddW\x92\x18\xb3\
+h\xfd\xfe%\xb9V\x8f@\x94)\xecX`[\xf0\xd53\xf5\xea\xb1\xeeFJ\x92\x94\xc5\x8b\
+\x0b\xbc\xf0\xe2K\x84a\xc8\xa1Cz\n\x86\xcdHj\x14\xb6c\xcen\xd5w8\xae\x9a\x1c\
+u\xbcI\xce\xa3\xee\xb3\xcb\x97\xbb,-u\xcb.6\xc3\x10\x97\xfe\x08+~\xae4\xab-k\
+\x8a\x9c\x18/\x17\xd8\x99`Y)\\DI\x8e\xb6#\x08C\x05\xb9 \xca,\xfd\x90vrn\xbeI\
+\xf2\xe2\xabpi1e%\xda\x19b\x04x\xdd<\xfc\xe0[\x05\x1f\xfa>\xb8\xf9f\x9b\x1bf\
+U\x11h\x14L;\xba\'idk\xff\xa2\x8b\xc0\x95\xfa\xbc\xadB-\x82\x0e:\xe6j\x8a\
+\x0b\xe7c\xfe\xdd\xd7\x1ar\x1c\x17{B\x8e\x7f\xeb\xaf\xa4\xc7\x1c_0s`\x16_\
+\xe6\x08+/\x89Q+@\x8f\xb6\x97\x91\x13#D\x82\x10\x9a\xe0\x84H\xb0\xac),\xdb#\
+\xcb\x06+\xfe=_\xe2Y)\xb6Lp\xfd\xc1\x81q\xa5\x15\xa3\xd9\x7f\xa0\x14\x8e\xd0\
+\xbfC\xd9\x10\xdb\x16*U\x08[\xa2\x84\xc4\xb7F\'\x87\x8fB\x9a\xc3\xda\xda*g\
+\xce<\xcb\xc2\xc2yl\xdb\xe6\xf0\xe1yZ\xad\x8d\xcb\xf36S\x94\x93\x98\xaeU\x8c\
+\xf3\x9dQ\xc7\xdc\xca\xf16R\xac\x9b\xa9\xd9 \x08Y]]\xe5\xd2\xa5K\xd8\xb6]K\
+\x8e\x87\x82\x13d\xe1\x8bd\xa9n\t\x061\xb6-\xc8\x14dJ\x13N\x14j\xa63\xca\xd1\
+\xb1\x05q\xa2\x88\x0b\x12\xc2\xb2\x98\xf32^{\x93$\xcd\x04/\xbf\xaa\xb6E\x8e\
+\xbe\r\xb7\xdf\x04?\xf2\x0e\x8b\x1f{\x0f\xbc\xe1\xbb\x1dn\x9c\x93\x1c\xf0\
+\x14\xb6\xa3U\xa3\xb0\x05\xae\x03\xa9/\xe8 \x98\x92\x92\xd4\xd3\x8a\xd1\x12\
+\xfd\xca/i\xeb\x87\xb7-\x13.]Ly\xfc+NC\x8ecb\xd7\xc9\xf1S\xff\xfd\xdbT\xa7u\
+\x0eiA\xa7\xe5\xe3xAY\xb9\xd2\xea\xf4\xfd\x83q\xaep\xa5\x1e|\x96\xd0\x83\xd5\
+\x95Z\t\xda2\xd1\x1d\xbc\xe5T\xd1XB\x0e\x0c\x08\xa0\x9cEp\xb7\x90E\x0c8\xc0E\
+&\x88Q\xf8-\xad\x1emr\xdaI\xc6\x94\'\xf9\x93\xd3\x93\xdd\xf3\x1f\xed\x86\x1c\xc7\x84\x98\x9d\x9d\xdd\
+|\xab\x1d\xc6c\x0f\xc4\xaa3\r\x07Z\x07\xe8\xcc,\xe1H\xad\x18u\xe5\x8a\x86[\
+\xc9M\xac\xc2\xf2\xb4B\xf3\x8a(\xa2\x17\x0f\x92\xe2N\'uO\x02s\xec@)\xda\x05Y\
+\x873\x92<\xcc\xe9\x85\xb0\xd6\xcd\xf8\xce\xb3\xf0\x8f\x7f;\xe7?\x9d\xce6\
+\xd9\xdbz\x98\xdc\xbc\xf9\xf9y\xee\xbd\xf7\x07\xf9\xa5_\xfa%\x0e\x1f\x9e\x1f\
++\xf7o\x92\x1c\xc1\xed\xe4,\x8e\xb3\x9f\xadn7\xceq\x06\xd6w\xbf\xc3\xf9\xc5\
+\x9cs\xe7\x16F~\xf7\xe0\x85_C^~\x02\x15;\xf83\x9a\xf9\xa6g$\xae\x14\xac\x04\
+\x19\x9e/K\xe5\x08\xb0\xd6\x83<\xd2~\xc78\x86^\x0f\xa2\\\x92%\x82,\xc9\x88\
+\x95E\x1e\',\x87\x92\x8bk\xb0\xb6\x9a\xb3\xd0\x95tC\xc5j\xd1\xe7\xc4rs\xb2X\
+\x8f\xf5\x1bn\xb0\xb8\xb5\x930\x7f\xd0\xe2\xd0tN\xab\xd3o\x12\xe1\n]\xdc\xd0\
+\xf62Z-8\xe0\xbb\xe59\x9a\xf44\xcf\xd7\xe7j\xee\x85ja\xc3\xf0\xbd\xf0\x9d\
+\xc5\x8c\xf7\xfd\x9c\xd7$;\x8e\x89]\xd4V\x83pU\x8e/\xd7\xc8#\x05\x85I\xadTg]\
+\xa7\x9ca\xa2\xcb"h{\x02\xc6]w\xdd\xb5i\xb2\xf6N$e_\xe9\
+\xaa\x95\xad\x1cc\xa3}\x87\xf9\x01z\xbd\xd1\xc4\x08\x90\xc6\x11\xa6\xc8\xc5\
+\x10N\x14\xe6\xe0\xcb\x81\x87\xf5(x\x8e \x8aLCe\x8b\x16\x90\t\x89t-f\x0f\x00\
+X\x841\xa8\xa4Z\xaf-\x10\x8e\xad\xd7\xb5\x05\xe0\x16\xb7@\xbf\xe0\xa1\xe5\
+\x82\xe5H<\x99!\x0f\xd8\xf8~\x8e\x10\tn1\xb6\xcc\xb9\xd5\x89\x88\xe1F*\x86$o\
+i[\xfc\xe1?\xf2\xd5_\xfdx\xd8\x10\xe4\x18\xd8u\xb3\xfa\xb3\x0f\xdc\xael\xe7U\
+Z\xbeB\xc9\x03x\x9d\x08c\x1d\xea\xe8\xb2\x86\xf1\x1b\x1a\x9f\x891\x91\x87\
+\xff\xae\x0b\x86\x8c\x83\xad~o3H{\xd0\xf7\xe8d [\x8a\xdc\xd6M\x01r\xa1\x98R\
+\x82\xe5\x9e\xe4/\xcen\xcd1\xe58\xbaa\xc4\x85\x0b\x17x\xfa\xe9g82\x7f\x98[n\
+\xb9m"sz;\xd8J\xfa\xce\xa4\xc7\x9f4\xb5\xa8n\xdf\xbd^X\xcc\xb12\xba\xdd\x9a\
+\xb7\xfcU\xe4\xea\x0b\x00\xc4I\xa6\xe7`\xb1\xb5)=lV\x03\x90\xeb\x942[\x80R\
+\x90+p%\xa0\x14\x8e\xad\xcdl\xcb\xd1\xae \x99gXB\xe1\xd9\n\xe9\xd88\xaeU.\
+\xb6\x05\x8ek\xd1\x91\x19\xbePX\xc5\x92N\xe9@K\xcb\xc9q<\xc9\xcc\x94b\xc6\
+\xb2\xb1\xed\x8c\xe9\xd9\xf5\xc4\x18\xb9\n;\xd39\x8d\xd5\xf1<|\xcf\x806\xaf{\
+^\x8f_\xff|cZ\x8f\x83]oY\x16\xc6\xdf"A\xb7y\x92\xde\x12y\xd4\xcf\x1fs\xa5(\
+\x97*\x86\xd5\xa0Qhu\x9f\x8d\x8b+\xa50\xb3\x88\xd2\xa4\x86\xa2\xfc\xac\xe8\
+\x07\xd8\xf2\xa13k1;\xab\xb8\xf7]\x82\xdb\x0em\xed\x18A\xa0;@w\xbbK\x9c\xa9\x1b\xd3f;\xd0Qk\xdbV\xfc\xd0\xfb\xe5\xb1\x7f\xfb\xfb\xa2Q\x90\x1b\
+`\xd7\x95c\xaf\xc8\xc0\x89\x85$v\xd2r\xfe\x0e\xd0>\xc7j\'\xe6\xad`\\Ex%}\x93\
+VQ\xbe\x05Z9\xe6\x9e\xfeMi\x94!}Y\xaa\xc7\x1fy\xa7\xbdnb\xae\xad \x08B\xce\
+\x9e}\x9e\xe3\xc7\x8fs\xe2\xc4\x89\x89\x14d\x15\x93(\xc2q\x95\xe7\xb8\xdd\
+\xca\xb7\xa3:\xeb\xf6]\xc5(\xb3\xda-\xe6\xd2\t\x03\xdd\x08Y\xc5\xfd`H\x14\
+\xe6\xeb\x821\x9e/\x89\xa3\xc1\x0eO\xbe\xd4\x1eK\xd7\xd5\x8b\x99\x8e\xc3U9\
+\x9e\xad}\x92\x9e#8\xe0\xa9\x81\xf7\xb3\x1d=\xaf\x91\xb4U\xb9\xb8\x95\x0e?\
+\x9ePxB\xd1i\r\x06+\x87\'\x83\x9bd\xbcG\x99\x9eL\xce\xf5\xa6\xb9\xb5\x93\xf0\
+\x87\xff\xc8o\x14\xe4\x06\xd8ur\xfc\xd9\xe3\xaeX-\xde\xe7\xd1\x0c\xd2\x13\
+\xa5Ym\xe6u\x81A\xd3\xf9Z\x84\x19\xb4m!\xca9I\xdc0\xc3\x1593\x87\x1d\xe6\xbe\
+\xcbb\xeaF\xc1O\xbc_n)\x081\x8c\xcb\x97\x97XX8\xc7#\x8f<\xc2\xd7\xbfvr\x1d\
+\xc9\xec\xc41\xb6\x13\xa8\xd9N;5\x83Q\x84<\xaaK\x90\xb1\x8aFYGq\x14\x12\xc5\
+\x12i+\xe2x\x11`\xe0a\r\xebM\xea\xd2\xecn\xe9\x94\x1a\xe1&\xb4|\x81/]|\xe9"\
+\\\x85\xdf\xd6\x0b\x80\xdfVxv\xffU\xda\xfd\xcf\x0c!\x9a\x05@z\x92\xce\x8c\
+\xc4k\x89u\xa6\xf4V\x1f\xe8A\xd0\xd6\xee\x9ev@\x16\xe9\xe9A\xe4\x8c@\xccN\
+\x18\x11\xbc\xce\xb0\'\xd3$t\xf8\xee\xe2\xdd\xa2\x8eVW`r\x1c\xafu\x18b\xaf\
+\x12|\x18\x02=\x85\x8c\x13Z(n;\x98\xf3\xbe;-\xdeu4\xa9\xdd\xc7\xa4\x08\x96\
+\x978s\xe6Y\x8e\xff\xcb\xe3\x9c={V\xaf\x1b"\xc9\xcd\x14\xdfv|\x91\xe3~w\x9c\
+\xed\xea\xb6\x19\x87\x90\xab\xdb\x86a\xb8a\xb2\xbcQ\x8e\xaf\xa6G\xc8SA\x98k\
+\xb3\xc6<\xac\x8dj4*r\x18\x8e\xd4}\x00@O\xb5 \xdc\xa4$I\x80\x96\xef\x14\x9f\
+\xa9\xf2\xd5\x90\xe00!\xb6|A\xcb\x17E;\xb4Au\n\xa3S\xdb\xc6A\xbb=X\xb3\xeaJ\
+\xc1\x9c\x94\xdc\xe8\xa7\x8d\xffq\x03\xec\t9\xae\xf1-T\x9c\x01\xba\x19]R\t\
+\xdaFY\x1bW\n\xcc|\xd2\xd7*\xea\xe6\xa5i\x0b\x01-A\xac$r\xd6B\xce\x08fg\x15?\
+\xf7\xd7\xad-F|\xa2\xff\x00\x00 \x00IDAT\x07g\xaa\x08S\xb8|\xe1\xf0v;(\t\xd2\xb3\x02\x0ey\xd3\xdcx$\xe7?\xfc\xc3\xb8!\xc8!\
+\xec\t9\n\xbe\x05@\x98k\xffb\xf5I\xed\xf9\x92^O\x95\x9dt\xf6\x0bLGi\x19\t|\
+\x14\xae\xd07\xdd\xc1y\xddH\xe0\xbf~\x9f\xe0{\x8e\xeeLn\xee\xe5\x0b\xe79y\
+\xf2$\'O\x9e\xdc4X1p\x8ec\x90\xcd83\x02\x8e\xab\x00\xb7\x13|\xd9l\xdf0\xa8\
+\x1c\xeb\x082.\xa6\xa6M8L\x94K\x12\x14*vJ\x92\x03\xd6\x05e\xaa\xeba\xbd\xf9k\
+\x94\x9f!KC|uK\x95P\r1\xae\xdb\xff\xd0\x0c\x99[\x85\xf1\xe1\x1b\xdf\xa3\xd9\
+\x9f\x10k\x1c\xf2\xa69<\x97\xf3\xcf>\xf2\xba\x86 +\xd8\x13r4S!\x18\'x\x15Q\
+\x98\x97A\x19s1\xf7\x03L>Z\xa0T9\x1f\xb2\xdf\xd2\xb9\x8fjVp\xcb\x8c\xe0\xef\
+\xfd\x88\xc3\xc1\x833\xdb>V\x98\xea*\x9a\xc5\xc5\xee\xba\xcf\xc6U\x90;Q\r3\
+\xc9w\x0c6\x8b\x88OJ\xf2\xbe\xef\x8f\xf4;\x96\xcaQ\xf4\xe7\x9e\x0e\xf3x\xe0a\
+]\xf57V\xfd~\xae\x14\x83\xe5\xae\xdez\xa2\xac\xc2\x98\xca\x8e\xec/\xfd\x0e\
+\xf5\x1b\x7fw\xa7`"\xdd&@\x03\xc5\xef\xb0\x02\xa6g\x05\x7f\xe5\xb5\xa7\xf97\
+\x7f\x7f\xb6!\xc8\x02{B\x8eYb\xa60\x98\x1bH\x9f\x88#\xfd\xc4\xac\x96\x10\xee\
+\x07\xf5X%\xf8j\xd2n\xacd\x99\xdas\xa0\r\xb7}\x97\xe0\x83\xef\x99\xa0e\xcf&x\
+\xe1\x85\xb3\xeb\xd6\x8d\xe3G\xacb+\xe9;\xe3\xeck\xd4\xfa\x9d(]\xdcLE\x1a\
+\xc4Q\xc8b\x0c\xd3\x05\x1d\xe4\xa9\x18\xf0\x11Va\x88\xd1\xbc\x9a\xc6(\x9e/\
+\x99n\xf7\xcb\xfe\x0c\xd1U\x97NK\x7ff^\xcdv\xd5W\x03o\xa8l\xd1\xf8\nw\x12F9\
+\x9a{+\xce\x15\xd3m\x8bCs\xf0\x96\xd7\x9eo|\x90\x05\xf6\x84\x1c\r6S\x8e\x06\
+\xd7\xbaz\x1c\xf6\xa1\x1a\xf5hR{:\xb3\x129#\x98\xf1s>\xf0^\x8b7\xdc\xbc3\xc7\
+]^\xeenX:7i\n\xce$y\x89u\xebwj\x06\xc3q\t\xbb\xdd\xf6\xf1\xe52\x9eWO\x8c\x8f\
+\xfd\xdb\xc7\xc9/\xbc\xc8J\xf1\xbc\x92\xb6"\xae\x94\xb0\x9a\x87\xb51\xabM\
+\x16\x85\xa9\xe22\x04\t\xebIm\x18\x9b\xa9\xc4\xe1\xef\x9bc\x0cW\xc0\xec\x14\
+\xb2H\x8fC\xcb\xd3\xf9\xc5\x91\xab\trzFr\xe3\x91\xbc\x89b\xb3G\xe4\xf8\xdf~\
+\xd2-\xafx\x9d\xdfq\x18\xfbA=\xc2`\xee#\xe8\x19\xe3b\xa5/A{V\xe2\xce\xc1l\'\
+\xe7\xe7\xff\xa65j\x17\x13!\x8e\xd3\x01\xc5t\xa5K\t\x87\x15\xe0$\xc49\xc9y\
+\x8c\xab.7\xda\xc7\xe9g\xcf\xf0\xe4\x93O\xf2\xf2\xf2_"VE1\xdb%\xb8I?*\xe6z}\
+\xb3\xbaJ\x84\xe5\xe75\xe95\x9b\x91d\xdd\xf6\xd3m\xab\xd6\xaf\tW\xae\xcb\x94\
+\xe5\x15\xb3\x14\x06m\xda\xed\xa0\xecr\xd5j\tn)T\xe4\xef\xfe\xd3}\x90S\xb7\r\
+\xec\xa9r\xcc\xd3\xfa\xa7\xe2pg\x9ek]9V1`bG\xe0\x86Y\xd9\xb9\xa73k1s@\xf0\
+\xce\xef\xb2\xf8\xe1wm\xffX\xaek\x0f(\xc7q"\xce;Q\r3\xea\xef\x9d<\x8fq\xd0n\
+\xfb\x84\xf9\x81\xf2o\xdf\xf7\x89\xa3\x908\ny\xfc\xf1\xc7\xe9v\x17\xb1R\xfd \
+\x8ar9\x90\xeb8\x8cj`\xa4.M\xab\xda\x13\xc0\x98\xdb\xe3,\x06U\xbf\xa6+\xd7\
+\xcfut\xa5\xee\x01\x93\x18\x0e\xfd\x88\xb6Q\x91o<\xe2\xf3\xf5OE\xea\xf3\xff\
+\xcb\xe1\xeb\x92$\xf7\x8c\x1c\x8d\xdfQ\xc5]T\xec\xe8I\xb5\x8a\x01\xa1Tg \x1f\
+k\xbf(GX\xff[\xc2\x902z\xdd\xf2\xa15/9\xd0\xca\xf8\x99{\xddm\x9b\xd7o}\xeb]\
+\x1c<\xb8\xbe_\xe7N\x98\xd3\x93`\xd2\xc8\xf78\xe7\xb1\xd1~\xab\x9f\xfbr\x99\
+\xa8\x88J\x87a\x88\xeb\xf9\xfc\xc6o>\xc2\x993\xcfr\xdb\xcc2\xbd\xa8\x9f\xc2#\
+m5\xe0s\x8c+\x84\x14\xe7j \xe2[\xed\x97X%\xcca\xdf\xe4f\xa8n_%\xe0\xe1\x06\
+\x12W\xba\xdc\xd5,YD\xd9\x17\xb2\xdd\x0e\x98\xbf\xc1\xe2u7\x7f\xe7\xbaT\x91{\
+\xaa\x1c\xab\xa8v\xe7\xd1s\xc0\xe8\xac\xfe\xfd\xa4\x1a\xeb\xd0\x16\x82\x10A\
+\xd8\x03\xe9K\xda\xb3\x12\x7f^\xf2\xd6y\x8b\x9f\xff\x9b\x16\x07;\x9b\xefc\
+\x18\xbe\rG\x8f\x1e\xe5G\x7f\xf4\xbe\r\xb7\xdb\x8dj\x18\xd8\x9a\x7fr\x9cco\
+\xa6.\xdbm\x1f\xdc\x9b\x00M\x8c\xc9\xd2Y\x1ey\xe4\x11N\x9c\xf8"DK\xccO\x0bZ\
+\x9e\x85+2<\x99\xe3\xba\x0c(\xc7a\xdf\xe0(\x13\xd7\x8c\xd1\xe1\xe0I\xb5\xcb\
+\xd4\xa8%r\xd5:\x024\xbe\xc0\xdd,\xa1\xad\x92\xf109\xcf\xceY\xbc\xed\xd6\x9c\
+g>\x13\xa9\xeb)\x9a\xbdg\xe4\x98;7\x11%\n\xe1\xce\x96~G\x83(\xcc\xcb"\xf9k\
+\xb9\xc6\xbaz\xde\xa3~C\xa0\x14\xed\x08\xfc\x16\xb8"\xc7o\xe9\xb6f\xd6t\xca\
+\xf7\xdd\x01\xf7\xbe\xdb\xa9\xff\xe2\x06\xb8\xf95G9v\xec\x18G\x8f\x1e\xd5\
+\xc7\x18C\xb9m\xb7\x1af\xd2\x1c\xc9Q\xfb\xdaJ\xae\xe5\x86\xbf#\xbe\x80\xe7\
+\xf9,/u\xf9\xec\xe7\x9e\xe4\x89\'>G\xb0\xbc\x04\xde\x0c\xbdT\xa0b\xdd\xbd;\
+\xca%q\xdc\xafb\x19\x85\xba.\xdbU_rU\x85\r\x9b\xe0\xc3\xef\xab\rJ\xaa\x9fU\
+\x830\xbbe5\xd5\xb5\x05\x84A\x92tg%\xef\xb9+\xe0\xeb\x9f\x8a\xd4\xbf\xbc\xff\
+\xe6}O\x92{F\x8e\x0e:\xb7L\xc5\xdd\xb2R\xc6\xc0\xf5\xa6\xf1\xac`\x9diq\xad\
+\xa1\xae{\xca0I\xb6\x85 P\x8a\xb0G\x19\x9ci\xf9\xe0\xcd\t\\\x17\xee}\x97\x98\
+\xc8\xbc~\xf3\x9b\xdf\xc8\xb1c\xc7\xb8\xf7\xde{K\xa2\x98\xb4\xe3\xcdV\xaaa&\
+\xed\xb03N\xe4z\'\xfaCv\x03\x97o~\xe3\x0c\xbf\xf1\x9bZ1\x06\xcbK\x84E@\xbae+\
+\xc21oq\xa3\xf2\xa0\xaf\xec\xc6}ho\xd4E\xe7j\x1f\xdb\xd5q\xdb\x16\x82v;`\xee\
+\x88\xe4\xfd\xefz\x9e\xaf\x7f*R\x9f\xfc\xc5\x1f\xdb\xb7$\xb9\xa7f\xb5i\x10\
+\x1a\xe6q\x99\xefX\x96mU|\x8e\xd7*\xean\x9e\xba\x9b\xa1-\x84V\x8fK9\xb1\x92\
+\xb83\x0e\xedY\x89\x98u\xb9\xf5@\xc6\xcf\xbc_lZZx\xf3\xcd\x87\xf9\xe5_\xfe(\
+\xc7\x8f\x1f\xe7\xbe\xfb\xee\xab%\x9f\xed*\xb4\xcd\xb6\x1f\xf7x\x93b;\x1d\
+\x85\xbe\xf9\x8d3\xfco\xff\xf8!\x9ex\xe2\t\xba\xdd>1\x12-\x01P\x15\x8a\xae\
+\x0b\xbd\x82-\x93\x9a\xe0\xb1\xf1\xc5\r\xab\xbd\xeb\x01\xd5\xdf\xea\xc5\x02w\
+V27;\xcd\xf7\xbf\xe5\xb3{wRW\x18{6\x87\x8c\xe0\r\xc0\x99\xe2\xaf9\x84\xdbE\
+\xcf\xd3\xa7a|\x8e\xb0\xb7\x93fm\x07\xe3\x9e\xb3)-\x04 \xcc\x91"\xa73\'\xb8\
+\x05\x85\xe8I\xde\xf6z\x8b\xbb\xdf\x9c\xf2\xa5?\xcf\xf1m\x90\xaei\xc5\xe5q\
+\xd7]o\xe7\x87~\xe8^\xee\xbe\xfb\x1e\xde\xf1\x8e\xbb\x06\xf7\x1b\x8c\x9e/f\
+\xa7\xaaa\xb6r\xbc\xba\xed7\xfa\xeef\xdb\x8f\xfa\xee\xa9S\xa7\xf8\xd5O\x1c\
+\xe3\xa9\xaf\x9f\xec\x93\xa2\x817\x83\xe5.a\xe6x\x99*<;\xd2\x93\x80\x1a\xe8\
+\xf6=\x8c\xba\xc9\xab\xae\'X\x1ex\x91 B\xfbe\xbf\xfe\xa9H\xbd\xfb\xef\xed\
+\xbf\x89\xbb\xf6n\x82-\xf9,\x86\x0c\x8dY\x1d\xf5\x14\xd3\xb3\x828Z\xc1\xabT\
+\x1d\xec\xd7Ahn\xb0\x81i\x15(\xcc\xeb\x1e\x80\xc2\x9f\xb79\x12\xc5\xfc\xd4\
+\x0f\xda\xf4\xd2\x0c{\xfe\xfby\xef{\xdf\xcb\xfc\xfc}\x86\x87\
+\x1f~\x98c\xc7>1\x92\x18\r|O\xd0"\xa7\xe3\xe6\x03\xca\xb1\xe5\x8b\x81\x06\
+\xcc\xd5\xe4\xecQQ\xea\xfd\x8e\xea\xfdV\xf7\x9b\xeb\xfc\xb3\xfb\x01W\x05\xe7\
+W\x13o]o\xb0\xa7\xa3A\xdd\x05\x1aE\x92\xd7\x1ay\x9a\xf3\x1d\xa8\xa3\xad\x10\
+\xa4\xf0ui\xe1Ms9\xaf\xbd\xdd\xe2\x8f\x9f\xf8g<\xff\xfc\xd9r\xd3I\x02\'[\xad\
+\x86\x19\xb7\xb3\xf7\xa8\xe3\xeddU\xce(\xff\xe2\xc7?\xfeq\x1e~\xf8a^y\xe5\
+\xfc\xba\xcf\x87\xe1\x15^\x9b\xb5\xb8b6\x17\x93sU\xfb1\x0e\xd7U_O\xa8f\x8bT;\
+\xdbg\x91\x0e\x98\xc6\x916\xa7\x87\xbb\xf9\xef\x17\xec\t9>\xf6@\xacL\xa4\x1a\
+\xfa\xca\xd1\xd4W\xbb\xdetm\x15\xc20\xe9\x8dzr_+*\xb3.U\xc9\x10d\xaf\x12\x9c\
+j\xf9 =\x9b\x96/\xb8m*\xe7h\xe7Y\xfe\xddo=4RA\x95\xfb\xda\xa0\xbe\xb9\x8aq\
+\xcc\xe9\x8dr\x19\xc7\x89J\xef\xa4Y?|\x1e_\xfc\xbd/\xf2\xd1\x8f~\x94\xff\xf8\
+{_\x18\xef\xf7z\xe0\xbb\x12\xc7Wt\xdc\xbeY\xed%)\x91\x1a\xad\x1c\xab\xaa\xf1\
+j\x1eW;\x85\xeao\xad\xde\x8bUb\x8c\xf7\xf1\xffa\xcf\x94cT\xe9\x8ad\xda\xd3\
+\x97\x13\nY\xc1@*\xcf0\x89L20\xaff\xa2\x1c\xfe=U\x05\xd9\x1a\xf2\xc7\xb6Z\n5\
++\x98;\x08o\xbfCr\xe1\x99G\xf9\xfa\xd7N\x96\x9f\x8f\xeaw\xb8\x135\xca\xc3\
+\xfb\xaa;\xceF\xc7\xabb\'L\xf9\xea1\x1ey\xe4\x11~\xe1\xfe\xfby\xea\xa9S\xeb#\
+\xd2\x1b\xa0e+\x0eX\xf9\x80r\x84b\xd6\xbfV\xbf\x94uTC\x88\xfdnR\x0f\x8fI\xa3\
+\x16\x83@\xdf\x97q\xd4\'\xc6^X\xef\xff\xbe\xd6\xb1G\xfd\x1c\x07[\xd2\x9b\x89\
+\x88\x0c\xa2\xac]&\x81WU\xe3v\x93\xc2\xaf\xd6\x01]W>\x06\xd0\xab\xf0H\xcb\
+\xd7\x953\xa1\xefp\xd3\xdc\x0co\xbf\xdd\xe2w>\xfd\xb1\xd2\xbc\xdeL\x99m\xa7\
+\x1af#\\\xe9j\x98Q\xeb\x9f\x7f\xfe,\xf7\xdf\x7f?\x0f>\xf8\xe0Xft\x15\xa6\xaf\
+\xe2r\xd6\x1f\xfe\xa6\xd6\xbf\x17*\x92\xbc\x7f\xe3\x9b^\x8d\xc3\xa5\x81W\xdb\
+\x83v\xa71\xec_]\t\xf4=\x1bG+\xac.\xf7\xa3\xd3\xe1\x92\xcd_\xfdx\xb8\xef\xd2\
+x`\xcf:\x81\x17\x03.QD5O\xfbjW\x9e\xe1\x9a\xcf\xfd\x86\xba\x12C/\x16\xa5z\
+\xec\rq\x83\xe7\xa7\xb4\xfc.\x87\xe6\x147\xaag\xf8\xec\xbf~h[\xc7\x9f\xb4\
+\x1af\xd4vW\xaa\x1afx}\x10\x84<\xf6\xd8\xe3|\xe0\x03\xf7\xf1\xd8c\x8foI\x89\
+\xb6]\xb0\xdc\x9c\x03VN\xa8@%\x83\xb3?V\xbbt\x1b_\xa3I\xfc6\xd8\x8fc\x11\xd6\
+\x93~\x10\xb4K+nuy\x858\xd2\xee\xaf\xa8\xa7\xe8.\xce\xf0\xbe_\xb1\xf6%1\xc2\
+\x1e\x90\xe3c\x0f\xf4\'\xf2\xa9\xfa\x1d\xab\x18n\x0fU7\xcd\xe9~yr\xd7\x95\
+\x96\x99\xd4\x9ea\xb4|h\xfb\x82\xd0wh\xcdJ\xdep\x87\xc37\xff\xdf\xcf\xf2\xd8\
+c\x8f\x03\xdb\x0b\xacl\xe6\xd7\x1b\xb5]\xdd\xfa+Q\r\xd3n\xfb<\xf5\xd4)>\xf8\
+\xc1\x0fq\xff\xfd\xf7s\xfa\xf4\x99\xda\xed\xc6A\x10\x83W\x0c}\x15i\xb39K2\
+\xc2\xcc\xa2\xe5\x8b\xda\xe8\xeb\xf5\xa2\x1c\xabV\x9a!\xc58Z\xe9W\xae\xf5\
+\xf4<;*v\xb8\xb8X\x9f_\xbb_\xb0\'\xca\xb1\xed\xf5\xcdj\xcf\xd63\xb4\x19?\x8f\
+I\xe3\xa9\xc3F5\xaa\xd7:\xeaj\xae\x81\xd2\xf7XU\x903B\xcb\xed\x1b\xa7\x14\
+\xef\xba-\xe7\xc4o\xfe<_\xf9\xca\xc9\xb1\x03+\xe3`\xb3\xefL\xaa\x14\'\xf5yV\
+\xb79}\xfa\x0c\xff\xe0\x1f<\xc8}\xf7}\x80\x13\'Nl\xdbo\xd9vA:\x90:\x16\xc2+\
+\xa6>-\xac\x99\xea\xb4\x1d\xa0}\x8e\xae\x14\x039\x8e\xb0\x7f\xc7_5\xe8\x02\
+\x83j1\\\xb2Q\xb1C/Lx~!\xe3\x83\xff\xfc\xec\xbeU\x8d\xb0\x07\xe48\xeco4\x13\
+\x9e\x9b9z\xcd\xac\x83\xfby \x1al\x94\x9ed\n\xfd\x83P\x9b\xd6-\xbfO\x90I\x0e\
+\xd3\x86 \x0fZ\x1c\xf03\xfe\xd5?\xfd\xe8Djj+\x01\x9aI#\xd4\x1bu\xf1\xd9\xec<\
+\xdam\x9f\xd3\xa7\xcf\xf0\xab\xbfz\x8c\xfb\xee\xbb\x8f\x7f\xf1/\xc6K\xd1\x19\
+\x07\xbe\'\xe8X\n;\xc9J\xe5\x08\xe0\xaa|`\x9a\x04\xd3\xa5\xdb\x98\xd6\xfb1Z]\
+\x97\xaec\x82.\xc6\xb7h\xd4"@/L8\xd7}\xc3@7\xff\xfd\nk\xb3\x89\xcfw\x12\x8f~\
+\xa4\xa7\xa6\xa7\xf4{\xcf\x11x6\xb4;z\x9aJ\xd7\x01\xdb\x16XB\xa02PY\xff\x82I\
+\xbb\xff\xba\x9fP\xf7{\xcc:\x95Ah)\xdcT\x10\xa7\n\x07p\x80$\x85X@\xba\xaaX\
+\x0b\x05y.p\x94\xe2k\xcf\\\xe0+\xa7^\xe4\xdd\xef~7ss\x9bG\x0f\x1d\xc7^\xf7>\
+\x08\xc2\x81\xf5\x1b}g;\xeb7:\x8f \x08\xb9x\xf1\x12\x8f>\xfaox\xf0\xc1\x07\
+\xf9\xbd\xcf?\xc1\xc5W\xd7\xcf\xa2\xb8U\xf86\x1c\x9a\x11\xcc\x1f\x00\x7f\xda\
+\xa2\xd3\x16x\xb6`\xba-\xb1<\x81+r\\_@\x0e\xa0\x88\x13E\xdb\xedk\x08s}\xf6\
+\xcbX4\xf7\x9a*4\x8bI\xd3\xe9\x05z\x16\xc64p \xb3\x08\xf3\x0e\xafv\xd7xe\xd1\
+\xe2\xbf\xfb?V\xf7=1\xc2\x1e\x94\x0f\x06\x91U\x9a\xd5Z5\n:\xad~T\xb0\xae\x8f\
+\\\xf5u\xbf`X\x85\x0c\xbf7\xc5\xfdqaV\x07\xa1B\xf8\x92PI\xfc(%\xf6$\xb3\x9d\
+\x9c\xa5\xc4B\xb8\x16w\x1eI\xf8\xdd\xaf|\x81_\xf8\x85U\x8e\x1d;\xc6]w\xe9&\
+\x14\x934v\xa8\xf3;N\xd2\x94b\x9cz\xea\x8d\xf6y\xf9r\x97\'\x9f|\x92\x87\x1f~\
+\x98S\xa7N]\x91\n\x9e\xb6\xa7\x13\xc0S\xc7\x86 A9\x02\xef\x00\x80\x85\xab\
+\xf2\xb2\x9f\xa3\t\xc8Tk\xab\xeb\xae\xd7\xb5\x84j\xbe\xe20\x0c)\x9a\xfcE\x93\
+s\x1c\xe6\x1dT\xdc\xe5\\\xf70?\xf5\xc9\xfd\x19\x95\x1e\x85]S\x8e\xbf~\x7f\
+\xac\\W\xd2\xf62\x0e\xb4\x04\xb6\xd4\xaa\xd1k\t,\x1b\xdaS\xb2|\x82I{P-\xeew\
+\xd58\xfc\xde\xfc^\x95A\xa6 \x01\xecP\x91\x03q\x94cg\x10%\x90\xc6\x8axE\xb1\
+\x9c\tO\x18F{B\x88\xa0\x831\
+\xb7\xdf\x04\x87g-\x8e\x1e\xcc\x99\x9fU\xcc\x1f\xb4\xb8\xe5`\xce\x819\x1b\
+\xdf\xd7\xdd\x8f\xaa%\x84\xc6\xe7\xa8T\xa7\xcc\xa4\xd8+\xd4\xdd\x0fu\x9d\xab\
+\xaa\xeb\x86s\x15\x87\t\xd1\xf8\x14\x97{\x8a\x95UX\\\xbb\x8d\x07\xfe\xcfK\
+\xd7=1\xc2.)G\xdf\xab4\x0f\xad\x1c1\xea\r\xd6\xb1\xea\xca\x98\xf5\xd7eT\xd3\
+\x89\x8d\xfa\xea]\r\xe4Yw\xfc\xcd\xce\xb5.U\xa4\xda\x11\xc6\x8f B\xd7\x00\
+\xf7\xd0\xad\xdfZ\xc2\xd2\xbdq\x81\x197c\xae-\xc1;\x00kz*\x00Cb\xa7O\x9f\xe1\
+\xf4\xe93|\xf9\xcb_f~~\x9e\xd9\xd9Yfgg9z\xf4(\xf3\xf3\xf3\xe5rpn\x16\xd7\xf3\
+\xa9>8\r\xf1-u\x17\xe9\x85Q\xff\xef\xa5ny\x8c\x17^8\xcb\xd9\xb3z\xe9v\x17\tC\
+\xfd#\xf6\x8a\x0c\x87\xd1\xf6\x8aVe\xb6\xc2q$\x8e\xa3[\x96I\xd7\x81\x11\xbdE\
+\xeb\x94\xe3^\x8d\xad\xcd\x8e9J-VI\xb1J\x88Q\x9a\xb0\xb8\xbaL/\x96\xfc\xecq\
+\x93\x9as\xe9\n\xfe\x82k\x0b\xbbnVG\xa9\x9e\x1fX\xe41\xad\x82\x08\x8d\x7f\'\
+\nsT\xa1\x1e\x83\xa0\xbdn\x92\xad\x8d\x08\x12\xd6\x93\xcc\xd5@\x90\xb0\xb9\
+\xe9\xb7\xc9\x1c\xb4\rv\x87\x1c\xdd\xb6\
+$\x88\x04\x14\x03\xcfs\x84nSV\xf8\xf0\xb5\xe47\xd7*\xa7*\x10=_\xa2T\xf1\xa8\
+\x0f\x18P\x95\xe6\x156\xf6\xc3\\M*r\\\x98\xe8\xbdG_9\xae,i\x82\x94\x9e\xc0\
+\x8b\x14K\xf1\xe8\xef\xcf\xb5\x05\x9dV\xdf\xef\xd8\xa0\x0f\xdfV\xb4s=\xe6\
+\xa4\xad]>Y"P2\x83V\xfdw\xaa\xcaq7a\xc6\xf5\xf0l\x9cB\xe8\x08:\x14\xfeD\xd6\
+\x07Z41\xc6\\XLY]\x93|\xf3l\xc2?9qI\xc0\x08\xe9\xdc`\x00\xbbB\x8e\xa6\x1d\
+\x94\t\xc8\xe8^\x8e\xa24\xad\x8d\x82\xd4\xe8\xfb \xc1(\xa6~\x8b\xa4\x18m\x82\
+\xaf\x04\x19\x9e\xdf\x1f %\n\x02\xad\x8bv\x0f\x97\xeb\xd5\xa9\xd1\xab\x85@M\
+\x128\xf4U\xa3\xebAR(\xc7H\t\x8c\x9f,\x8crz\x11\xa8X?|\x1cG\xd2v\x15\xed\x9a\
+9Q\xaew\x98H\xb5A\x9e\xe6\x80,\xa3\xd5\xa0\xdb\x96\xb5\x00Z\xfd\xff\xbf\xdb\
+\xb6vu|\xd4)\xc58Z\xc1\xf3e\xa5\xc7\xe4\xca@\xb3YC\x8a\xbdP\x11\xc7\xd0\xeb\
+\xc5\xac\xac\xc2\xd3\xcf\xa7\xfc\x93\x13\x1d\xa1\xb5p\x83q\xb1K\xe4\x98a9\
+\x16\x8b\xab\xb2\xccu\x04=gG\x1c+\\7\x86P\xcf\xdf\xa1\xdb!1`j\x03\x03\x84Y>!\
+\x87\x88\x13\n\x85\x15\xe4\x03\r,\x8cof#B\xac3\xd7\xaf\x06\xa2\x8csU\xde\x10\
+q\xd4oI\x9fG9y*\x88\x83BM\xda\x92R\x99\xcb\x1c\x10\x1c=$\xb9\xb8\x947\xeaq\
+\x0cd\x89\x00O\x8fI\x7fz}\xaec\x94\xb5\xcb\xda\xbf\x88\xc7\xee\
+\xd3W\xbf\xe3\xe6eJ\xc5r\xa8s\xf6\xa0 \xce\x02a\x94\x97\x84\x00\x10\x14fy\
+\xdb\xcb A\x93f\xaf\xf8NA\x9c\xb1\x1d\x93\xa7\x82\x90DW\xe6\x84\xfd\xe6\xba\
+\xbdP\x95\xed\xa9\x8cYnL\xf2*i\x9a\x9b\x02XG\x94\xb0q\xc4{\x14\x89\xd6\xa9\
+\xcd\xf2w\x05ZE\xe8\xf4\xa5\xc1$\xde8\xd6\xbf\'\x88$Y\x92\xb1\xb4\xaa\xa3\
+\xd4i\x02a\xa4H\x8b\'\x8aok\x1fm\xb0A\xaa\xcf\xf5\x8e$\xc9\xe9\x14\xa3\xbf\
+\x17\xe9q\x93%\x19\x01\x16m2\xc2\xc2\xafk\xa6Mp\xa4\x1e\x0b^\x91~f\x12\xc3a=\
+\t\x8e"\xc8a\xf7\xccb\x9e\x0f4\x13\x81Ab\x1cl\x04\xd1\xdf\xc6\x90b\x18\xe5\
+\x9c9\xab\xf8\xe7\xffO\xa3\x16\xaf\x04\xf6\xb4\xf1\xc4\xb1\'\x06\x1d\x84\xc7\
+\xee\xeb)O\xe4\xc4\xe8\xa6\x00\xbdHGa5aB\xd1\x81\x14\xdf\xd3f\x84\xefIV*V\
+\xf4\xf4\x14eD\x1c(\x02>\xfd\xa0\x05h\xc5\x19%\n\xcf\x11\x84\x81\x99\xa6\xa1\
+O\x98\xbetK\x85i\xa2\xe6+]U!N\xad,uJ\xd1tm\xda\xd0\xa8\x9cK\xb3\xcelkP\xfd\
+\xbc\xdd\x0e\xe8.\xf6UD\xbf\xaf\x9e&F\xad\x1a3\xc2Bm\x0fw\x96I\x13X\x8a\xad\
+\xf2\x7f\xd5@\xc3\xaf\x19\xe9K\xc5Cq\xaah\xc0\x1cF9>\x109\x12!\x04>\x19*\xd6\
+\xbe\xc7\x08=\x16\x062$\x8a\x1c\xdcQ\xb9\xb6\xc3\xef\xa1oBGa\x8e\xcd`\xfe*\
+\x0c\xe6(\x1aR\xacNc\xbc\xb2\xaa_\x17^\xcd\xf9\x1f~\xa7Q\x8bW\x12WUg\xbaZ\
+\xb2Lr"%\x89\x85\x1e\x92\xb6\x03\xadr\x06\xa4a\x02\xd0\xe9,\x860\xab\xbeL\
+\x83(7&ia6%}\x13=\x16\x92Pi3\xdd-\x9c\xf7\x860#\x92\x81\xc89\x14\xc9\xb7\x1e\
+\xb5iC\xa30\xac2\xaaA\xa0(k#z\xc6\xf7\xd4\xdf\xc6\xe4\xad\x99\x9b$\x8cr\xa2D\
+?<\xf4\xdf\x8a\xd5\x10\xd6R\x08SA\x92\xe4\xc4\xc5\x1c4\x8dz\xd4\xa8V\n\x05\
+\xf1 Y\xa6\ttWa\xb6 \xc98\xc8\xf1$Z=\xb6\x07}\x8f&\xbd\x07t3\x8a8\xd2\xa6vY\
+\xa8\xc0\xe0\x18\xc8"\xad2\x95\xea\xacK\xcb\xd1s?\xe7\x03\x84h\xd0\x0b\x13\
+\x96\x8b\xf5Ad\x95\xd3\x8b\x84Q\xce\xcb\x97ecF\xef\x02v\xa5+\xcfN\xe1\xc1\
+\x0f\xf4\x94)z\xf2D\x8e]\x8c\xa5\x96\xa7\xcd\xa2(\x194\xc5A\xabL\xa3\xb2\xaa\
+\r0\x86a\x88\xd4\x04\x83\xa2\\\xea\xa6\x0eE\xc5\x84\x83\xf6e\xb6\xaau\xb7\
+\xad\xf5\xe9E\xe6\xc61\x84Y\x8d\x84\x0f\xe7\xc9\r;\xe4\xfbiH\xfd\xfc5C\x8cF5\
+\x1as\xaa\xbb\xda7\xa7WC\x88\x85\xa0\x17h\x7f\xe3\xe2\x9a&\xc9W\x03\xc1\xf3\
+\x172^lz\t\x00\xf0\x86\x9buY\xe5\\[p\xb0\xad82\xa3\x98i\xc1\x94\x0fSS\xa2\
+\x1cG\xbe\'\xb1\x1c\xdd\xb1\xbe\xd5\x02\xd7\xa5\xbc\xee\xe6ZW\xfd\xd40\xd81\
+\xdc\x94\x1c\x1aB4\xeb\xaa\x18\xf6+\xf6\xa3\xcf\xa24\xa1\x17Wei%\x18\xcb\xe7\
+\x1b\xaf\xc0\xa7\xfe\xa0!\xc6\xdd\xc0U\xa5\x1c7\xc3C\xff\xa1\xcfB\xff\xe3\
+\xbdkJ\xe4\x92\x19\x99\xb3\x92\xf4U\xa51\xc5=KGq\xa3\xca<\x9b\xe6}\x95@K\xf2\
+\x8c\xf2\x81`\x90\xe5\x08\x02,\xa2\\\x93\xa5\xf1i\xaaX\x9b\xe1FMV#\xe4U\x13|\
+\xd8\xfc\x8e\xa3\x15\x84\x18,\x85\xec\x13\xe2zG\xbc!EXO\x8cQ\xd2\'F\x83^\xa0\
+\xdf\xafF\x9a\x18\x8db\\\xab\xa495\x18D\x98\nf*\xddx\x8c\xef\xd1 \xca%\xf4r\
+\x1c\x04=\xfa\xd7\xdc\x04h\xea\xf2k\rI\xae\xab\xec\xaaI\xc91J1\xccc &\x0cDi\
+\x1d\xe8k]\xb8w\x12\xb8\xb4"\xf9\xe6E\xc5c\x7f\xd2n\x88q\x97pM)\xc7Q\xf8\xb9\
+\xff\xea\xa0\x9a\xb1\xbf\x03\x80\xed\n|\xa9\x10\xae\x85\'\xd6\xfb\xddlg\xdd*\
+Z\xc3*\xc0\xa1hce\x9a\x12heiJ\xcc<\xa9\x9b<\xf8VV\x9a\xdf\xd5\x94\xa2a\x98\
+\xb6l\xe6\x86\xaa{\x85\xc1\xf2/\xa0\xbcY\x82H\xab\xda\xb5\xd5\xa44\xa7WW\xb5\
+b\x04mN\x1b_c\xd0\xcbKr<{)\xe7\x1b\xaf\x8c\xf3\x1f\\\x8f\x03\x07\xaen\'\xff\
+\xf2\xf2\xaa\x82\xb7\x00\xcf\xd0\x7f\xdd\x18\xb7\x1d\x82#\xb3\x02\xdf\x95\
+\xdc\xd0V\x1c\x9c\x16\xcc\xb8\x19\xb7\xcc\xe9Vf\xb6C\xadz\xac^\xeba\xcb\xa1\
+\x0e\x83\xd5\\\xfa\xd5X\x02\xd0W\x89\xc0\x80U\x10\xe5\x92,\x11\x03j\xf1\xd2\
+\x8ad\xe1r\xc6+\xdd7\xf2\xf9?\x7f\xe9\xaa\xbe&\xfb\r\xfb\x82\x1c\xeb\xf0s\
+\xef[U\xad\xb6(;\xaf\x00\xf8\xb2H\xf1\xf1\xea\xc7X\x958\x8d\xfa\x14\x8e\x83J\
+\x92\xf2\x86107\x0e\xe8\\LW\xe5E\x1e\xa6(\x95\xa5\xc9\xbd\x1cN!2\xd1\xcf\xf5\
+\xa9\x1a\x83\xa4\x08}\x07\xbc\xb9Y\xb4\xa2(Tb\xd8\'\xc60\x15\xacFzv\xc2\xcb\
+\x81`1P\x9c\xeb\xaau&\xf5\xd5Nz;\x89\xe5\xe5\xdbU\x954\x0fv\xe0\xce\xdb\xf5\
+\x83\xe6\x86\xb6b\xdaW\xcc\xcf*:\xc5\x8c\x84\xe6\xfa\x1b\xdf\xe30A\xba*/\x03\
+xu\x0fC\xe3f1\xe8\xfb\xa85\xcc\xf5\x1d&D\xa0,\x035.\xa0\xe5P\xb2\x12\xd0\xa8\
+\xc5=\xc4\xbe%\xc7*~\xfc\x9d=\xe5\xf8\x8a\x03E\x8a\x90\xe3\x08\\\xd5\x1f\xb4\
+Fm\x86\xb9\xa0\xe5\xcb\x01\xc5i;\x94iF&\xc5\xa8\xd5q\x06\x14\xa5~\xed\xefO\
+\xd76S*\x0e`\x9d\xc240\n\xc2\xf8\x9a\xea"\x93a\x94si\xd1\xbc\xef+F\x13m\rSA\
+\x94\xcbR5\xbe\x1a\x08\xcew\xb3\x01\xd5x=\x91\xe2Fx\xe3Mk\xcaw%-[\xad\xf3;\
+\xd6\xa9G\xd0]\xa5\xa0o1\x98\x07\xa1;f\xf5\xd1\xb0{\xc4\x10"P*\xc5XY\xe4q\
+\xdf2x5\x92|\xe7RC\x8c{\x89k\xca\xe7\xb8U\xfc_\xffe\xd0\xfe\xb9\xef{\xd6\x94\
+\xe3X%\x89\xf9\xb6*T\x83"Hr\xda\x0e\x08O\xe2%\x19D \\\x1d\x002\x81\xdf^\x94\
+\x94\xca\xd2s\xd6\x07{2\x13%\x8f ,\xf21\xfdL\x9f\xc22YI\x98\xba\xa6\xdc\xa8\
+\xc4\xc1\xc8\xa4Q\x10\xdd\xd5\xfey\x8f"\xc6\xd5\xa2\xfe\xd7\x98\xd3a\x9csqi[\
+\xff\xb2}\x0b\xdf\x1d\x0c\xca\x85\xa9\xc0N\x15S\xe8\xff\xef\x94#J\xdfcX\xf8\
+\xa1\xe3 \xc7r,\x02,\xac\\\xa1\xa4\x9e\x12\xb2\xd7\xa3\xac\xdc\xcaS\xfd:\x0c\
+C\x88\x1a\x9a\x18\x8dJ\x84\xaaR\x04\xd0j\xb1\x17\xe6\xbc\xba\x94\xf1XS\xed\
+\xb2\xa7\xb8.\x94\xe3f\xf8k\xaf\x0f\x94o+\x1c\x1b\xa6\xbc>Y\xd6)\xccV\xe1p\
+\xafF\xcb\xab\xcaR8\x85\xaf\x92\x04\xe9\xf6\x15\xa6A]z\x91A\x95\x14\x8d\t\r\
+\x83\xa4\x08\x83\xc4\x08\x0c\x98\xd3\xbdT\xab\xc6\x17.\xf4\xd3W\x1a\xd58\x88\
+\xbbn\xed\xa9\x96\xad[\xbaM\xfb\x8aC\x9d\xbez\x84~\xe4\x1aX\xe7N\x81\x8d\xad\
+\x05\x83\xaa:\x84\xbeB\xacbiU\x7f\xc7$\xf2w{\x10$\xb0\xd0\x95\xeb\x1e\xe8\rv\
+\x1f\xd7\x85r\xdc\x0c\x7f\xf0\xcdA\xd3\xe5\xaf\xbfyM9\xb6\xee\x8b\x08z\xe0\
+\xfb\xb6\x82\x9e\xc2\x0e2:6\xf4\\\x81\x1f\x15\x81\x9f"\n\xae\x93\xd7\xb5\xaa\
+\x0c\x91\x10f\x85\xba\x84\x18\x07\x97\xa4,\x95\x94\xaeC\x1eW\x9ag\x14o\xab\
+\x15/\xbe\'F\xaaE\xa0P\x8c\x9a\x18\xcd\xba0\xcey\xe1\x02\xb8\xed)\xd1\xf4\
+\x9c\x18\x8d^\xaa+`|\xbb\xf8\xdf\xf5T\xe9^IbPz\xa9\x00\x00\x03\x9bIDAT\x13\
+\xe8\xa1\xcdk}]\xf2\x92 M\xa28P\xf6\x070\xaa\xb2\x0eUB\xac>\xf8\xca\xf3\x88`\
+-\x96\x85ZT\\Xk\x02/W\x0b\x1a\xe58\x06\xdes\xfb\x8c\x9a\xf2\xceQ\xa7.M\t\xda\
+\xa8(\xf9\xb0\xba4\xa8\xb6\x18\xabV\xb9T\xd3s\xc6Q\x8b\xa0\x15#@7\xb8\x99g/t\
+\x9b\x1bk\x13\xbc\xe9\xa6Y\xe5\xb9\xe70\xea\xd1\xb7\xb5\xef\xd1\\\xcfa\xffc\
+\x15\xc3i`\xa0I\xaf\xceJ(\xcd\xf2\xc2\x9f\x08\x9a\x18u\xa3\x10\x88{\xba\xc0\
+\xa1\x17\xe6\xbc\xfc*\x9c[\x12\xeb\x1e\xd4\r\xf6\x0e\r9N\x88\xf7\x1d\r\x94\
+\xb9\xa1\x1c\x1b\x0eu4\x99\xb5\xda}\x13\xbc\x1a\xe01\x11r\xd0\x01\x1a\xd0&\
+\xb9!A\xa3\x0e\r\x86\tq\xa6U\xe7_\x1c$\xc6^A\x98\xa7^jL\xb1qq\xd7\xad:\xac\
+\xbc\x19A\x02%IF\x99,\x83r\x06\xa6\xf8\xc0\xbc7\x88\x862\xba\xa2L\x96\x0f\
+\xc44\xa1$\xc5\xa5@\xb1\xda\x13\x9c\x0f\x04\xbf\xffLC\x8cW\x13\x1ar\xdc\x06\
+\x0cQ\x1e\x9c\xd6cz\xc6\xcdJ\xa5h\xfc\x95\xa6\x8c\xaf\xed\xe8\xfe\x81\x06S\
+\xfe \x11\xd6a\xa9\x92\xc0=\xac\x18\xcd\xdf\xaf\x06\x82(>\xd2(\xc6-\xa0\x8e \
+\xe7:\xfau\xa6\xd5\x7f\xc8\x19\x92t[\x9a\xe0F\x11\xe5F0\xe6\xb3\x8a3\xc2\\\
+\x10$\x94\x15M\x8db\xbc:\xd1\x90\xe3\x0e\xa0\xaa&\xdb-\xd9\xf7Q\x0e\xa1\x9aG\
+\xd9\xb1u\x8e\xa2y\xbf4\xa2\x92eX-V\xab_\x16\x03\x85\xe0\x96\x86\x18\xb7\x81\
+jjO\xd5"\x98\xf2`\xaa\xa5p\x1c\x9d+[%\xc9\xe1|X\x18t\x93H[\x93h\xd5]RU\x8a&/\
+5\xca%\x97WTC\x8cW)\x1ar\xdca\x18\xa2\x84\xfe\x8d\x06:\xb8S\x8dh\xd6\x91\'\
+\xf4\x15a\x15U\xff\xe209\x9e\xb9\xd0\xd4\xd9n\x17FA\x02\x9b\x92\xa4A\x95,\
+\xab0.\x12\xe3B\xe9\x859A\x02I\xa2\xcd\xe7(\x97$IN\x92\xc2\xa5\xb5\x9b\xf9\
+\xda\x0bK\xcd\xf5\xbbJ\xd1\x90\xe3\x15B5]\x04\x06\xc9p\xae\xa3\to\xca\x1b|\
+\x1dFR\xe9$cH\xb1\x97\n\xc28o\x14\xe3\x15@\xd5\xcc\x06\xd6\x91$\xf4\xaf\xe3p\
+0.H(\xdd(I\xa2\xd5\xa1\xed\xc0r&I\xc2"`\x16*V\xd7 WG\x1aR\xbc\x06\xd0\x90\
+\xe3.\xc0\x10%\xf4o8\xa0T\x95U\x12\x84A\xf5Xm9\xd6\x04^\xae<\x8c\x99\r\x83$\
+\t:\'\x12\x06S\xbc\x0c|[\x95\xa6\xb2AR\xa4x\xad\x84\x82\xd5\xe8\x08Q\xb6\xd0\
+\\\xbbk\x08\r9\xee2\xaaD\xb9\x19z\x15\x92ln\xaa\xddG\xd5\x1f\xd9K\xc5\xc0\
+\x9c\xd7\x96\x9b\xe3Q\xdf\x02\xafy\xa0\xed\x0f4\xe4\xb8\xc7\xb8\xeb\xd6\x9e\
+\n\xe3\x1c\xdf\x95\x84qQ\x8aX\xbco\xfc\x89W\x0f\xaa~\xc9q\xd0\x90\xe1\xb5\
+\x8f\x86\x1c\x1b4h\xd0\xa0\x06\xa3[c7h\xd0\xa0\xc1u\x8c\x86\x1c\x1b4h\xd0\
+\xa0\x06\r96h\xd0\xa0A\r\x1arl\xd0\xa0A\x83\x1a4\xe4\xd8\xa0A\x83\x065h\xc8\
+\xb1A\x83\x06\rj\xd0\x90c\x83\x06\r\x1a\xd4\xa0!\xc7\x06\r\x1a4\xa8AC\x8e\r\
+\x1a4hP\x83\x86\x1c\x1b4h\xd0\xa0\x06\r96h\xd0\xa0A\r\x1arl\xd0\xa0A\x83\x1a\
+4\xe4\xd8\xa0A\x83\x065h\xc8\xb1A\x83\x06\rj\xd0\x90c\x83\x06\r\x1a\xd4\xa0!\
+\xc7\x06\r\x1a4\xa8AC\x8e\r\x1a4hP\x83\x86\x1c\x1b4h\xd0\xa0\x06\r96h\xd0\
+\xa0A\r\x1arl\xd0\xa0A\x83\x1a4\xe4\xd8\xa0A\x83\x065h\xc8\xb1A\x83\x06\rj\
+\xd0\x90c\x83\x06\r\x1a\xd4\xa0!\xc7\x06\r\x1a4\xa8AC\x8e\r\x1a4hP\x83\xff\
+\x1f#)\x1ae\xc4\xe8lg\x00\x00\x00\x00IEND\xaeB`\x82'
+
+def getTuxBitmap():
+ return wxBitmapFromImage(getTuxImage())
+
+def getTuxImage():
+ stream = cStringIO.StringIO(getTuxData())
+ return wxImageFromStream(stream)
+
diff --git a/wxPython/demo/infoframe.py b/wxPython/demo/infoframe.py
index 7f19771460..24ea6570e1 100644
--- a/wxPython/demo/infoframe.py
+++ b/wxPython/demo/infoframe.py
@@ -9,10 +9,10 @@ class MyFrame(wxFrame):
wxFrame.__init__(self,None,-1,"Close me...",size=(300,100))
menubar = wxMenuBar()
menu = wxMenu()
- mID = NewId()
+ mID = wxNewId()
menu.Append(mID,"&Enable output","Display output frame")
EVT_MENU(self,mID,output.EnableOutput)
- mID = NewId()
+ mID = wxNewId()
menu.Append(mID,"&Disable output","Close output frame")
EVT_MENU(self,mID,output.DisableOutput)
menubar.Append(menu,"&Output")
@@ -63,10 +63,10 @@ if __name__ == "__main__":
## EVT_CLOSE(self,self.OnClose)
## menubar = wxMenuBar()
## menu = wxMenu()
-## mID = NewId()
+## mID = wxNewId()
## menu.Append(mID,"&Enable output","Display output frame")
## EVT_MENU(self,mID,output.EnableOutput)
-## mID = NewId()
+## mID = wxNewId()
## menu.Append(mID,"&Disable output","Close output frame")
## EVT_MENU(self,mID,output.DisableOutput)
## menubar.Append(menu,"&Output")
diff --git a/wxPython/demo/run.py b/wxPython/demo/run.py
index fcf5bd9029..7b83f581fa 100755
--- a/wxPython/demo/run.py
+++ b/wxPython/demo/run.py
@@ -17,9 +17,9 @@ directory within its own frame window. Just specify the module name
on the command line.
"""
+import wx # This module uses the new wx namespace
import sys, os
-from wxPython.wx import *
#----------------------------------------------------------------------------
@@ -27,32 +27,34 @@ class Log:
def WriteText(self, text):
if text[-1:] == '\n':
text = text[:-1]
- wxLogMessage(text)
+ wx.LogMessage(text)
write = WriteText
-class RunDemoApp(wxApp):
+class RunDemoApp(wx.App):
def __init__(self, name, module):
self.name = name
self.demoModule = module
- wxApp.__init__(self, 0) ##wxPlatform == "__WXMAC__")
+ wx.App.__init__(self, 0)
def OnInit(self):
- wxInitAllImageHandlers()
- wxLog_SetActiveTarget(wxLogStderr())
+ wx.InitAllImageHandlers()
+ wx.Log_SetActiveTarget(wx.LogStderr())
- frame = wxFrame(None, -1, "RunDemo: " + self.name, pos=(50,50), size=(0,0),
- style=wxNO_FULL_REPAINT_ON_RESIZE|wxDEFAULT_FRAME_STYLE)
+ #self.SetAssertMode(wx.PYAPP_ASSERT_DIALOG)
+
+ frame = wx.Frame(None, -1, "RunDemo: " + self.name, pos=(50,50), size=(0,0),
+ style=wx.NO_FULL_REPAINT_ON_RESIZE|wx.DEFAULT_FRAME_STYLE)
frame.CreateStatusBar()
- menuBar = wxMenuBar()
- menu = wxMenu()
+ menuBar = wx.MenuBar()
+ menu = wx.Menu()
menu.Append(101, "E&xit\tAlt-X", "Exit demo")
- EVT_MENU(self, 101, self.OnButton)
+ wx.EVT_MENU(self, 101, self.OnButton)
menuBar.Append(menu, "&File")
frame.SetMenuBar(menuBar)
frame.Show(True)
- EVT_CLOSE(frame, self.OnCloseFrame)
+ wx.EVT_CLOSE(frame, self.OnCloseFrame)
win = self.demoModule.runTest(frame, frame, Log())
@@ -68,9 +70,9 @@ class RunDemoApp(wxApp):
# otherwise the demo made its own frame, so just put a
# button in this one
if hasattr(frame, 'otherWin'):
- b = wxButton(frame, -1, " Exit ")
+ b = wx.Button(frame, -1, " Exit ")
frame.SetSize((200, 100))
- EVT_BUTTON(frame, b.GetId(), self.OnButton)
+ wx.EVT_BUTTON(frame, b.GetId(), self.OnButton)
else:
# It was probably a dialog or something that is already
# gone, so we're done.
@@ -79,8 +81,8 @@ class RunDemoApp(wxApp):
self.SetTopWindow(frame)
self.frame = frame
- #wxLog_SetActiveTarget(wxLogStderr())
- #wxLog_SetTraceMask(wxTraceMessages)
+ #wx.Log_SetActiveTarget(wx.LogStderr())
+ #wx.Log_SetTraceMask(wx.TraceMessages)
return True
diff --git a/wxPython/demo/simple.py b/wxPython/demo/simple.py
index 6b28148228..07a750c639 100644
--- a/wxPython/demo/simple.py
+++ b/wxPython/demo/simple.py
@@ -5,38 +5,38 @@
# structure of any wxPython application.
#----------------------------------------------------------------------
-from wxPython.wx import *
+import wx # This module uses the new wx namespace
-class MyFrame(wxFrame):
+class MyFrame(wx.Frame):
"""
This is MyFrame. It just shows a few controls on a wxPanel,
and has a simple menu.
"""
def __init__(self, parent, title):
- wxFrame.__init__(self, parent, -1, title, size=(350, 200))
+ wx.Frame.__init__(self, parent, -1, title, size=(350, 200))
- menuBar = wxMenuBar()
- menu = wxMenu()
+ menuBar = wx.MenuBar()
+ menu = wx.Menu()
menu.Append(101, "E&xit\tAlt-X", "Exit demo")
- EVT_MENU(self, 101, self.OnButton)
+ wx.EVT_MENU(self, 101, self.OnButton)
menuBar.Append(menu, "&File")
self.SetMenuBar(menuBar)
- panel = wxPanel(self, -1)
- text = wxStaticText(panel, -1, "Hello World!")
- text.SetFont(wxFont(12, wxSWISS, wxNORMAL, wxBOLD))
+ panel = wx.Panel(self, -1)
+ text = wx.StaticText(panel, -1, "Hello World!")
+ text.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
text.SetSize(text.GetBestSize())
- btn = wxButton(panel, -1, "Close")
+ btn = wx.Button(panel, -1, "Close")
btn.SetDefault()
- sizer = wxBoxSizer(wxVERTICAL)
- sizer.Add(text, 0, wxALL, 10)
- sizer.Add(btn, 0, wxALL, 10)
+ sizer = wx.BoxSizer(wx.VERTICAL)
+ sizer.Add(text, 0, wx.ALL, 10)
+ sizer.Add(btn, 0, wx.ALL, 10)
panel.SetSizer(sizer)
panel.SetAutoLayout(True)
panel.Layout()
- EVT_BUTTON(self, btn.GetId(), self.OnButton)
+ wx.EVT_BUTTON(self, btn.GetId(), self.OnButton)
def OnButton(self, evt):
@@ -44,7 +44,8 @@ class MyFrame(wxFrame):
print "OnButton"
self.Close()
-app = wxPySimpleApp()
+
+app = wx.PySimpleApp()
frame = MyFrame(None, "Simple wxPython App")
frame.Show(True)
app.MainLoop()
diff --git a/wxPython/demo/template.py b/wxPython/demo/template.py
index 9be55905b9..8be058bfee 100644
--- a/wxPython/demo/template.py
+++ b/wxPython/demo/template.py
@@ -1,12 +1,12 @@
-from wxPython.wx import *
+import wx # This module uses the new wx namespace
#----------------------------------------------------------------------
-class TestPanel(wxPanel):
+class TestPanel(wx.Panel):
def __init__(self, parent, log):
self.log = log
- wxPanel.__init__(self, parent, -1)
+ wx.Panel.__init__(self, parent, -1)
#----------------------------------------------------------------------
diff --git a/wxPython/demo/wxCalendar.py b/wxPython/demo/wxCalendar.py
index 5c14011608..3b8499d7ce 100644
--- a/wxPython/demo/wxCalendar.py
+++ b/wxPython/demo/wxCalendar.py
@@ -61,7 +61,7 @@ class TestPanel(wxPanel):
monthlist = GetMonthList()
- mID = NewId()
+ mID = wxNewId()
self.date = wxComboBox(self, mID, "",
wxPoint(100, 20), wxSize(90, -1),
monthlist, wxCB_DROPDOWN)
@@ -89,7 +89,7 @@ class TestPanel(wxPanel):
# scroll bar for month selection
- mID = NewId()
+ mID = wxNewId()
self.scroll = wxScrollBar(self, mID, wxPoint(100, 240), wxSize(200, 20), wxSB_HORIZONTAL)
self.scroll.SetScrollbar(start_month-1, 1, 12, 1, True)
EVT_COMMAND_SCROLL(self, mID, self.Scroll)
@@ -99,7 +99,7 @@ class TestPanel(wxPanel):
self.dtext = wxTextCtrl(self, -1, str(start_year), wxPoint(200, 20), wxSize(60, -1))
h = self.dtext.GetSize().height
- mID = NewId()
+ mID = wxNewId()
self.spin = wxSpinButton(self, mID, wxPoint(270, 20), wxSize(h*2, h))
self.spin.SetRange(1980, 2010)
self.spin.SetValue(start_year)
@@ -109,7 +109,7 @@ class TestPanel(wxPanel):
wxStaticText(self, -1, "Test Calendar Dialog", wxPoint(350, 50), wxSize(150, -1))
- mID = NewId()
+ mID = wxNewId()
bmp = images.getCalendarBitmap()
self.but = wxBitmapButton(self, mID, bmp, wxPoint(380, 80))#, wxSize(30, 30))
EVT_BUTTON(self, mID, self.TestDlg)
@@ -118,13 +118,13 @@ class TestPanel(wxPanel):
wxStaticText(self, -1, "Test Calendar Window", wxPoint(350, 150), wxSize(150, -1))
- mID = NewId()
+ mID = wxNewId()
self.but = wxBitmapButton(self, mID, bmp, wxPoint(380, 180))#, wxSize(30, 30))
EVT_BUTTON(self, mID, self.TestFrame)
wxStaticText(self, -1, "Test Calendar Print", wxPoint(350, 250), wxSize(150, -1))
- mID = NewId()
+ mID = wxNewId()
self.but = wxBitmapButton(self, mID, bmp, wxPoint(380, 280))#, wxSize(30, 30))
EVT_BUTTON(self, mID, self.OnPreview)
@@ -299,17 +299,17 @@ class CalendFrame(wxFrame):
def MakeFileMenu(self):
menu = wxMenu()
- mID = NewId()
+ mID = wxNewId()
menu.Append(mID, 'Decrement', 'Next')
EVT_MENU(self, mID, self.OnDecMonth)
- mID = NewId()
+ mID = wxNewId()
menu.Append(mID, 'Increment', 'Dec')
EVT_MENU(self, mID, self.OnIncMonth)
menu.AppendSeparator()
- mID = NewId()
+ mID = wxNewId()
menu.Append(mID, 'E&xit', 'Exit')
EVT_MENU(self, mID, self.OnCloseWindow)
@@ -318,23 +318,23 @@ class CalendFrame(wxFrame):
def MakeToolMenu(self):
tb = self.CreateToolBar(wxTB_HORIZONTAL|wxNO_BORDER)
- mID = NewId()
+ mID = wxNewId()
SetToolPath(self, tb, mID, images.getDbDecBitmap(), 'Dec Year')
EVT_TOOL(self, mID, self.OnDecYear)
- mID = NewId()
+ mID = wxNewId()
SetToolPath(self, tb, mID, images.getDecBitmap(), 'Dec Month')
EVT_TOOL(self, mID, self.OnDecMonth)
- mID = NewId()
+ mID = wxNewId()
SetToolPath(self, tb, mID, images.getPtBitmap(), 'Current Month')
EVT_TOOL(self, mID, self.OnCurrent)
- mID = NewId()
+ mID = wxNewId()
SetToolPath(self, tb, mID, images.getIncBitmap(), 'Inc Month')
EVT_TOOL(self, mID, self.OnIncMonth)
- mID = NewId()
+ mID = wxNewId()
SetToolPath(self, tb, mID, images.getDbIncBitmap(), 'Inc Year')
EVT_TOOL(self, mID, self.OnIncYear)
diff --git a/wxPython/demo/wxCalendarCtrl.py b/wxPython/demo/wxCalendarCtrl.py
index 7afc4c37d7..787ab71ae0 100644
--- a/wxPython/demo/wxCalendarCtrl.py
+++ b/wxPython/demo/wxCalendarCtrl.py
@@ -11,7 +11,10 @@ class TestPanel(wxPanel):
self.log = log
cal = wxCalendarCtrl(self, -1, wxDateTime_Now(), pos = (25,50),
- style = wxCAL_SHOW_HOLIDAYS | wxCAL_SUNDAY_FIRST)
+ style = wxCAL_SHOW_HOLIDAYS
+ | wxCAL_SUNDAY_FIRST
+ #| wxCAL_SEQUENTIAL_MONTH_SELECTION
+ )
EVT_CALENDAR(self, cal.GetId(), self.OnCalSelected)
@@ -55,3 +58,12 @@ version described in the docs. This one will probably be a bit more efficient
than the one in wxPython.lib.calendar, but I like a few things about it better,
so I think both will stay in wxPython.
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxCheckBox.py b/wxPython/demo/wxCheckBox.py
index e2e81e3f28..529de660bb 100644
--- a/wxPython/demo/wxCheckBox.py
+++ b/wxPython/demo/wxCheckBox.py
@@ -11,7 +11,7 @@ class TestCheckBox(wxPanel):
wxStaticText(self, -1, "This example uses the wxCheckBox control.",
wxPoint(10, 10))
- cID = NewId()
+ cID = wxNewId()
cb1 = wxCheckBox(self, cID, " Apples", wxPoint(65, 40), wxSize(150, 20), wxNO_BORDER)
cb2 = wxCheckBox(self, cID+1, " Oranges", wxPoint(65, 60), wxSize(150, 20), wxNO_BORDER)
cb2.SetValue(True)
@@ -51,3 +51,11 @@ overview = """\
A checkbox is a labelled box which is either on (checkmark is visible) or off (no checkmark).
"""
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxCheckListBox.py b/wxPython/demo/wxCheckListBox.py
index 434ecf2e06..8eec482923 100644
--- a/wxPython/demo/wxCheckListBox.py
+++ b/wxPython/demo/wxCheckListBox.py
@@ -70,13 +70,15 @@ def runTest(frame, nb, log):
+overview = """\
+"""
-
-overview = """\
-"""
-
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxChoice.py b/wxPython/demo/wxChoice.py
index 9cd83ce3b2..d92f4f8e45 100644
--- a/wxPython/demo/wxChoice.py
+++ b/wxPython/demo/wxChoice.py
@@ -46,3 +46,13 @@ def runTest(frame, nb, log):
overview = """\
A choice item is used to select one of a list of strings. Unlike a listbox, only the selection is visible until the user pulls down the menu of choices.
"""
+
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxColourDialog.py b/wxPython/demo/wxColourDialog.py
index c4d42aebbf..151db30873 100644
--- a/wxPython/demo/wxColourDialog.py
+++ b/wxPython/demo/wxColourDialog.py
@@ -29,3 +29,13 @@ This class represents the colour chooser dialog.
"""
+
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxComboBox.py b/wxPython/demo/wxComboBox.py
index 37e52cbb37..13e8fced0d 100644
--- a/wxPython/demo/wxComboBox.py
+++ b/wxPython/demo/wxComboBox.py
@@ -15,6 +15,7 @@ class TestComboBox(wxPanel):
wxPanel.__init__(self, parent, -1)
sampleList = ['zero', 'one', 'two', 'three', 'four', 'five',
+ ##'this is a long item that needs a scrollbar...',
'six', 'seven', 'eight']
wxStaticText(self, -1, "This example uses the wxComboBox control.",
@@ -23,6 +24,11 @@ class TestComboBox(wxPanel):
wxStaticText(self, -1, "Select one:", wxPoint(15, 50), wxSize(75, 18))
cb = wxComboBox(self, 500, "default value", wxPoint(90, 50), wxSize(95, -1),
sampleList, wxCB_DROPDOWN)#|wxTE_PROCESS_ENTER)
+ ##import win32api, win32con
+ ##win32api.SendMessage(cb.GetHandle(),
+ ## win32con.CB_SETHORIZONTALEXTENT,
+ ## 200, 0)
+
EVT_COMBOBOX(self, 500, self.EvtComboBox)
EVT_TEXT(self, 500, self.EvtText)
EVT_TEXT_ENTER(self, 500, self.EvtTextEnter)
diff --git a/wxPython/demo/wxEditableListBox.py b/wxPython/demo/wxEditableListBox.py
index b8816cad1d..97b951a6e0 100644
--- a/wxPython/demo/wxEditableListBox.py
+++ b/wxPython/demo/wxEditableListBox.py
@@ -40,3 +40,12 @@ overview = """\
This class provides a composite control that lets the
user easily enter and edit a list of strings.
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxFileDialog.py b/wxPython/demo/wxFileDialog.py
index a73dc06970..a87dc17194 100644
--- a/wxPython/demo/wxFileDialog.py
+++ b/wxPython/demo/wxFileDialog.py
@@ -1,5 +1,6 @@
from wxPython.wx import *
+import os
#---------------------------------------------------------------------------
@@ -8,12 +9,18 @@ wildcard = "Python source (*.py)|*.py|" \
"All files (*.*)|*.*"
def runTest(frame, nb, log):
- dlg = wxFileDialog(frame, "Choose a file", "", "", wildcard, wxOPEN|wxMULTIPLE)
+ log.WriteText("CWD: %s\n" % os.getcwd())
+ dlg = wxFileDialog(frame, "Choose a file", os.getcwd(), "", wildcard,
+ wxOPEN
+ | wxMULTIPLE
+ #| wxCHANGE_DIR
+ )
if dlg.ShowModal() == wxID_OK:
paths = dlg.GetPaths()
log.WriteText('You selected %d files:' % len(paths))
for path in paths:
log.WriteText(' %s\n' % path)
+ log.WriteText("CWD: %s\n" % os.getcwd())
dlg.Destroy()
#---------------------------------------------------------------------------
@@ -24,14 +31,14 @@ def runTest(frame, nb, log):
+overview = """\
+This class provides the file chooser dialog.
+"""
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
-
-
-
-overview = """\
-This class represents the file chooser dialog.
-
-"""
diff --git a/wxPython/demo/wxFileDialog_Save.py b/wxPython/demo/wxFileDialog_Save.py
new file mode 100644
index 0000000000..3e404a0ea6
--- /dev/null
+++ b/wxPython/demo/wxFileDialog_Save.py
@@ -0,0 +1,44 @@
+
+from wxPython.wx import *
+import os
+
+#---------------------------------------------------------------------------
+
+wildcard = "Python source (*.py)|*.py|" \
+ "Compiled Python (*.pyc)|*.pyc|" \
+ "SPAM files (*.spam)|*.spam|" \
+ "Egg file (*.egg)|*.egg|" \
+ "All files (*.*)|*.*"
+
+def runTest(frame, nb, log):
+ log.WriteText("CWD: %s\n" % os.getcwd())
+ dlg = wxFileDialog(frame, "Save file as...", os.getcwd(), "", wildcard,
+ wxSAVE
+ #| wxCHANGE_DIR
+ )
+ dlg.SetFilterIndex(2)
+ if dlg.ShowModal() == wxID_OK:
+ path = dlg.GetPath()
+ log.WriteText('You selected "%s"' % path)
+ log.WriteText("CWD: %s\n" % os.getcwd())
+ dlg.Destroy()
+
+#---------------------------------------------------------------------------
+
+
+
+
+
+
+
+overview = """\
+This class provides the file chooser dialog.
+
+"""
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxFindReplaceDialog.py b/wxPython/demo/wxFindReplaceDialog.py
index c0217aedec..306c825205 100644
--- a/wxPython/demo/wxFindReplaceDialog.py
+++ b/wxPython/demo/wxFindReplaceDialog.py
@@ -76,3 +76,12 @@ def runTest(frame, nb, log):
overview = """\
A generic find and replace dialog.
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxFloatBar.py b/wxPython/demo/wxFloatBar.py
index ff323abe7e..1daf702276 100644
--- a/wxPython/demo/wxFloatBar.py
+++ b/wxPython/demo/wxFloatBar.py
@@ -75,9 +75,11 @@ def runTest(frame, nb, log):
#---------------------------------------------------------------------------
overview = """\
-wxFloatBar is a subclass of wxToolBar, implemented in Python, which can be detached from its frame.
+wxFloatBar is a subclass of wxToolBar, implemented in Python, which
+can be detached from its frame.
-Drag the toolbar with the mouse to make it float, and drag it back, or close it to make the toolbar return to its original position.
+Drag the toolbar with the mouse to make it float, and drag it back, or
+close it to make the toolbar return to its original position.
"""
@@ -87,6 +89,13 @@ Drag the toolbar with the mouse to make it float, and drag it back, or close it
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
+
+
diff --git a/wxPython/demo/wxFrame.py b/wxPython/demo/wxFrame.py
index 428859beec..6fbc2d013f 100644
--- a/wxPython/demo/wxFrame.py
+++ b/wxPython/demo/wxFrame.py
@@ -43,3 +43,12 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxGauge.py b/wxPython/demo/wxGauge.py
index 21e185a439..754e1b4b21 100644
--- a/wxPython/demo/wxGauge.py
+++ b/wxPython/demo/wxGauge.py
@@ -52,3 +52,12 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxGenericDirCtrl.py b/wxPython/demo/wxGenericDirCtrl.py
index 7f338e67df..3af690277a 100644
--- a/wxPython/demo/wxGenericDirCtrl.py
+++ b/wxPython/demo/wxGenericDirCtrl.py
@@ -57,3 +57,10 @@ overview = """\
This control can be used to place a directory listing (with optional files)
on an arbitrary window.
"""
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxGrid.py b/wxPython/demo/wxGrid.py
index 365e0125e6..676be13eb5 100644
--- a/wxPython/demo/wxGrid.py
+++ b/wxPython/demo/wxGrid.py
@@ -11,6 +11,7 @@ buttonDefs = {
819 : ('GridEnterHandler',' Remapping keys to behave differently '),
820 : ('GridCustEditor', ' Shows how to create a custom Cell Editor '),
821 : ('GridDragable', ' A wxGrid with dragable rows and columns '),
+ 822 : ('GridDragAndDrop', 'Shows how to make a grid a drop target for files'),
}
@@ -26,7 +27,7 @@ class ButtonPanel(wxPanel):
for k in keys:
text = buttonDefs[k][1]
btn = wxButton(self, k, text)
- box.Add(btn, 0, wxALIGN_CENTER|wxALL, 15)
+ box.Add(btn, 0, wxALIGN_CENTER|wxALL, 10)
EVT_BUTTON(self, k, self.OnButton)
self.SetAutoLayout(True)
@@ -94,9 +95,6 @@ changes how the ENTER key works, moving the current cell left to right
and wrapping around to the next row when needed.
-You can also look at the SWIG interface
-file used to generate the grid module for a lot more clues as to
-how things work.
"""
diff --git a/wxPython/demo/wxGrid_MegaExample.py b/wxPython/demo/wxGrid_MegaExample.py
new file mode 100644
index 0000000000..17007e58ec
--- /dev/null
+++ b/wxPython/demo/wxGrid_MegaExample.py
@@ -0,0 +1,451 @@
+from wxPython.wx import *
+from wxPython.grid import *
+import images
+
+class MegaTable(wxPyGridTableBase):
+ """
+ A custom wxGrid Table using user supplied data
+ """
+ def __init__(self, data, colnames, plugins):
+ """data is a list of the form
+ [(rowname, dictionary),
+ dictionary.get(colname, None) returns the data for column
+ colname
+ """
+ # The base class must be initialized *first*
+ wxPyGridTableBase.__init__(self)
+ self.data = data
+ self.colnames = colnames
+ self.plugins = plugins or {}
+ # XXX
+ # we need to store the row length and collength to
+ # see if the table has changed size
+ self._rows = self.GetNumberRows()
+ self._cols = self.GetNumberCols()
+
+ def GetNumberCols(self):
+ return len(self.colnames)
+
+ def GetNumberRows(self):
+ return len(self.data)
+
+ def GetColLabelValue(self, col):
+ return self.colnames[col]
+
+ def GetRowLabelValues(self, row):
+ return self.data[row][0]
+
+ def GetValue(self, row, col):
+ return str(self.data[row][1].get(self.GetColLabelValue(col), ""))
+
+ def GetRawValue(self, row, col):
+ return self.data[row][1].get(self.GetColLabelValue(col), "")
+
+ def SetValue(self, row, col, value):
+ self.data[row][1][self.GetColLabelValue(col)] = value
+
+ def ResetView(self, grid):
+ """
+ (wxGrid) -> Reset the grid view. Call this to
+ update the grid if rows and columns have been added or deleted
+ """
+ grid.BeginBatch()
+ for current, new, delmsg, addmsg in [
+ (self._rows, self.GetNumberRows(), wxGRIDTABLE_NOTIFY_ROWS_DELETED, wxGRIDTABLE_NOTIFY_ROWS_APPENDED),
+ (self._cols, self.GetNumberCols(), wxGRIDTABLE_NOTIFY_COLS_DELETED, wxGRIDTABLE_NOTIFY_COLS_APPENDED),
+ ]:
+ if new < current:
+ msg = wxGridTableMessage(self,delmsg,new,current-new)
+ grid.ProcessTableMessage(msg)
+ elif new > current:
+ msg = wxGridTableMessage(self,addmsg,new-current)
+ grid.ProcessTableMessage(msg)
+ self.UpdateValues(grid)
+ grid.EndBatch()
+
+ self._rows = self.GetNumberRows()
+ self._cols = self.GetNumberCols()
+ # update the column rendering plugins
+ self._updateColAttrs(grid)
+
+ # update the scrollbars and the displayed part of the grid
+ grid.AdjustScrollbars()
+ grid.ForceRefresh()
+
+
+ def UpdateValues(self, grid):
+ """Update all displayed values"""
+ # This sends an event to the grid table to update all of the values
+ msg = wxGridTableMessage(self, wxGRIDTABLE_REQUEST_VIEW_GET_VALUES)
+ grid.ProcessTableMessage(msg)
+
+ def _updateColAttrs(self, grid):
+ """
+ wxGrid -> update the column attributes to add the
+ appropriate renderer given the column name. (renderers
+ are stored in the self.plugins dictionary)
+
+ Otherwise default to the default renderer.
+ """
+ col = 0
+ for colname in self.colnames:
+ attr = wxGridCellAttr()
+ if colname in self.plugins:
+ renderer = self.plugins[colname](self)
+ if renderer.colSize:
+ grid.SetColSize(col, renderer.colSize)
+ if renderer.rowSize:
+ grid.SetDefaultRowSize(renderer.rowSize)
+ attr.SetReadOnly(true)
+ attr.SetRenderer(renderer)
+ grid.SetColAttr(col, attr)
+ col += 1
+
+ # ------------------------------------------------------
+ # begin the added code to manipulate the table (non wx related)
+ def AppendRow(self, row):
+ entry = {}
+ for name in self.colnames:
+ entry[name] = "Appended_%i"%row
+ # XXX Hack
+ # entry["A"] can only be between 1..4
+ entry["A"] = random.choice(range(4))
+ self.data.insert(row, ["Append_%i"%row, entry])
+
+ def DeleteCols(self, cols):
+ """
+ cols -> delete the columns from the dataset
+ cols hold the column indices
+ """
+ # we'll cheat here and just remove the name from the
+ # list of column names. The data will remain but
+ # it won't be shown
+ deleteCount = 0
+ cols = cols[:]
+ cols.sort()
+ for i in cols:
+ self.colnames.pop(i-deleteCount)
+ # we need to advance the delete count
+ # to make sure we delete the right columns
+ deleteCount += 1
+ if not len(self.colnames):
+ self.data = []
+
+ def DeleteRows(self, rows):
+ """
+ rows -> delete the rows from the dataset
+ rows hold the row indices
+ """
+ deleteCount = 0
+ rows = rows[:]
+ rows.sort()
+ for i in rows:
+ self.data.pop(i-deleteCount)
+ # we need to advance the delete count
+ # to make sure we delete the right rows
+ deleteCount += 1
+
+ def SortColumn(self, col):
+ """
+ col -> sort the data based on the column indexed by col
+ """
+ name = self.colnames[col]
+ _data = []
+ for row in self.data:
+ rowname, entry = row
+ _data.append((entry.get(name, None), row))
+
+ _data.sort()
+ self.data = []
+ for sortvalue, row in _data:
+ self.data.append(row)
+
+ # end table manipulation code
+ # ----------------------------------------------------------
+
+
+# --------------------------------------------------------------------
+# Sample wxGrid renderers
+
+class MegaImageRenderer(wxPyGridCellRenderer):
+ def __init__(self, table):
+ """
+ Image Renderer Test. This just places an image in a cell
+ based on the row index. There are N choices and the
+ choice is made by choice[row%N]
+ """
+ wxPyGridCellRenderer.__init__(self)
+ self.table = table
+ self._choices = [images.getSmilesBitmap,
+ images.getMondrianBitmap,
+ images.get_10s_Bitmap,
+ images.get_01c_Bitmap]
+
+
+ self.colSize = None
+ self.rowSize = None
+
+ def Draw(self, grid, attr, dc, rect, row, col, isSelected):
+ choice = self.table.GetRawValue(row, col)
+ bmp = self._choices[ choice % len(self._choices)]()
+ image = wxMemoryDC()
+ image.SelectObject(bmp)
+
+ # clear the background
+ dc.SetBackgroundMode(wxSOLID)
+ if isSelected:
+ dc.SetBrush(wxBrush(wxBLUE, wxSOLID))
+ dc.SetPen(wxPen(wxBLUE, 1, wxSOLID))
+ else:
+ dc.SetBrush(wxBrush(wxWHITE, wxSOLID))
+ dc.SetPen(wxPen(wxWHITE, 1, wxSOLID))
+ dc.DrawRectangle(rect.x, rect.y, rect.width, rect.height)
+
+ # copy the image but only to the size of the grid cell
+ width, height = bmp.GetWidth(), bmp.GetHeight()
+ if width > rect.width-2:
+ width = rect.width-2
+
+ if height > rect.height-2:
+ height = rect.height-2
+
+ dc.Blit(rect.x+1, rect.y+1, width, height,
+ image,
+ 0, 0, wxCOPY, True)
+
+
+class MegaFontRenderer(wxPyGridCellRenderer):
+ def __init__(self, table, color="blue", font="ARIAL", fontsize=8):
+ """Render data in the specified color and font and fontsize"""
+ wxPyGridCellRenderer.__init__(self)
+ self.table = table
+ self.color = color
+ self.font = wxFont(fontsize, wxDEFAULT, wxNORMAL, wxNORMAL,
+ 0, font)
+ self.selectedBrush = wxBrush("blue",
+ wxSOLID)
+ self.normalBrush = wxBrush(wxWHITE, wxSOLID)
+ self.colSize = None
+ self.rowSize = 50
+
+ def Draw(self, grid, attr, dc, rect, row, col, isSelected):
+ # Here we draw text in a grid cell using various fonts
+ # and colors. We have to set the clipping region on
+ # the grid's DC, otherwise the text will spill over
+ # to the next cell
+ dc.SetClippingRect(rect)
+
+ # clear the background
+ dc.SetBackgroundMode(wxSOLID)
+ if isSelected:
+ dc.SetBrush(wxBrush(wxBLUE, wxSOLID))
+ dc.SetPen(wxPen(wxBLUE, 1, wxSOLID))
+ else:
+ dc.SetBrush(wxBrush(wxWHITE, wxSOLID))
+ dc.SetPen(wxPen(wxWHITE, 1, wxSOLID))
+ dc.DrawRectangle(rect.x, rect.y, rect.width, rect.height)
+
+ text = self.table.GetValue(row, col)
+ dc.SetBackgroundMode(wxSOLID)
+
+ # change the text background based on whether the grid is selected
+ # or not
+ if isSelected:
+ dc.SetBrush(self.selectedBrush)
+ dc.SetTextBackground("blue")
+ else:
+ dc.SetBrush(self.normalBrush)
+ dc.SetTextBackground("white")
+
+ dc.SetTextForeground(self.color)
+ dc.SetFont(self.font)
+ dc.DrawText(text, rect.x+1, rect.y+1)
+
+ # Okay, now for the advanced class :)
+ # Let's add three dots "..."
+ # to indicate that that there is more text to be read
+ # when the text is larger than the grid cell
+
+ width, height = dc.GetTextExtent(text)
+ if width > rect.width-2:
+ width, height = dc.GetTextExtent("...")
+ x = rect.x+1 + rect.width-2 - width
+ dc.DrawRectangle(x, rect.y+1, width+1, height)
+ dc.DrawText("...", x, rect.y+1)
+
+ dc.DestroyClippingRegion()
+
+
+# --------------------------------------------------------------------
+# Sample Grid using a specialized table and renderers that can
+# be plugged in based on column names
+
+class MegaGrid(wxGrid):
+ def __init__(self, parent, data, colnames, plugins=None):
+ """parent, data, colnames, plugins=None
+ Initialize a grid using the data defined in data and colnames
+ (see MegaTable for a description of the data format)
+ plugins is a dictionary of columnName -> column renderers.
+ """
+
+ # The base class must be initialized *first*
+ wxGrid.__init__(self, parent, -1)
+ self._table = MegaTable(data, colnames, plugins)
+ self.SetTable(self._table)
+ self._plugins = plugins
+
+ EVT_GRID_LABEL_RIGHT_CLICK(self, self.OnLabelRightClicked)
+
+ def Reset(self):
+ """reset the view based on the data in the table. Call
+ this when rows are added or destroyed"""
+ self._table.ResetView(self)
+
+ def OnLabelRightClicked(self, evt):
+ # Did we click on a row or a column?
+ row, col = evt.GetRow(), evt.GetCol()
+ if row == -1: self.colPopup(col, evt)
+ elif col == -1: self.rowPopup(row, evt)
+
+ def rowPopup(self, row, evt):
+ """(row, evt) -> display a popup menu when a row label is right clicked"""
+ appendID = wxNewId()
+ deleteID = wxNewId()
+ x = self.GetRowSize(row)/2
+ if not self.GetSelectedRows():
+ self.SelectRow(row)
+ menu = wxMenu()
+ xo, yo = evt.GetPosition()
+ menu.Append(appendID, "Append Row")
+ menu.Append(deleteID, "Delete Row(s)")
+
+ def append(event, self=self, row=row):
+ self._table.AppendRow(row)
+ self.Reset()
+
+ def delete(event, self=self, row=row):
+ rows = self.GetSelectedRows()
+ self._table.DeleteRows(rows)
+ self.Reset()
+
+ EVT_MENU(self, appendID, append)
+ EVT_MENU(self, deleteID, delete)
+ self.PopupMenu(menu, wxPoint(x, yo))
+ menu.Destroy()
+
+ def colPopup(self, col, evt):
+ """(col, evt) -> display a popup menu when a column label is
+ right clicked"""
+ x = self.GetColSize(col)/2
+ menu = wxMenu()
+ id1 = wxNewId()
+ sortID = wxNewId()
+
+ xo, yo = evt.GetPosition()
+ self.SelectCol(col)
+ cols = self.GetSelectedCols()
+ self.Refresh()
+ menu.Append(id1, "Delete Col(s)")
+ menu.Append(sortID, "Sort Column")
+
+ def delete(event, self=self, col=col):
+ cols = self.GetSelectedCols()
+ self._table.DeleteCols(cols)
+ self.Reset()
+
+ def sort(event, self=self, col=col):
+ self._table.SortColumn(col)
+ self.Reset()
+
+ EVT_MENU(self, id1, delete)
+ if len(cols) == 1:
+ EVT_MENU(self, sortID, sort)
+ self.PopupMenu(menu, wxPoint(xo, 0))
+ menu.Destroy()
+
+# -----------------------------------------------------------------
+# Test data
+# data is in the form
+# [rowname, dictionary]
+# where dictionary.get(colname, None) -> returns the value for the cell
+#
+# the colname must also be supplied
+import random
+colnames = ["Row", "This", "Is", "A", "Test"]
+
+data = []
+for row in range(1000):
+ d = {}
+ for name in ["This", "Test", "Is"]:
+ d[name] = random.random()
+ d["Row"] = len(data)
+ # XXX
+ # the "A" column can only be between one and 4
+ d["A"] = random.choice(range(4))
+ data.append((str(row), d))
+
+class MegaFontRendererFactory:
+ def __init__(self, color, font, fontsize):
+ """
+ (color, font, fontsize) -> set of a factory to generate
+ renderers when called.
+ func = MegaFontRenderFactory(color, font, fontsize)
+ renderer = func(table)
+ """
+ self.color = color
+ self.font = font
+ self.fontsize = fontsize
+
+ def __call__(self, table):
+ return MegaFontRenderer(table, self.color, self.font, self.fontsize)
+
+
+#---------------------------------------------------------------------------
+
+class TestFrame(wxFrame):
+ def __init__(self, parent, plugins={"This":MegaFontRendererFactory("red", "ARIAL", 8),
+ "A":MegaImageRenderer,
+ "Test":MegaFontRendererFactory("orange", "TIMES", 24),}):
+ wxFrame.__init__(self, parent, -1,
+ "Test Frame", size=(640,480))
+
+ grid = MegaGrid(self, data, colnames, plugins)
+ grid.Reset()
+
+
+#---------------------------------------------------------------------------
+
+def runTest(frame, nb, log):
+ win = TestFrame(frame)
+ frame.otherWin = win
+ win.Show(True)
+
+
+
+overview = """Mega Grid Example
+
+This example attempts to show many examples and tricks of
+using a virtual grid object. Hopefully the source isn't too jumbled.
+
+Features:
+ 1) Uses a virtual grid
+ 2) Columns and rows have popup menus (right click on labels)
+ 3) Columns and rows can be deleted (i.e. table can be
+ resized)
+ 4) Dynamic renderers. Renderers are plugins based on
+ column header name. Shows a simple Font Renderer and
+ an Image Renderer.
+
+Look for XXX in the code to indicate some workarounds for non-obvious
+behavior and various hacks.
+
+"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxImageFromStream.py b/wxPython/demo/wxImageFromStream.py
index 6953a2ca4c..1bf4fc7645 100644
--- a/wxPython/demo/wxImageFromStream.py
+++ b/wxPython/demo/wxImageFromStream.py
@@ -35,3 +35,12 @@ overview = """\
At long last there is finally a way to load any supported image type
directly from any Python file-like object, such as a memory buffer
using StringIO. """
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxJoystick.py b/wxPython/demo/wxJoystick.py
index 1c4882f40e..69555ee225 100644
--- a/wxPython/demo/wxJoystick.py
+++ b/wxPython/demo/wxJoystick.py
@@ -195,3 +195,12 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxLEDNumberCtrl.py b/wxPython/demo/wxLEDNumberCtrl.py
index d8907a35c1..4aead17541 100644
--- a/wxPython/demo/wxLEDNumberCtrl.py
+++ b/wxPython/demo/wxLEDNumberCtrl.py
@@ -46,3 +46,11 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxLayoutConstraints.py b/wxPython/demo/wxLayoutConstraints.py
index 4ffa033924..1c65b303df 100644
--- a/wxPython/demo/wxLayoutConstraints.py
+++ b/wxPython/demo/wxLayoutConstraints.py
@@ -114,10 +114,13 @@ def runTest(frame, nb, log):
-overview = """\
-Objects of this class can be associated with a window to define its layout constraints, with respect to siblings or its parent.
+overview = """\
+Objects of this class can be associated with a window to define its
+layout constraints, with respect to siblings or its parent.
-The class consists of the following eight constraints of class wxIndividualLayoutConstraint, some or all of which should be accessed directly to set the appropriate constraints.
+The class consists of the following eight constraints of class
+wxIndividualLayoutConstraint, some or all of which should be accessed
+directly to set the appropriate constraints.
left: represents the left hand edge of the window
@@ -135,10 +138,21 @@ centreX: represents the horizontal centre point of the window
centreY: represents the vertical centre point of the window
-Most constraints are initially set to have the relationship wxUnconstrained, which means that their values should be calculated by looking at known constraints. The exceptions are width and height, which are set to wxAsIs to ensure that if the user does not specify a constraint, the existing width and height will be used, to be compatible with panel items which often have take a default size. If the constraint is wxAsIs, the dimension will not be changed.
+Most constraints are initially set to have the relationship
+wxUnconstrained, which means that their values should be calculated by
+looking at known constraints. The exceptions are width and height,
+which are set to wxAsIs to ensure that if the user does not specify a
+constraint, the existing width and height will be used, to be
+compatible with panel items which often have take a default size. If
+the constraint is wxAsIs, the dimension will not be changed.
-wxLayoutConstraints()
--------------------------------------------
-
-Constructor.
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxListCtrl.py b/wxPython/demo/wxListCtrl.py
index d640ecddb6..501b148a3c 100644
--- a/wxPython/demo/wxListCtrl.py
+++ b/wxPython/demo/wxListCtrl.py
@@ -98,6 +98,7 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin):
self.list = TestListCtrl(self, tID,
style=wxLC_REPORT | wxSUNKEN_BORDER
+ | wxLC_EDIT_LABELS
#| wxLC_NO_HEADER
#| wxLC_VRULES | wxLC_HRULES
)
@@ -121,6 +122,7 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin):
EVT_LIST_COL_BEGIN_DRAG(self, tID, self.OnColBeginDrag)
EVT_LIST_COL_DRAGGING(self, tID, self.OnColDragging)
EVT_LIST_COL_END_DRAG(self, tID, self.OnColEndDrag)
+ EVT_LIST_BEGIN_LABEL_EDIT(self, tID, self.OnBeginEdit)
EVT_LEFT_DCLICK(self.list, self.OnDoubleClick)
EVT_RIGHT_DOWN(self.list, self.OnRightDown)
@@ -218,6 +220,8 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin):
#event.Veto() # doesn't work
# this does
self.list.SetItemState(10, 0, wxLIST_STATE_SELECTED)
+ event.Skip()
+
def OnItemDeselected(self, evt):
item = evt.GetItem()
@@ -233,6 +237,10 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin):
self.log.WriteText("OnItemActivated: %s\nTopItem: %s" %
(self.list.GetItemText(self.currentItem), self.list.GetTopItem()))
+ def OnBeginEdit(self, event):
+ self.log.WriteText("OnBeginEdit")
+ event.Allow()
+
def OnItemDelete(self, event):
self.log.WriteText("OnItemDelete\n")
@@ -265,30 +273,30 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin):
def OnRightClick(self, event):
self.log.WriteText("OnRightClick %s\n" % self.list.GetItemText(self.currentItem))
- # only do this part the first time
+ # only do this part the first time so the events are only bound once
if not hasattr(self, "popupID1"):
self.popupID1 = wxNewId()
self.popupID2 = wxNewId()
self.popupID3 = wxNewId()
self.popupID4 = wxNewId()
self.popupID5 = wxNewId()
+ self.popupID6 = wxNewId()
EVT_MENU(self, self.popupID1, self.OnPopupOne)
EVT_MENU(self, self.popupID2, self.OnPopupTwo)
EVT_MENU(self, self.popupID3, self.OnPopupThree)
EVT_MENU(self, self.popupID4, self.OnPopupFour)
EVT_MENU(self, self.popupID5, self.OnPopupFive)
+ EVT_MENU(self, self.popupID6, self.OnPopupSix)
# make a menu
menu = wxMenu()
- # Show how to put an icon in the menu
- item = wxMenuItem(menu, self.popupID1,"One")
- item.SetBitmap(images.getSmilesBitmap())
- menu.AppendItem(item)
- # add some other items
- menu.Append(self.popupID2, "Two")
+ # add some items
+ menu.Append(self.popupID1, "FindItem tests")
+# menu.Append(self.popupID2, "Two")
menu.Append(self.popupID3, "ClearAll and repopulate")
menu.Append(self.popupID4, "DeleteAllItems")
menu.Append(self.popupID5, "GetItem")
+ menu.Append(self.popupID6, "Edit")
# Popup the menu. If an item is selected then its handler
# will be called before PopupMenu returns.
@@ -308,8 +316,6 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin):
self.log.WriteText("Popup three\n")
self.list.ClearAll()
wxCallAfter(self.PopulateList)
- #wxYield()
- #self.PopulateList()
def OnPopupFour(self, event):
self.list.DeleteAllItems()
@@ -318,6 +324,10 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin):
item = self.list.GetItem(self.currentItem)
print item.m_text, item.m_itemId, self.list.GetItemData(self.currentItem)
+ def OnPopupSix(self, event):
+ self.list.EditLabel(self.currentItem)
+
+
def OnSize(self, event):
w,h = self.GetClientSizeTuple()
self.list.SetDimensions(0, 0, w, h)
diff --git a/wxPython/demo/wxListCtrl_virtual.py b/wxPython/demo/wxListCtrl_virtual.py
index 7dffd52fdd..c6af18cf2c 100644
--- a/wxPython/demo/wxListCtrl_virtual.py
+++ b/wxPython/demo/wxListCtrl_virtual.py
@@ -53,7 +53,7 @@ class TestVirtualList(wxListCtrl):
return item.GetText()
def OnItemDeselected(self, evt):
- print evt.m_itemIndex
+ self.log.WriteText("OnItemDeselected: %s" % evt.m_itemIndex)
#---------------------------------------------------
diff --git a/wxPython/demo/wxMDIWindows.py b/wxPython/demo/wxMDIWindows.py
index 7eef8a39c9..9df21dc221 100644
--- a/wxPython/demo/wxMDIWindows.py
+++ b/wxPython/demo/wxMDIWindows.py
@@ -52,3 +52,12 @@ it. Here are a couple samples of how to use it.
"""
+
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxMVCTree.py b/wxPython/demo/wxMVCTree.py
index 808f8870b3..17d71cd211 100644
--- a/wxPython/demo/wxMVCTree.py
+++ b/wxPython/demo/wxMVCTree.py
@@ -51,13 +51,22 @@ def runTest(frame, nb, log):
overview = """\
-wxMVCTree is a control which handles hierarchical data. It is constructed in model-view-controller architecture, so the display of that data, and the content of the data can be changed greatly without affecting the other parts.
+
+wxMVCTree is a control which handles hierarchical data. It is
+constructed in model-view-controller architecture, so the display of
+that data, and the content of the data can be changed greatly without
+affecting the other parts.
Multiple selections are possible by holding down the Ctrl key.
-This demo shows the wxPython directory structure. The interesting part is that the tree model is late-bound to the filesystem, so the filenames are not retrieved until the directory is expanded. In mvctree.py are models for generic data, and both the early and late-bound filesystem models.
+This demo shows the wxPython directory structure. The interesting part
+is that the tree model is late-bound to the filesystem, so the
+filenames are not retrieved until the directory is expanded. In
+mvctree.py are models for generic data, and both the early and
+late-bound filesystem models.
-There is also support for editing, though it's not enabled in this demo, to avoid accidentally renaming files!
+There is also support for editing, though it's not enabled in this
+demo, to avoid accidentally renaming files!
"""
@@ -65,6 +74,7 @@ There is also support for editing, though it's not enabled in this demo, to avoi
-
-
-
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxMenu.py b/wxPython/demo/wxMenu.py
index bdbf93489b..c209977197 100644
--- a/wxPython/demo/wxMenu.py
+++ b/wxPython/demo/wxMenu.py
@@ -7,6 +7,8 @@
from wxPython.wx import *
+import time
+
#-------------------------------------------------------------------
class MyFrame(wxFrame):
@@ -68,14 +70,24 @@ check the source for this sample to see how to implement them.
menu5 = wxMenu()
menu5.Append(501, "Interesting thing\tCtrl+A", "Note the shortcut!")
-
menu5.AppendSeparator()
menu5.Append(502, "Hello\tShift+H")
+ menu5.AppendSeparator()
+ menu5.Append(503, "remove the submenu")
+ menu6 = wxMenu()
+ menu6.Append(601, "Submenu Item")
+ menu5.AppendMenu(504, "submenu", menu6)
+ menu5.Append(505, "remove this menu")
+ menu5.Append(506, "this is updated")
+ menu5.Append(507, "insert after this...")
+ menu5.Append(508, "...and before this")
menuBar.Append(menu5, "&Fun")
self.SetMenuBar(menuBar)
# Menu events
+ EVT_MENU_HIGHLIGHT_ALL(self, self.OnMenuHighlight)
+
EVT_MENU(self, 101, self.Menu101)
EVT_MENU(self, 102, self.Menu102)
EVT_MENU(self, 103, self.Menu103)
@@ -97,9 +109,25 @@ check the source for this sample to see how to implement them.
EVT_MENU(self, 501, self.Menu501)
EVT_MENU(self, 502, self.Menu502)
+ EVT_MENU(self, 503, self.TestRemove)
+ EVT_MENU(self, 505, self.TestRemove2)
+ EVT_MENU(self, 507, self.TestInsert)
+ EVT_MENU(self, 508, self.TestInsert)
+
+ EVT_UPDATE_UI(wxGetApp(), 506, self.TestUpdateUI)
# Methods
+ def OnMenuHighlight(self, event):
+ # Show how to get menu item imfo from this event handler
+ id = event.GetMenuId()
+ item = self.GetMenuBar().FindItemById(id)
+ text = item.GetText()
+ help = item.GetHelp()
+ #print text, help
+ event.Skip() # but in this case just call Skip so the default is done
+
+
def Menu101(self, event):
self.log.write('Welcome to Mercury\n')
@@ -146,8 +174,49 @@ check the source for this sample to see how to implement them.
def Menu502(self, event):
self.log.write('Hello from Jean-Michel\n')
+
+ def TestRemove(self, evt):
+ mb = self.GetMenuBar()
+ submenuItem = mb.FindItemById(601)
+ if not submenuItem:
+ return
+ submenu = submenuItem.GetMenu()
+ menu = submenu.GetParent()
+
+ #menu.Remove(504) # works
+ menu.RemoveItem(mb.FindItemById(504)) # this also works
+ #menu.RemoveItem(submenuItem) # doesn't work, as expected since submenuItem is not on menu
+
+
+ def TestRemove2(self, evt):
+ mb = self.GetMenuBar()
+ mb.Remove(4)
+
+
+ def TestUpdateUI(self, evt):
+ text = time.ctime()
+ evt.SetText(text)
+
+
+ def TestInsert(self, evt):
+ # get the menu
+ mb = self.GetMenuBar()
+ menuItem = mb.FindItemById(507)
+ menu = menuItem.GetMenu()
+
+ ID = wxNewId()
+ ##menu.Insert(9, ID, "NewItem " + str(ID))
+ item = wxMenuItem(menu)
+ item.SetId(ID)
+ item.SetText("NewItem " + str(ID))
+ menu.InsertItem(9, item)
+
+
+
#-------------------------------------------------------------------
+wxRegisterId(10000)
+
def runTest(frame, nb, log):
win = MyFrame(frame, -1, log)
frame.otherWin = win
diff --git a/wxPython/demo/wxMessageDialog.py b/wxPython/demo/wxMessageDialog.py
index 17dcf7d741..b75d907739 100644
--- a/wxPython/demo/wxMessageDialog.py
+++ b/wxPython/demo/wxMessageDialog.py
@@ -25,39 +25,14 @@ def runTest(frame, nb, log):
overview = """\
-wxMessageDialog()
-----------------------------------
-
-wxMessageDialog(wxWindow* parent, const wxString& message, const wxString& caption = "Message box", long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxDefaultPosition)
-
-Constructor. Use wxMessageDialog::ShowModal to show the dialog.
-
-Parameters
--------------------
-
-parent = Parent window.
-
-message = Message to show on the dialog.
-
-caption = The dialog caption.
-
-style = A dialog style (bitlist) containing flags chosen from the following:
-
-wxOK Show an OK button.
-
-wxCANCEL Show a Cancel button.
-
-wxYES_NO Show Yes and No buttons.
-
-wxCENTRE Centre the message. Not Windows.
+Show a message to the user in a dialog
+"""
-wxICON_EXCLAMATION Shows an exclamation mark icon. Windows only.
-wxICON_HAND Shows a hand icon. Windows only.
-wxICON_QUESTION Shows a question mark icon. Windows only.
-wxICON_INFORMATION Shows an information (i) icon. Windows only.
-pos = Dialog position.
-"""
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxMimeTypesManager.py b/wxPython/demo/wxMimeTypesManager.py
index 39ba2074dc..d6356389d4 100644
--- a/wxPython/demo/wxMimeTypesManager.py
+++ b/wxPython/demo/wxMimeTypesManager.py
@@ -173,3 +173,11 @@ def MyBitmapsFunc( index ):
mimetypes_wdr.MyBitmapsFunc = MyBitmapsFunc
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxMiniFrame.py b/wxPython/demo/wxMiniFrame.py
index fd7c6c7f45..b92e300eda 100644
--- a/wxPython/demo/wxMiniFrame.py
+++ b/wxPython/demo/wxMiniFrame.py
@@ -45,3 +45,12 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxMultipleChoiceDialog.py b/wxPython/demo/wxMultipleChoiceDialog.py
index 6e3fb5de55..c7f93764e1 100644
--- a/wxPython/demo/wxMultipleChoiceDialog.py
+++ b/wxPython/demo/wxMultipleChoiceDialog.py
@@ -25,3 +25,12 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxNotebook.py b/wxPython/demo/wxNotebook.py
index ced491b69d..1f46c2c6e8 100644
--- a/wxPython/demo/wxNotebook.py
+++ b/wxPython/demo/wxNotebook.py
@@ -14,7 +14,7 @@ import sys
class TestNB(wxNotebook):
def __init__(self, parent, id, log):
wxNotebook.__init__(self, parent, id, style=
- #0
+ #wxNB_TOP
wxNB_BOTTOM
#wxNB_LEFT
#wxNB_RIGHT
@@ -59,11 +59,11 @@ class TestNB(wxNotebook):
win = self.makeColorPanel(wxCYAN)
self.AddPage(win, "Cyan")
- win = self.makeColorPanel(wxWHITE)
- self.AddPage(win, "White")
+## win = self.makeColorPanel(wxWHITE)
+## self.AddPage(win, "White")
- win = self.makeColorPanel(wxBLACK)
- self.AddPage(win, "Black")
+## win = self.makeColorPanel(wxBLACK)
+## self.AddPage(win, "Black")
win = self.makeColorPanel(wxNamedColour('MIDNIGHT BLUE'))
self.AddPage(win, "MIDNIGHT BLUE")
@@ -88,16 +88,17 @@ class TestNB(wxNotebook):
def OnPageChanged(self, event):
old = event.GetOldSelection()
new = event.GetSelection()
- self.log.write('OnPageChanged, old:%d, new:%d\n' % (old, new))
+ sel = self.GetSelection()
+ self.log.write('OnPageChanged, old:%d, new:%d, sel:%d\n' % (old, new, sel))
event.Skip()
def OnPageChanging(self, event):
old = event.GetOldSelection()
new = event.GetSelection()
- self.log.write('OnPageChanging, old:%d, new:%d\n' % (old, new))
+ sel = self.GetSelection()
+ self.log.write('OnPageChanging, old:%d, new:%d, sel:%d\n' % (old, new, sel))
event.Skip()
-
#----------------------------------------------------------------------------
def runTest(frame, nb, log):
diff --git a/wxPython/demo/wxOGL.py b/wxPython/demo/wxOGL.py
index 17f0015899..2094959821 100644
--- a/wxPython/demo/wxOGL.py
+++ b/wxPython/demo/wxOGL.py
@@ -106,7 +106,7 @@ class MyEvtHandler(wxShapeEvtHandler):
def OnLeftClick(self, x, y, keys = 0, attachment = 0):
shape = self.GetShape()
- print shape.__class__
+ print shape.__class__, shape.GetClassName()
canvas = shape.GetCanvas()
dc = wxClientDC(canvas)
canvas.PrepareDC(dc)
diff --git a/wxPython/demo/wxPageSetupDialog.py b/wxPython/demo/wxPageSetupDialog.py
index 61ae29290d..df344ec6ab 100644
--- a/wxPython/demo/wxPageSetupDialog.py
+++ b/wxPython/demo/wxPageSetupDialog.py
@@ -21,13 +21,15 @@ def runTest(frame, nb, log):
+overview = """\
+"""
-
-
-overview = """\
-"""
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxPlotCanvas.py b/wxPython/demo/wxPlotCanvas.py
index 1a9f7b2271..5f1a42ed91 100644
--- a/wxPython/demo/wxPlotCanvas.py
+++ b/wxPython/demo/wxPlotCanvas.py
@@ -37,3 +37,11 @@ def runTest(frame, nb, log):
overview = wxPlotCanvas.__doc__
#---------------------------------------------------------------------------
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxPrintDialog.py b/wxPython/demo/wxPrintDialog.py
index 183cbe801c..b70e484dd5 100644
--- a/wxPython/demo/wxPrintDialog.py
+++ b/wxPython/demo/wxPrintDialog.py
@@ -5,12 +5,18 @@ from wxPython.wx import *
def runTest(frame, nb, log):
data = wxPrintDialogData()
+
+ data.EnableSelection(True)
data.EnablePrintToFile(True)
data.EnablePageNumbers(True)
- data.EnableSelection(True)
+ data.SetMinPage(1)
+ data.SetMaxPage(5)
+ data.SetAllPages(True)
+
dlg = wxPrintDialog(frame, data)
if dlg.ShowModal() == wxID_OK:
- log.WriteText('\n')
+ data = dlg.GetPrintDialogData()
+ log.WriteText('GetAllPages: %d\n' % data.GetAllPages())
dlg.Destroy()
#---------------------------------------------------------------------------
@@ -18,14 +24,12 @@ def runTest(frame, nb, log):
+overview = """\
+"""
-
-
-
-
-
-
-overview = """\
-"""
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxProcess.py b/wxPython/demo/wxProcess.py
index d8104e5e75..b9bd6ceb66 100644
--- a/wxPython/demo/wxProcess.py
+++ b/wxPython/demo/wxProcess.py
@@ -152,3 +152,12 @@ child process to exit its main loop.
"""
+
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxProgressDialog.py b/wxPython/demo/wxProgressDialog.py
index 09f6c08b56..ec7bff1bd3 100644
--- a/wxPython/demo/wxProgressDialog.py
+++ b/wxPython/demo/wxProgressDialog.py
@@ -30,9 +30,12 @@ def runTest(frame, nb, log):
+overview = """\
+"""
-
-overview = """\
-"""
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxRightTextCtrl.py b/wxPython/demo/wxRightTextCtrl.py
index 7fe10cef6f..b2fa3e970b 100644
--- a/wxPython/demo/wxRightTextCtrl.py
+++ b/wxPython/demo/wxRightTextCtrl.py
@@ -47,3 +47,10 @@ def runTest(frame, nb, log):
overview = wxPython.lib.rightalign.__doc__
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxSashWindow.py b/wxPython/demo/wxSashWindow.py
index a8b472c2c1..17105b0a9d 100644
--- a/wxPython/demo/wxSashWindow.py
+++ b/wxPython/demo/wxSashWindow.py
@@ -114,17 +114,13 @@ def runTest(frame, nb, log):
+overview = """\
+"""
-
-
-
-
-
-
-
-
-overview = """\
-"""
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxScrolledMessageDialog.py b/wxPython/demo/wxScrolledMessageDialog.py
index e50d1e7c9e..a9715c6af2 100644
--- a/wxPython/demo/wxScrolledMessageDialog.py
+++ b/wxPython/demo/wxScrolledMessageDialog.py
@@ -17,8 +17,14 @@ def runTest(frame, nb, log):
+overview = """\
+"""
-overview = """\
-"""
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxScrolledPanel.py b/wxPython/demo/wxScrolledPanel.py
index 079f878dc6..89da9f3871 100644
--- a/wxPython/demo/wxScrolledPanel.py
+++ b/wxPython/demo/wxScrolledPanel.py
@@ -15,12 +15,14 @@ class TestPanel(wxScrolledPanel):
desc = wxStaticText(self, -1,
"wxScrolledPanel extends wxScrolledWindow, adding all "
"the necessary bits to set up scroll handling for you.\n\n"
- "Here are three fixed size examples of its use, and the "
- "mail demo panel is also using it."
+ "Here are three fixed size examples of its use. The "
+ "demo panel for this sample is also using it -- the \nwxStaticLine"
+ "below is intentionally made too long so a scrollbar will be "
+ "activated."
)
desc.SetForegroundColour("Blue")
vbox.Add(desc, 0, wxALIGN_LEFT|wxALL, 5)
- vbox.Add(wxStaticLine(self, -1), 0, wxEXPAND|wxALL, 5)
+ vbox.Add(wxStaticLine(self, -1, size=(1024,-1)), 0, wxALL, 5)
vbox.AddSpacer(20,20)
words = text.split()
diff --git a/wxPython/demo/wxScrolledWindow.py b/wxPython/demo/wxScrolledWindow.py
index 53d8b4a130..67ac26e2fa 100644
--- a/wxPython/demo/wxScrolledWindow.py
+++ b/wxPython/demo/wxScrolledWindow.py
@@ -64,7 +64,7 @@ class MyCanvas(wxScrolledWindow):
self.DoDrawing(dc)
- def DoDrawing(self, dc):
+ def DoDrawing(self, dc, printing=False):
dc.BeginDrawing()
dc.SetPen(wxPen('RED'))
dc.DrawRectangle(5, 5, 50, 50)
@@ -92,6 +92,11 @@ class MyCanvas(wxScrolledWindow):
dc.SetTextForeground(wxColour(0, 0xFF, 0x80))
dc.DrawText("a bitmap", 200, 85)
+## dc.SetFont(wxFont(14, wxSWISS, wxNORMAL, wxNORMAL))
+## dc.SetTextForeground("BLACK")
+## dc.DrawText("TEST this STRING", 10, 200)
+## print dc.GetFullTextExtent("TEST this STRING")
+
font = wxFont(20, wxSWISS, wxNORMAL, wxNORMAL)
dc.SetFont(font)
dc.SetTextForeground(wxBLACK)
@@ -106,16 +111,20 @@ class MyCanvas(wxScrolledWindow):
dc.SetPen(wxPen('RED'))
dc.DrawEllipticArc(200, 500, 50, 75, 0, 90)
- y = 20
- for style in [wxDOT, wxLONG_DASH, wxSHORT_DASH, wxDOT_DASH, wxUSER_DASH]:
- pen = wxPen("DARK ORCHID", 1, style)
- if style == wxUSER_DASH:
- pen.SetCap(wxCAP_BUTT)
- pen.SetDashes([1,2])
- pen.SetColour("RED")
- dc.SetPen(pen)
- dc.DrawLine(300, y, 400, y)
- y = y + 10
+ if not printing:
+ # This has troubles when used on a print preview in wxGTK,
+ # probably something to do with the pen styles and the scaling
+ # it does...
+ y = 20
+ for style in [wxDOT, wxLONG_DASH, wxSHORT_DASH, wxDOT_DASH, wxUSER_DASH]:
+ pen = wxPen("DARK ORCHID", 1, style)
+ if style == wxUSER_DASH:
+ pen.SetCap(wxCAP_BUTT)
+ pen.SetDashes([1,2])
+ pen.SetColour("RED")
+ dc.SetPen(pen)
+ dc.DrawLine(300, y, 400, y)
+ y = y + 10
dc.SetBrush(wxTRANSPARENT_BRUSH)
dc.SetPen(wxPen(wxColour(0xFF, 0x20, 0xFF), 1, wxSOLID))
diff --git a/wxPython/demo/wxSingleChoiceDialog.py b/wxPython/demo/wxSingleChoiceDialog.py
index df2d2b1b0e..aa649eb750 100644
--- a/wxPython/demo/wxSingleChoiceDialog.py
+++ b/wxPython/demo/wxSingleChoiceDialog.py
@@ -16,17 +16,17 @@ def runTest(frame, nb, log):
+overview = """\
+This class represents a dialog that shows a list of strings, and allows the user
+to select one. Double-clicking on a list item is equivalent to single-clicking
+and then pressing OK.
+"""
-
-
-
-
-
-overview = """\
-This class represents a dialog that shows a list of strings, and allows the user to select one. Double-clicking on a list item is equivalent to single-clicking and then pressing OK.
-
-"""
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxSpinButton.py b/wxPython/demo/wxSpinButton.py
index 0095fbad77..ed64a713e5 100644
--- a/wxPython/demo/wxSpinButton.py
+++ b/wxPython/demo/wxSpinButton.py
@@ -46,3 +46,10 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxSpinCtrl.py b/wxPython/demo/wxSpinCtrl.py
index 164397d1a0..2e57bca067 100644
--- a/wxPython/demo/wxSpinCtrl.py
+++ b/wxPython/demo/wxSpinCtrl.py
@@ -34,3 +34,12 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxSplitterWindow.py b/wxPython/demo/wxSplitterWindow.py
index 206244f6c0..33359b3ba1 100644
--- a/wxPython/demo/wxSplitterWindow.py
+++ b/wxPython/demo/wxSplitterWindow.py
@@ -37,11 +37,6 @@ def runTest(frame, nb, log):
splitter.SetMinimumPaneSize(20)
splitter.SplitVertically(p1, p2, 100)
-## splitter.SetSize((300,300))
-## print splitter.GetSashPosition()
-## splitter.SetSashPosition(100)
-## print splitter.GetSashPosition()
-
return splitter
@@ -50,41 +45,16 @@ def runTest(frame, nb, log):
-
-
-
-
-
-
-
-
-
-
-
overview = """\
-This class manages up to two subwindows. The current view can be split into two programmatically (perhaps from a menu command), and unsplit either programmatically or via the wxSplitterWindow user interface.
-
-wxSplitterWindow()
------------------------------------
-
-Default constructor.
-
-wxSplitterWindow(wxWindow* parent, wxWindowID id, int x, const wxPoint& point = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style=wxSP_3D, const wxString& name = "splitterWindow")
-
-Constructor for creating the window.
-
-Parameters
--------------------
-
-parent = The parent of the splitter window.
-
-id = The window identifier.
+This class manages up to two subwindows. The current view can be split
+into two programmatically (perhaps from a menu command), and unsplit
+either programmatically or via the wxSplitterWindow user interface.
+"""
-pos = The window position.
-size = The window size.
-style = The window style. See wxSplitterWindow.
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
-name = The window name.
-"""
diff --git a/wxPython/demo/wxStaticBitmap.py b/wxPython/demo/wxStaticBitmap.py
index d281d60237..7dfc51722b 100644
--- a/wxPython/demo/wxStaticBitmap.py
+++ b/wxPython/demo/wxStaticBitmap.py
@@ -38,10 +38,12 @@ def runTest(frame, nb, log):
+overview = """\
+"""
-
-
-overview = """\
-"""
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxStaticText.py b/wxPython/demo/wxStaticText.py
index f143ddb5cb..c40d886405 100644
--- a/wxPython/demo/wxStaticText.py
+++ b/wxPython/demo/wxStaticText.py
@@ -24,10 +24,9 @@ class TestPanel(wxPanel):
str = "This is a different font."
text = wxStaticText(self, -1, str, (20, 100))
- font = wxFont(18, wxSWISS, wxNORMAL, wxNORMAL, False, "Arial")
- w, h, d, e = self.GetFullTextExtent(str, font)
+ font = wxFont(18, wxSWISS, wxNORMAL, wxNORMAL)
text.SetFont(font)
- text.SetSize(wxSize(w, h))
+ #text.SetSize(text.GetBestSize())
wxStaticText(self, -1, "Multi-line wxStaticText\nline 2\nline 3\n\nafter empty line", (20,150))
wxStaticText(self, -1, "Align right multi-line\nline 2\nline 3\n\nafter empty line", (220,150), style=wxALIGN_RIGHT)
diff --git a/wxPython/demo/wxStatusBar.py b/wxPython/demo/wxStatusBar.py
index d7241a1b5b..ac7dedd0f1 100644
--- a/wxPython/demo/wxStatusBar.py
+++ b/wxPython/demo/wxStatusBar.py
@@ -104,5 +104,16 @@ def runTest(frame, nb, log):
overview = """\
-A status bar is a narrow window that can be placed along the bottom of a frame to give small amounts of status information. It can contain one or more fields, one or more of which can be variable length according to the size of the window.
-"""
+A status bar is a narrow window that can be placed along the bottom of
+a frame to give small amounts of status information. It can contain
+one or more fields, one or more of which can be variable length
+according to the size of the window. """
+
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxStyledTextCtrl_1.py b/wxPython/demo/wxStyledTextCtrl_1.py
index d23c1a6636..fa0d742ebf 100644
--- a/wxPython/demo/wxStyledTextCtrl_1.py
+++ b/wxPython/demo/wxStyledTextCtrl_1.py
@@ -2,6 +2,8 @@
from wxPython.wx import *
from wxPython.stc import *
+import images
+
#----------------------------------------------------------------------
debug = 1
@@ -212,7 +214,8 @@ def runTest(frame, nb, log):
# setup some markers
ed.SetMarginType(1, wxSTC_MARGIN_SYMBOL)
ed.MarkerDefine(0, wxSTC_MARK_ROUNDRECT, "#CCFF00", "RED")
- ed.MarkerDefine(1, wxSTC_MARK_CIRCLE, "FOREST GREEN", "SIENNA")
+ #ed.MarkerDefine(1, wxSTC_MARK_CIRCLE, "FOREST GREEN", "SIENNA")
+ ed.MarkerDefineBitmap(1, images.getFolder1Bitmap())
ed.MarkerDefine(2, wxSTC_MARK_SHORTARROW, "blue", "blue")
ed.MarkerDefine(3, wxSTC_MARK_ARROW, "#00FF00", "#00FF00")
diff --git a/wxPython/demo/wxStyledTextCtrl_2.py b/wxPython/demo/wxStyledTextCtrl_2.py
index 516383f50f..4a5433e14a 100644
--- a/wxPython/demo/wxStyledTextCtrl_2.py
+++ b/wxPython/demo/wxStyledTextCtrl_2.py
@@ -1,7 +1,7 @@
from wxPython.wx import *
from wxPython.stc import *
-
+import images
import keyword
#----------------------------------------------------------------------
@@ -53,6 +53,7 @@ class PythonSTC(wxStyledTextCtrl):
self.SetViewWhiteSpace(False)
#self.SetBufferedDraw(False)
+ #self.SetViewEOL(True)
self.SetEdgeMode(wxSTC_EDGE_BACKGROUND)
self.SetEdgeColumn(78)
@@ -85,6 +86,7 @@ class PythonSTC(wxStyledTextCtrl):
EVT_STC_UPDATEUI(self, ID, self.OnUpdateUI)
EVT_STC_MARGINCLICK(self, ID, self.OnMarginClick)
+ EVT_KEY_DOWN(self, self.OnKeyPressed)
# Make some styles, The lexer defines what each style is used for, we
@@ -108,9 +110,9 @@ class PythonSTC(wxStyledTextCtrl):
# Number
self.StyleSetSpec(wxSTC_P_NUMBER, "fore:#007F7F,size:%(size)d" % faces)
# String
- self.StyleSetSpec(wxSTC_P_STRING, "fore:#7F007F,italic,face:%(times)s,size:%(size)d" % faces)
+ self.StyleSetSpec(wxSTC_P_STRING, "fore:#7F007F,face:%(helv)s,size:%(size)d" % faces)
# Single quoted string
- self.StyleSetSpec(wxSTC_P_CHARACTER, "fore:#7F007F,italic,face:%(times)s,size:%(size)d" % faces)
+ self.StyleSetSpec(wxSTC_P_CHARACTER, "fore:#7F007F,face:%(helv)s,size:%(size)d" % faces)
# Keyword
self.StyleSetSpec(wxSTC_P_WORD, "fore:#00007F,bold,size:%(size)d" % faces)
# Triple quotes
@@ -130,10 +132,15 @@ class PythonSTC(wxStyledTextCtrl):
# End of line where string is not closed
self.StyleSetSpec(wxSTC_P_STRINGEOL, "fore:#000000,face:%(mono)s,back:#E0C0E0,eol,size:%(size)d" % faces)
-
self.SetCaretForeground("BLUE")
- EVT_KEY_DOWN(self, self.OnKeyPressed)
+
+ # register some images for use in the AutoComplete box.
+ self.RegisterImage(1, images.getSmilesBitmap())
+ self.RegisterImage(2, images.getFile1Bitmap())
+ self.RegisterImage(3, images.getCopyBitmap())
+
+
def OnKeyPressed(self, event):
@@ -145,7 +152,9 @@ class PythonSTC(wxStyledTextCtrl):
# Tips
if event.ShiftDown():
self.CallTipSetBackground("yellow")
- self.CallTipShow(pos, 'param1, param2')
+ self.CallTipShow(pos, 'lots of of text: blah, blah, blah\n\n'
+ 'show some suff, maybe parameters..\n\n'
+ 'fubar(param1, param2)')
# Code completion
else:
#lst = []
@@ -156,17 +165,22 @@ class PythonSTC(wxStyledTextCtrl):
#self.AutoCompShow(0, st)
kw = keyword.kwlist[:]
- kw.append("zzzzzz")
- kw.append("aaaaa")
- kw.append("__init__")
- kw.append("zzaaaaa")
- kw.append("zzbaaaa")
+ kw.append("zzzzzz?2")
+ kw.append("aaaaa?2")
+ kw.append("__init__?3")
+ kw.append("zzaaaaa?2")
+ kw.append("zzbaaaa?2")
kw.append("this_is_a_longer_value")
- kw.append("this_is_a_much_much_much_much_much_much_much_longer_value")
+ #kw.append("this_is_a_much_much_much_much_much_much_much_longer_value")
kw.sort() # Python sorts are case sensitive
self.AutoCompSetIgnoreCase(False) # so this needs to match
+ # Images are specified with a appended "?type"
+ for i in range(len(kw)):
+ if kw[i] in keyword.kwlist:
+ kw[i] = kw[i] + "?1"
+
self.AutoCompShow(0, " ".join(kw))
else:
event.Skip()
diff --git a/wxPython/demo/wxTextEntryDialog.py b/wxPython/demo/wxTextEntryDialog.py
index af93b747f3..3fd27aee90 100644
--- a/wxPython/demo/wxTextEntryDialog.py
+++ b/wxPython/demo/wxTextEntryDialog.py
@@ -17,14 +17,15 @@ def runTest(frame, nb, log):
+overview = """\
+"""
-
-
-overview = """\
-
-"""
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxTimeCtrl.py b/wxPython/demo/wxTimeCtrl.py
index 09465642dd..e6a5aeed2f 100644
--- a/wxPython/demo/wxTimeCtrl.py
+++ b/wxPython/demo/wxTimeCtrl.py
@@ -1,68 +1,114 @@
from wxPython.wx import *
from wxPython.lib.timectrl import *
+from wxPython.lib.timectrl import __doc__ as overviewdoc
+from wxPython.lib.scrolledpanel import wxScrolledPanel
#----------------------------------------------------------------------
-class TestPanel( wxPanel ):
+class TestPanel( wxScrolledPanel ):
def __init__( self, parent, log ):
- wxPanel.__init__( self, parent, -1 )
+ wxScrolledPanel.__init__( self, parent, -1 )
self.log = log
- panel = wxPanel( self, -1 )
- grid = wxFlexGridSizer( 0, 2, 20, 0 )
- text1 = wxStaticText( panel, 10, "A 12-hour format wxTimeCtrl:")
- self.time12 = wxTimeCtrl( panel, 20, name="12 hour control" )
- spin1 = wxSpinButton( panel, 30, wxDefaultPosition, wxSize(-1,20), 0 )
+ text1 = wxStaticText( self, -1, "12-hour format:")
+ self.time12 = wxTimeCtrl( self, -1, name="12 hour control" )
+ spin1 = wxSpinButton( self, -1, wxDefaultPosition, wxSize(-1,20), 0 )
self.time12.BindSpinButton( spin1 )
- grid.AddWindow( text1, 0, wxALIGN_RIGHT, 5 )
- hbox1 = wxBoxSizer( wxHORIZONTAL )
- hbox1.AddWindow( self.time12, 0, wxALIGN_CENTRE, 5 )
- hbox1.AddWindow( spin1, 0, wxALIGN_CENTRE, 5 )
- grid.AddSizer( hbox1, 0, wxLEFT, 5 )
+ text2 = wxStaticText( self, -1, "24-hour format:")
+ spin2 = wxSpinButton( self, -1, wxDefaultPosition, wxSize(-1,20), 0 )
+ self.time24 = wxTimeCtrl( self, -1, name="24 hour control", fmt24hr=True, spinButton = spin2 )
+ text3 = wxStaticText( self, -1, "No seconds\nor spin button:")
+ self.spinless_ctrl = wxTimeCtrl( self, -1, name="spinless control", display_seconds = False )
- text2 = wxStaticText( panel, 40, "A 24-hour format wxTimeCtrl:")
- self.time24 = wxTimeCtrl( panel, 50, fmt24hr=True, name="24 hour control" )
- spin2 = wxSpinButton( panel, 60, wxDefaultPosition, wxSize(-1,20), 0 )
- self.time24.BindSpinButton( spin2 )
+ grid = wxFlexGridSizer( 0, 2, 10, 5 )
+ grid.Add( text1, 0, wxALIGN_RIGHT )
+ hbox1 = wxBoxSizer( wxHORIZONTAL )
+ hbox1.Add( self.time12, 0, wxALIGN_CENTRE )
+ hbox1.Add( spin1, 0, wxALIGN_CENTRE )
+ grid.Add( hbox1, 0, wxLEFT )
- grid.AddWindow( text2, 0, wxALIGN_RIGHT|wxTOP|wxBOTTOM, 5 )
+ grid.Add( text2, 0, wxALIGN_RIGHT|wxTOP|wxBOTTOM )
hbox2 = wxBoxSizer( wxHORIZONTAL )
- hbox2.AddWindow( self.time24, 0, wxALIGN_CENTRE, 5 )
- hbox2.AddWindow( spin2, 0, wxALIGN_CENTRE, 5 )
- grid.AddSizer( hbox2, 0, wxLEFT, 5 )
-
+ hbox2.Add( self.time24, 0, wxALIGN_CENTRE )
+ hbox2.Add( spin2, 0, wxALIGN_CENTRE )
+ grid.Add( hbox2, 0, wxLEFT )
- text3 = wxStaticText( panel, 70, "A wxTimeCtrl without a spin button:")
- self.spinless_ctrl = wxTimeCtrl( panel, 80, name="spinless control" )
+ grid.Add( text3, 0, wxALIGN_RIGHT|wxTOP|wxBOTTOM )
+ grid.Add( self.spinless_ctrl, 0, wxLEFT )
- grid.AddWindow( text3, 0, wxALIGN_RIGHT|wxTOP|wxBOTTOM, 5 )
- grid.AddWindow( self.spinless_ctrl, 0, wxLEFT, 5 )
-
- buttonChange = wxButton( panel, 100, "Change Controls")
- self.radio12to24 = wxRadioButton( panel, 110, "Copy 12-hour time to 24-hour control", wxDefaultPosition, wxDefaultSize, wxRB_GROUP )
- self.radio24to12 = wxRadioButton( panel, 120, "Copy 24-hour time to 12-hour control")
- self.radioWx = wxRadioButton( panel, 130, "Set controls to 'now' using wxDateTime")
- self.radioMx = wxRadioButton( panel, 140, "Set controls to 'now' using mxDateTime")
+ buttonChange = wxButton( self, -1, "Change Controls")
+ self.radio12to24 = wxRadioButton( self, -1, "Copy 12-hour time to 24-hour control", wxDefaultPosition, wxDefaultSize, wxRB_GROUP )
+ self.radio24to12 = wxRadioButton( self, -1, "Copy 24-hour time to 12-hour control")
+ self.radioWx = wxRadioButton( self, -1, "Set controls to 'now' using wxDateTime")
+ self.radioMx = wxRadioButton( self, -1, "Set controls to 'now' using mxDateTime")
radio_vbox = wxBoxSizer( wxVERTICAL )
- radio_vbox.AddWindow( self.radio12to24, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 )
- radio_vbox.AddWindow( self.radio24to12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 )
- radio_vbox.AddWindow( self.radioWx, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 )
- radio_vbox.AddWindow( self.radioMx, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 )
+ radio_vbox.Add( self.radio12to24, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 )
+ radio_vbox.Add( self.radio24to12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 )
+ radio_vbox.Add( self.radioWx, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 )
+ radio_vbox.Add( self.radioMx, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 )
- box_label = wxStaticBox( panel, 90, "Change Controls through API" )
+ box_label = wxStaticBox( self, -1, "Change Controls through API" )
buttonbox = wxStaticBoxSizer( box_label, wxHORIZONTAL )
- buttonbox.AddWindow( buttonChange, 0, wxALIGN_CENTRE|wxALL, 5 )
- buttonbox.AddSizer( radio_vbox, 0, wxALIGN_CENTRE|wxALL, 5 )
+ buttonbox.Add( buttonChange, 0, wxALIGN_CENTRE|wxALL, 5 )
+ buttonbox.Add( radio_vbox, 0, wxALIGN_CENTRE|wxALL, 5 )
+
+ hbox = wxBoxSizer( wxHORIZONTAL )
+ hbox.Add( grid, 0, wxALIGN_LEFT|wxALL, 15 )
+ hbox.Add( buttonbox, 0, wxALIGN_RIGHT|wxBOTTOM, 20 )
+
+
+ box_label = wxStaticBox( self, -1, "Bounds Control" )
+ boundsbox = wxStaticBoxSizer( box_label, wxHORIZONTAL )
+ self.set_bounds = wxCheckBox( self, -1, "Set time bounds:" )
+
+ minlabel = wxStaticText( self, -1, "minimum time:" )
+ self.min = wxTimeCtrl( self, -1, name="min", display_seconds = False )
+ self.min.Enable( False )
+
+ maxlabel = wxStaticText( self, -1, "maximum time:" )
+ self.max = wxTimeCtrl( self, -1, name="max", display_seconds = False )
+ self.max.Enable( False )
+
+ self.limit_check = wxCheckBox( self, -1, "Limit control" )
+
+ label = wxStaticText( self, -1, "Resulting time control:" )
+ self.target_ctrl = wxTimeCtrl( self, -1, name="new" )
+
+ grid2 = wxFlexGridSizer( 0, 2, 0, 0 )
+ grid2.Add( 20, 0, 0, wxALIGN_LEFT|wxALL, 5 )
+ grid2.Add( 20, 0, 0, wxALIGN_LEFT|wxALL, 5 )
+
+ grid2.Add( self.set_bounds, 0, wxALIGN_LEFT|wxALL, 5 )
+ grid3 = wxFlexGridSizer( 0, 2, 5, 5 )
+ grid3.Add(minlabel, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL )
+ grid3.Add( self.min, 0, wxALIGN_LEFT )
+ grid3.Add(maxlabel, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL )
+ grid3.Add( self.max, 0, wxALIGN_LEFT )
+ grid2.Add(grid3, 0, wxALIGN_LEFT )
+
+ grid2.Add( self.limit_check, 0, wxALIGN_LEFT|wxALL, 5 )
+ grid2.Add( 20, 0, 0, wxALIGN_LEFT|wxALL, 5 )
+
+ grid2.Add( 20, 0, 0, wxALIGN_LEFT|wxALL, 5 )
+ grid2.Add( 20, 0, 0, wxALIGN_LEFT|wxALL, 5 )
+ grid2.Add( label, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5 )
+ grid2.Add( self.target_ctrl, 0, wxALIGN_LEFT|wxALL, 5 )
+ boundsbox.Add(grid2, 0, wxALIGN_CENTER|wxEXPAND|wxALL, 5)
+
+ vbox = wxBoxSizer( wxVERTICAL )
+ vbox.AddSpacer(20, 20)
+ vbox.Add( hbox, 0, wxALIGN_LEFT|wxALL, 5)
+ vbox.Add( boundsbox, 0, wxALIGN_LEFT|wxALL, 5 )
+
outer_box = wxBoxSizer( wxVERTICAL )
- outer_box.AddSizer( grid, 0, wxALIGN_CENTRE|wxBOTTOM, 20 )
- outer_box.AddSizer( buttonbox, 0, wxALIGN_CENTRE|wxALL, 5 )
+ outer_box.Add( vbox, 0, wxALIGN_LEFT|wxALL, 5)
# Turn on mxDateTime option only if we can import the module:
@@ -72,23 +118,31 @@ class TestPanel( wxPanel ):
self.radioMx.Enable( False )
- panel.SetAutoLayout( True )
- panel.SetSizer( outer_box )
- outer_box.Fit( panel )
- panel.Move( (50,50) )
- self.panel = panel
-
+ self.SetAutoLayout( True )
+ self.SetSizer( outer_box )
+ outer_box.Fit( self )
+ self.SetupScrolling()
+ EVT_BUTTON( self, buttonChange.GetId(), self.OnButtonClick )
EVT_TIMEUPDATE( self, self.time12.GetId(), self.OnTimeChange )
EVT_TIMEUPDATE( self, self.time24.GetId(), self.OnTimeChange )
EVT_TIMEUPDATE( self, self.spinless_ctrl.GetId(), self.OnTimeChange )
- EVT_BUTTON( self, buttonChange.GetId(), self.OnButtonClick )
+
+ EVT_CHECKBOX( self, self.set_bounds.GetId(), self.OnBoundsCheck )
+ EVT_CHECKBOX( self, self.limit_check.GetId(), self.SetTargetMinMax )
+ EVT_TIMEUPDATE( self, self.min.GetId(), self.SetTargetMinMax )
+ EVT_TIMEUPDATE( self, self.max.GetId(), self.SetTargetMinMax )
+ EVT_TIMEUPDATE( self, self.target_ctrl.GetId(), self.OnTimeChange )
+
def OnTimeChange( self, event ):
- timectrl = self.panel.FindWindowById( event.GetId() )
- self.log.write('%s time = %s\n' % ( timectrl.GetName(), timectrl.GetValue() ) )
+ timectrl = self.FindWindowById( event.GetId() )
+ ib_str = [ " (out of bounds)", "" ]
+
+ self.log.write('%s time = %s%s\n' % ( timectrl.GetName(), timectrl.GetValue(), ib_str[ timectrl.IsInBounds() ] ) )
+
def OnButtonClick( self, event ):
if self.radio12to24.GetValue():
@@ -99,16 +153,53 @@ class TestPanel( wxPanel ):
elif self.radioWx.GetValue():
now = wxDateTime_Now()
- self.time12.SetWxDateTime( now )
- self.time24.SetWxDateTime( now )
- self.spinless_ctrl.SetWxDateTime( now )
+ self.time12.SetValue( now )
+ # (demonstrates that G/SetValue returns/takes a wxDateTime)
+ self.time24.SetValue( self.time12.GetValue(as_wxDateTime=True) )
+
+ # (demonstrates that G/SetValue returns/takes a wxTimeSpan)
+ self.spinless_ctrl.SetValue( self.time12.GetValue(as_wxTimeSpan=True) )
elif self.radioMx.GetValue():
from mx import DateTime
now = DateTime.now()
- self.time12.SetMxDateTime( now )
- self.time24.SetMxDateTime( now )
- self.spinless_ctrl.SetMxDateTime( now )
+ self.time12.SetValue( now )
+
+ # (demonstrates that G/SetValue returns/takes a DateTime)
+ self.time24.SetValue( self.time12.GetValue(as_mxDateTime=True) )
+
+ # (demonstrates that G/SetValue returns/takes a DateTimeDelta)
+ self.spinless_ctrl.SetValue( self.time12.GetValue(as_mxDateTimeDelta=True) )
+
+
+ def OnBoundsCheck( self, event ):
+ self.min.Enable( self.set_bounds.GetValue() )
+ self.max.Enable( self.set_bounds.GetValue() )
+ self.SetTargetMinMax()
+
+
+ def SetTargetMinMax( self, event=None ):
+ min = max = None
+
+ if self.set_bounds.GetValue():
+ min = self.min.GetWxDateTime()
+ max = self.max.GetWxDateTime()
+ else:
+ min, max = None, None
+
+ cur_min, cur_max = self.target_ctrl.GetBounds()
+
+ if min != cur_min: self.target_ctrl.SetMin( min )
+ if max != cur_max: self.target_ctrl.SetMax( max )
+
+ self.target_ctrl.SetLimited( self.limit_check.GetValue() )
+
+ if min != cur_min or max != cur_max:
+ new_min, new_max = self.target_ctrl.GetBounds()
+ if new_min and new_max:
+ self.log.write( "current min, max: (%s, %s)\n" % ( new_min.FormatTime(), new_max.FormatTime() ) )
+ else:
+ self.log.write( "current min, max: (None, None)\n" )
#----------------------------------------------------------------------
@@ -118,93 +209,7 @@ def runTest( frame, nb, log ):
#----------------------------------------------------------------------
-overview = """
-
-wxTimeCtrl provides a multi-cell control that allows manipulation of a time
-value. It supports 12 or 24 hour format, and you can use wxDateTime or mxDateTime
-to get/set values from the control.
-
-Left/right/tab keys to switch cells within a wxTimeCtrl, and the up/down arrows act
-like a spin control. wxTimeCtrl also allows for an actual spin button to be attached
-to the control, so that it acts like the up/down arrow keys.
-
-The ! or c key sets the value of the control to now.
-
-Here's the API for wxTimeCtrl:
-
- wxTimeCtrl (
- parent, id = -1,
- value = '12:00:00 AM',
- pos = wxDefaultPosition,
- size = wxDefaultSize,
- fmt24hr = False,
- spinButton = None,
- style = wxTE_PROCESS_TAB,
- name = "time")
-
-
- value
- If no initial value is set, the default will be midnight; if an illegal string
- is specified, a ValueError will result. (You can always later set the initial time
- with SetValue() after instantiation of the control.)
- size
- The size of the control will be automatically adjusted for 12/24 hour format
- if wxDefaultSize is specified.
-
- fmt24hr
- If True, control will display time in 24 hour time format; if False, it will
- use 12 hour AM/PM format. SetValue() will adjust values accordingly for the
- control, based on the format specified.
-
- spinButton
- If specified, this button's events will be bound to the behavior of the
- wxTimeCtrl, working like up/down cursor key events. (See BindSpinButton.)
-
- style
- By default, wxTimeCtrl will process TAB events, by allowing tab to the
- different cells within the control.
-
-
-
-
-SetValue(time_string)
-Sets the value of the control to a particular time, given a valid time string;
-raises ValueError on invalid value
-
- GetValue()
-Retrieves the string value of the time from the control
-
- SetWxDateTime(wxDateTime)
-Uses the time portion of a wxDateTime to construct a value for the control.
-
- GetWxDateTime()
-Retrieves the value of the control, and applies it to the wxDateTimeFromHMS()
-constructor, and returns the resulting value. (This returns the date portion as
-"today".)
-
- SetMxDateTime(mxDateTime)
-Uses the time portion of an mxDateTime to construct a value for the control.
-NOTE: This imports mx.DateTime at runtime only if this or the Get function
-is called.
-
- GetMxDateTime()
-Retrieves the value of the control and applies it to the DateTime.Time()
-constructor, and returns the resulting value. (mxDateTime is smart enough to
-know this is just a time value.)
-
- BindSpinButton(wxSpinBtton)
-Binds an externally created spin button to the control, so that up/down spin
-events change the active cell or selection in the control (in addition to the
-up/down cursor keys.) (This is primarily to allow you to create a "standard"
-interface to time controls, as seen in Windows.)
-
- EVT_TIMEUPDATE(win, id, func)
-func is fired whenever the value of the control changes.
-
-
-"""
-
-
+overview = overviewdoc
if __name__ == '__main__':
import sys,os
diff --git a/wxPython/demo/wxTimer.py b/wxPython/demo/wxTimer.py
index b58a628a1d..0aa39e8ee1 100644
--- a/wxPython/demo/wxTimer.py
+++ b/wxPython/demo/wxTimer.py
@@ -71,14 +71,6 @@ def runTest(frame, nb, log):
-
-
-
-
-
-
-
-
overview = """\
The wxTimer class allows you to execute code at specified intervals.
@@ -87,8 +79,7 @@ The wxTimer class allows you to execute code at specified intervals.
-
-
-
-
-
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxToggleButton.py b/wxPython/demo/wxToggleButton.py
index 74d34d3f77..9e90ae9887 100644
--- a/wxPython/demo/wxToggleButton.py
+++ b/wxPython/demo/wxToggleButton.py
@@ -48,3 +48,12 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxToolBar.py b/wxPython/demo/wxToolBar.py
index 9867b98f05..83b99599cc 100644
--- a/wxPython/demo/wxToolBar.py
+++ b/wxPython/demo/wxToolBar.py
@@ -57,12 +57,12 @@ class TestToolBar(wxFrame):
EVT_TOOL_RCLICKED(self, -1, self.OnToolRClick) # Match all
EVT_TIMER(self, -1, self.OnClearSB)
- if wxPlatform != "__WXMAC__":
- tb.AddSeparator()
- cbID = wxNewId()
- tb.AddControl(wxComboBox(tb, cbID, "", choices=["", "This", "is a", "wxComboBox"],
- size=(150,-1), style=wxCB_DROPDOWN))
- EVT_COMBOBOX(self, cbID, self.OnCombo)
+ tb.AddSeparator()
+ cbID = wxNewId()
+ tb.AddControl(wxComboBox(tb, cbID, "", choices=["", "This", "is a", "wxComboBox"],
+ size=(150,-1), style=wxCB_DROPDOWN))
+ EVT_COMBOBOX(self, cbID, self.OnCombo)
+ tb.AddControl(wxTextCtrl(tb, -1, "Toolbar controls!!", size=(150, -1)))
tb.Realize()
diff --git a/wxPython/demo/wxTreeCtrl.py b/wxPython/demo/wxTreeCtrl.py
index 9a6a24f468..5aeed4fa2f 100644
--- a/wxPython/demo/wxTreeCtrl.py
+++ b/wxPython/demo/wxTreeCtrl.py
@@ -167,7 +167,7 @@ class TestTreeCtrlPanel(wxPanel):
event.Skip()
- def OnActivate(self, evt):
+ def OnActivate(self, event):
self.log.WriteText("OnActivate: %s\n" % self.tree.GetItemText(self.item))
diff --git a/wxPython/demo/wxTreeListCtrl.py b/wxPython/demo/wxTreeListCtrl.py
new file mode 100644
index 0000000000..e5b05a9106
--- /dev/null
+++ b/wxPython/demo/wxTreeListCtrl.py
@@ -0,0 +1,103 @@
+
+from wxPython.wx import *
+from wxPython.gizmos import wxTreeListCtrl
+
+import images
+
+#----------------------------------------------------------------------
+
+class TestPanel(wxPanel):
+ def __init__(self, parent, log):
+ self.log = log
+ wxPanel.__init__(self, parent, -1)
+ EVT_SIZE(self, self.OnSize)
+
+ self.tree = wxTreeListCtrl(self, -1, style = wxTR_DEFAULT_STYLE
+ #| wxTR_ROW_LINES
+ #| wxTR_NO_LINES | wxTR_TWIST_BUTTONS
+ )
+ isz = (16,16)
+ il = wxImageList(isz[0], isz[1])
+ fldridx = il.Add(wxArtProvider_GetBitmap(wxART_FOLDER, wxART_OTHER, isz))
+ fldropenidx = il.Add(wxArtProvider_GetBitmap(wxART_FILE_OPEN, wxART_OTHER, isz))
+ fileidx = il.Add(wxArtProvider_GetBitmap(wxART_REPORT_VIEW, wxART_OTHER, isz))
+ smileidx = il.Add(images.getSmilesBitmap())
+
+ self.tree.SetImageList(il)
+ self.il = il
+
+ # create some columns
+ self.tree.AddColumn("Main column")
+ self.tree.AddColumn("Column 1")
+ self.tree.AddColumn("Column 2")
+ self.tree.SetMainColumn(0) # the one with the tree in it...
+ self.tree.SetColumnWidth(0, 175)
+
+
+ self.root = self.tree.AddRoot("The Root Item")
+ self.tree.SetItemText(self.root, "col 1 root", 1)
+ self.tree.SetItemText(self.root, "col 2 root", 2)
+ self.tree.SetItemImage(self.root, fldridx, which = wxTreeItemIcon_Normal)
+ self.tree.SetItemImage(self.root, fldropenidx, which = wxTreeItemIcon_Expanded)
+
+
+ for x in range(15):
+ txt = "Item %d" % x
+ child = self.tree.AppendItem(self.root, txt)
+ self.tree.SetItemText(child, txt + "(c1)", 1)
+ self.tree.SetItemText(child, txt + "(c2)", 2)
+ self.tree.SetItemImage(child, fldridx, which = wxTreeItemIcon_Normal)
+ self.tree.SetItemImage(child, fldropenidx, which = wxTreeItemIcon_Expanded)
+
+ for y in range(5):
+ txt = "item %d-%s" % (x, chr(ord("a")+y))
+ last = self.tree.AppendItem(child, txt)
+ self.tree.SetItemText(last, txt + "(c1)", 1)
+ self.tree.SetItemText(last, txt + "(c2)", 2)
+ self.tree.SetItemImage(last, fldridx, which = wxTreeItemIcon_Normal)
+ self.tree.SetItemImage(last, fldropenidx, which = wxTreeItemIcon_Expanded)
+
+ for z in range(5):
+ txt = "item %d-%s-%d" % (x, chr(ord("a")+y), z)
+ item = self.tree.AppendItem(last, txt)
+ self.tree.SetItemText(item, txt + "(c1)", 1)
+ self.tree.SetItemText(item, txt + "(c2)", 2)
+ self.tree.SetItemImage(item, fileidx, which = wxTreeItemIcon_Normal)
+ self.tree.SetItemImage(item, smileidx, which = wxTreeItemIcon_Selected)
+
+
+ self.tree.Expand(self.root)
+
+
+ def OnSize(self, evt):
+ self.tree.SetSize(self.GetSize())
+
+
+#----------------------------------------------------------------------
+
+def runTest(frame, nb, log):
+ win = TestPanel(nb, log)
+ return win
+
+#----------------------------------------------------------------------
+
+
+
+overview = """
+wxTreeListCtrl
+
+The wxTreeListCtrl is essentially a wxTreeCtrl with extra columns,
+such that the look is similar to a wxListCtrl.
+
+
+"""
+
+
+
+
+if __name__ == '__main__':
+ #raw_input("Press enter...")
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+
diff --git a/wxPython/demo/wxWave.py b/wxPython/demo/wxWave.py
index 7d60ac09c4..1ea3c4998b 100644
--- a/wxPython/demo/wxWave.py
+++ b/wxPython/demo/wxWave.py
@@ -42,3 +42,12 @@ def runTest(frame, nb, log):
overview = """\
"""
+
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
diff --git a/wxPython/demo/wxXmlResourceHandler.py b/wxPython/demo/wxXmlResourceHandler.py
index 531457c651..87d8598447 100644
--- a/wxPython/demo/wxXmlResourceHandler.py
+++ b/wxPython/demo/wxXmlResourceHandler.py
@@ -11,7 +11,7 @@ resourceText = r'''
200,100
-
+
This blue panel is a class derived from wxPanel,\nand is loaded by a custom wxXmlResourceHandler.
10,10
diff --git a/wxPython/distrib/README.1st.txt b/wxPython/distrib/README.1st.txt
index 4b55d30398..29509c6a73 100644
--- a/wxPython/distrib/README.1st.txt
+++ b/wxPython/distrib/README.1st.txt
@@ -36,7 +36,7 @@ Clear as mud? Good. Let's get started.
2. Make a build directory and configure wxGTK.
- cd wxPythonGTK-2.3.3 # or whatever the top-level dir is
+ cd wxPythonSrc-2.4.0 # or whatever the top-level dir is
mkdir build
cd build
../configure --with-gtk \
@@ -72,7 +72,6 @@ Clear as mud? Good. Let's get started.
step, depending on where your WXPREF is.)
make
- cd ../build
make install
@@ -104,11 +103,23 @@ Clear as mud? Good. Let's get started.
site-packages directory (such as to your home directory) then you
can add "--root=" after the "install" command. To use
wxPython like this you'll need to ensure that the directory
- containing wxPyrthon is contained in in the PYTHONPATH environment
+ containing wxPython is contained in the PYTHONPATH environment
variable.
-5. That's all, except for the having fun part!
+5. If you havn't already, get a new copy of the demo and documentation
+ to go with the wxPython you just built and installed. See
+ http://wxpython.org/download.php#documentation
+
+
+6. Change to the demo directory and run it like this:
+
+ python demo.py
+
+
+7. That's all, except for the having fun part!
+
+
--
Robin Dunn
diff --git a/wxPython/distrib/README.viewdocs.txt b/wxPython/distrib/README.viewdocs.txt
index de7b3f7ee9..07910c9d12 100644
--- a/wxPython/distrib/README.viewdocs.txt
+++ b/wxPython/distrib/README.viewdocs.txt
@@ -13,5 +13,5 @@ automatically and add them to the list. The zip file just needs to
contain a .hhp file that defines the contents of the book. See the
docs on wxHtmlHelpController for details.
-If you'd still ike to view these docs in your regular browser you can
+If you'd still like to view these docs in your regular browser you can
simply unzip each of the books into their own directory.
\ No newline at end of file
diff --git a/wxPython/distrib/mac/wxPythonOSX/build b/wxPython/distrib/mac/wxPythonOSX/build
index 6fca6f4226..955467a1d9 100755
--- a/wxPython/distrib/mac/wxPythonOSX/build
+++ b/wxPython/distrib/mac/wxPythonOSX/build
@@ -214,6 +214,9 @@ if [ -z "$skipinstall" ]; then
mv -f $INSTALLROOT$PREFIX/lib/wx $INSTALLDEVEL$PREFIX/lib
mv -f $INSTALLROOT$PREFIX/bin/wx* $INSTALLDEVEL$PREFIX/bin
+ # TODO for $INSTALLROOT and $INSTALLDEVEL ?
+ # chown -R root:admin
+ # chmod -R g+w
fi
popd
diff --git a/wxPython/distrib/mac/wxPythonOSX/resources/Welcome.txt b/wxPython/distrib/mac/wxPythonOSX/resources/Welcome.txt
index db55898478..d46dd152e1 100644
--- a/wxPython/distrib/mac/wxPythonOSX/resources/Welcome.txt
+++ b/wxPython/distrib/mac/wxPythonOSX/resources/Welcome.txt
@@ -1,5 +1,5 @@
Welcome!
-This program will install wxPython 2.4.0.7 for MacPython-OSX 2.3.
+This program will install wxPython 2.4.1.1 for MacPython-OSX 2.3.
-Build date: Fri Mar 21 14:00:06 PST 2003
+Build date: Fri Jun 13 10:07:30 PDT 2003
diff --git a/wxPython/distrib/mac/wxPythonOSX/resources/postflight b/wxPython/distrib/mac/wxPythonOSX/resources/postflight
index 915d404aef..bfa196a360 100755
--- a/wxPython/distrib/mac/wxPythonOSX/resources/postflight
+++ b/wxPython/distrib/mac/wxPythonOSX/resources/postflight
@@ -4,15 +4,15 @@
/usr/local/bin/python -O $2/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/../compileall.py $2/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/wxPython
# and in the demo
-/usr/local/bin/python $2/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/../compileall.py /Applications/wxPythonOSX-2.4.0.7/demo
+/usr/local/bin/python $2/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/../compileall.py /Applications/wxPythonOSX-2.4.1.1/demo
# Make the demo/data dir writable
-chmod a+w /Applications/wxPythonOSX-2.4.0.7/demo/data
+chmod a+w /Applications/wxPythonOSX-2.4.1.1/demo/data
# and the wxPython pacakge should be group writable
chgrp -R admin $2/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/wxPython
-chgrp -R admin /Applications/wxPythonOSX-2.4.0.7
+chgrp -R admin /Applications/wxPythonOSX-2.4.1.1
chmod -R g+w $2/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/wxPython
-chmod -R g+w /Applications/wxPythonOSX-2.4.0.7
+chmod -R g+w /Applications/wxPythonOSX-2.4.1.1
exit 0
diff --git a/wxPython/distrib/make_installer.py b/wxPython/distrib/make_installer.py
index 6aa2b83421..962c32103e 100644
--- a/wxPython/distrib/make_installer.py
+++ b/wxPython/distrib/make_installer.py
@@ -25,9 +25,7 @@ AppCopyright = Copyright
DefaultDirName = {code:GetInstallDir|c:\DoNotInstallHere}
DefaultGroupName = wxPython %(SHORTVER)s for Python %(PYTHONVER)s
AlwaysCreateUninstallIcon = yes
-
-;; SourceDir = .
-;; OutputDir is relative to SourceDir
+AdminPrivilegesRequired = yes
OutputDir = dist
WizardStyle = modern
UninstallStyle = modern
@@ -61,7 +59,6 @@ Name: core; Description: "wxPython modules and library"; Types: full compact
Name: docs; Description: "Documentation"; Types: full
Name: demo; Description: "Demo application"; Types: full
Name: samples; Description: "Sample applications"; Types: full
-Name: tools; Description: "Tools"; Types: full
;;------------------------------------------------------------
@@ -94,10 +91,24 @@ Source: "wxPython\lib\editor\*.py"; DestDir: "{app}\wxPython\lib\editor"
Source: "wxPython\lib\editor\*.txt"; DestDir: "{app}\wxPython\lib\editor"; Components: core
Source: "wxPython\lib\mixins\*.py"; DestDir: "{app}\wxPython\lib\mixins"; Components: core
Source: "wxPython\lib\PyCrust\*.py"; DestDir: "{app}\wxPython\lib\PyCrust"; Components: core
-Source: "wxPython\lib\PyCrust\*.txt"; DestDir: "{app}\wxPython\lib\PyCrust"; Components: core
-Source: "wxPython\lib\PyCrust\*.ico"; DestDir: "{app}\wxPython\lib\PyCrust"; Components: core
-Source: "wxPython\lib\PyCrust\wxd\*.py"; DestDir: "{app}\wxPython\lib\PyCrust\wxd"; Components: core
Source: "wxPython\lib\colourchooser\*.py"; DestDir: "{app}\wxPython\lib\colourchooser"; Components: core
+Source: "wxPython\lib\colourchooser\*.py"; DestDir: "{app}\wxPython\lib\colourchooser"; Components: core
+Source: "wxPython\py\*.py"; DestDir: "{app}\wxPython\py"; Components: core
+Source: "wxPython\py\*.txt"; DestDir: "{app}\wxPython\py"; Components: core
+Source: "wxPython\py\*.ico"; DestDir: "{app}\wxPython\py"; Components: core
+Source: "wxPython\py\*.png"; DestDir: "{app}\wxPython\py"; Components: core
+Source: "wxPython\py\tests\*.py"; DestDir: "{app}\wxPython\py\tests"; Components: core
+Source: "wxPython\py\wxd\*.py"; DestDir: "{app}\wxPython\py\wxd"; Components: core
+
+Source: "wx\*.py"; DestDir: "{app}\wx"; Components: core
+Source: "wx\lib\*.py"; DestDir: "{app}\wx\lib"; Components: core
+Source: "wx\lib\colourchooser\*.py"; DestDir: "{app}\wx\lib\colourchooser"; Components: core
+Source: "wx\lib\editor\*.py"; DestDir: "{app}\wx\lib\editor"; Components: core
+Source: "wx\lib\mixins\*.py"; DestDir: "{app}\wx\lib\mixins"; Components: core
+Source: "wx\py\*.py"; DestDir: "{app}\wx\py"; Components: core
+Source: "wx\tools\*.py"; DestDir: "{app}\wx\tools"; Components: core
+Source: "wx\tools\XRCed\*.py"; DestDir: "{app}\wx\tools\XRCed"; Components: core
+
%(LOCALE)s
@@ -142,25 +153,34 @@ Source: "CHANGES.txt"; DestDir: "{app}\wxPython\docs"; Comp
Source: "licence\*.txt"; DestDir: "{app}\wxPython\docs\licence"; Components: core
Source: "%(WXDIR)s\docs\htmlhelp\wx.chm"; DestDir: "{app}\wxPython\docs"; Components: docs
Source: "%(WXDIR)s\docs\htmlhelp\ogl.chm"; DestDir: "{app}\wxPython\docs"; Components: docs
-
-Source: "wxPython\tools\*.py"; DestDir: "{app}\wxPython\tools"; Components: tools
-Source: "wxPython\tools\XRCed\*.txt"; DestDir: "{app}\wxPython\tools\XRCed"; Components: tools
-Source: "wxPython\tools\XRCed\sawfishrc"; DestDir: "{app}\wxPython\tools\XRCed"; Components: tools
-Source: "wxPython\tools\XRCed\*.py"; DestDir: "{app}\wxPython\tools\XRCed"; Components: tools
-Source: "wxPython\tools\XRCed\*.xrc"; DestDir: "{app}\wxPython\tools\XRCed"; Components: tools
-Source: "wxPython\tools\XRCed\*.ico"; DestDir: "{app}\wxPython\tools\XRCed"; Components: tools
-Source: "wxPython\tools\XRCed\*.sh"; DestDir: "{app}\wxPython\tools\XRCed"; Components: tools
-
-Source: "scripts\*.bat"; DestDir: "{code:GetPythonDir}\Scripts"; Components: tools
-Source: "scripts\*.py"; DestDir: "{code:GetPythonDir}\Scripts"; Components: tools
-Source: "scripts\helpviewer"; DestDir: "{code:GetPythonDir}\Scripts"; Components: tools
-Source: "scripts\img2png"; DestDir: "{code:GetPythonDir}\Scripts"; Components: tools
-Source: "scripts\img2py"; DestDir: "{code:GetPythonDir}\Scripts"; Components: tools
-Source: "scripts\img2xpm"; DestDir: "{code:GetPythonDir}\Scripts"; Components: tools
-Source: "scripts\xrced"; DestDir: "{code:GetPythonDir}\Scripts"; Components: tools
-Source: "scripts\pyshell"; DestDir: "{code:GetPythonDir}\Scripts"; Components: tools
-Source: "scripts\pycrust"; DestDir: "{code:GetPythonDir}\Scripts"; Components: tools
-Source: "scripts\pycwrap"; DestDir: "{code:GetPythonDir}\Scripts"; Components: tools
+Source: "docs\*.txt"; DestDir: "{app}\wxPython\docs"; Components: docs
+Source: "docs\*.css"; DestDir: "{app}\wxPython\docs"; Components: docs
+Source: "docs\*.html"; DestDir: "{app}\wxPython\docs"; Components: docs
+Source: "docs\*.conf"; DestDir: "{app}\wxPython\docs"; Components: docs
+Source: "docs\screenshots\*.png"; DestDir: "{app}\wxPython\docs\screenshots"; Components: docs
+
+Source: "wxPython\tools\*.py"; DestDir: "{app}\wxPython\tools"; Components: core
+Source: "wxPython\tools\XRCed\*.txt"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
+Source: "wxPython\tools\XRCed\sawfishrc"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
+Source: "wxPython\tools\XRCed\*.py"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
+Source: "wxPython\tools\XRCed\*.xrc"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
+Source: "wxPython\tools\XRCed\*.ico"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
+Source: "wxPython\tools\XRCed\*.png"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
+Source: "wxPython\tools\XRCed\*.sh"; DestDir: "{app}\wxPython\tools\XRCed"; Components: core
+Source: "wxPython\tools\XRCed\src-images\*.png"; DestDir: "{app}\wxPython\tools\XRCed\src-images"; Components: core
+
+Source: "scripts\*.bat"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
+Source: "scripts\*.py"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
+Source: "scripts\helpviewer"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
+Source: "scripts\img2png"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
+Source: "scripts\img2py"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
+Source: "scripts\img2xpm"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
+Source: "scripts\pyalacarte"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
+Source: "scripts\pyalamode"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
+Source: "scripts\pyshell"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
+Source: "scripts\pycrust"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
+Source: "scripts\pywrap"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
+Source: "scripts\xrced"; DestDir: "{code:GetPythonDir}\Scripts"; Components: core
Source: "samples\doodle\*.py"; DestDir: "{app}\wxPython\samples\doodle"; Components: samples
Source: "samples\doodle\*.txt"; DestDir: "{app}\wxPython\samples\doodle"; Components: samples
@@ -170,15 +190,17 @@ Source: "samples\doodle\superdoodle.iss"; DestDir: "{app}\wxPython\samples\doo
Source: "samples\wxProject\*.txt"; DestDir: "{app}\wxPython\samples\wxProject"; Components: samples
Source: "samples\wxProject\*.py"; DestDir: "{app}\wxPython\samples\wxProject"; Components: samples
-Source: "samples\StyleEditor\*.txt"; DestDir: "{app}\wxPython\samples\StyleEditor"; Components: samples
-Source: "samples\StyleEditor\*.py"; DestDir: "{app}\wxPython\samples\StyleEditor"; Components: samples
-Source: "samples\StyleEditor\*.cfg"; DestDir: "{app}\wxPython\samples\StyleEditor"; Components: samples
+Source: "samples\StyleEditor\*.txt"; DestDir: "{app}\wxPython\samples\StyleEditor"; Components: samples
+Source: "samples\StyleEditor\*.py"; DestDir: "{app}\wxPython\samples\StyleEditor"; Components: samples
+Source: "samples\StyleEditor\*.cfg"; DestDir: "{app}\wxPython\samples\StyleEditor"; Components: samples
Source: "samples\pySketch\*.py"; DestDir: "{app}\wxPython\samples\pySketch"; Components: samples
Source: "samples\pySketch\images\*.bmp"; DestDir: "{app}\wxPython\samples\pySketch\images"; Components: samples
Source: "samples\frogedit\*.py"; DestDir: "{app}\wxPython\samples\frogedit"; Components: samples
+Source: "samples\hangman\*.py"; DestDir: "{app}\wxPython\samples\hangman"; Components: samples
+
Source: "samples\embedded\*.py"; DestDir: "{app}\wxPython\samples\embedded"; Components: samples
Source: "samples\embedded\*.cpp"; DestDir: "{app}\wxPython\samples\embedded"; Components: samples
Source: "samples\embedded\*.txt"; DestDir: "{app}\wxPython\samples\embedded"; Components: samples
@@ -187,6 +209,10 @@ Source: "samples\embedded\*.unx"; DestDir: "{app}\wxPython\samples\embe
Source: "samples\embedded\*.ico"; DestDir: "{app}\wxPython\samples\embedded"; Components: samples
Source: "samples\embedded\*.xpm"; DestDir: "{app}\wxPython\samples\embedded"; Components: samples
+Source: "samples\wx_examples\basic\*.py"; DestDir: "{app}\wxPython\samples\wx_examples\basic"; Components: samples
+Source: "samples\wx_examples\hello\*.py"; DestDir: "{app}\wxPython\samples\wx_examples\hello"; Components: samples
+Source: "samples\wx_examples\hello\*.jpg"; DestDir: "{app}\wxPython\samples\wx_examples\hello"; Components: samples
+
Source: "src\winxp.manifest"; DestDir: "{code:GetPythonDir}"; DestName: "python.exe.manifest"; Components: core
Source: "src\winxp.manifest"; DestDir: "{code:GetPythonDir}"; DestName: "pythonw.exe.manifest"; Components: core
@@ -194,24 +220,29 @@ Source: "src\winxp.manifest"; DestDir: "{code:GetPythonDir}"; DestN
;;------------------------------------------------------------
[Run]
+;; Compile the .py files
+Filename: "{code:GetPythonDir}\python.exe"; Parameters: "{code:GetPythonDir}\Lib\compileall.py {app}\wxPython {app}\wx"; Description: "Compile Python .py files to .pyc"; Flags: postinstall; Components: core
+
;; Recreate the tool scripts to use the paths on the users machine
-Filename: "{code:GetPythonDir}\python.exe"; Parameters: "{code:GetPythonDir}\Lib\compileall.py {app}\wxPython"; Description: "Compile Python .py files to .pyc"; Flags: postinstall; Components: core
-Filename: "{code:GetPythonDir}\python.exe"; Parameters: "CreateBatchFiles.py"; WorkingDir: "{code:GetPythonDir}\Scripts"; Description: "Create batch files for tool scripts"; Flags: postinstall; Components: tools
+Filename: "{code:GetPythonDir}\python.exe"; Parameters: "CreateBatchFiles.py"; WorkingDir: "{code:GetPythonDir}\Scripts"; Description: "Create batch files for tool scripts"; Flags: postinstall; Components: core
;;------------------------------------------------------------
[Icons]
-Name: "{group}\Run the DEMO"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "{app}\wxPython\demo"; Parameters: "demo.py"; IconFilename: "{app}\wxPython\demo\wxpdemo.ico"; Components: core
-Name: "{group}\PyCrust"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\pycrust"; IconFilename: "{app}\wxPython\lib\PyCrust\PyCrust.ico"; Components: core
-Name: "{group}\PyShell"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\pyshell"; IconFilename: "{app}\wxPython\lib\PyCrust\PyCrust.ico"; Components: core
+Name: "{group}\Run the wxPython DEMO"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "{app}\wxPython\demo"; Parameters: "demo.py"; IconFilename: "{app}\wxPython\demo\wxpdemo.ico"; Components: core
+Name: "{group}\PyCrust"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\pycrust"; IconFilename: "{app}\wxPython\py\PyCrust.ico"; Components: core
+Name: "{group}\PyShell"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\pyshell"; IconFilename: "{app}\wxPython\py\PyCrust.ico"; Components: core
+Name: "{group}\PyAlaMode"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\pyalamode"; IconFilename: "{app}\wxPython\py\PyCrust.ico"; Components: core
+Name: "{group}\PyAlaCarte"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\pyalacarte"; IconFilename: "{app}\wxPython\py\PyCrust.ico"; Components: core
Name: "{group}\wxWindows Reference"; Filename: "{app}\wxPython\docs\wx.chm"; Components: docs
Name: "{group}\wxOGL Reference"; Filename: "{app}\wxPython\docs\ogl.chm"; Components: docs
Name: "{group}\licence.txt"; Filename: "{app}\wxPython\docs\licence\licence.txt"; Components: core
Name: "{group}\README.txt"; Filename: "{app}\wxPython\docs\README.txt"; Components: core
Name: "{group}\CHANGES.txt"; Filename: "{app}\wxPython\docs\CHANGES.txt"; Components: core
Name: "{group}\Sample Apps"; Filename: "{app}\wxPython\samples"; Components: samples
-Name: "{group}\Resource Editor"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\xrced"; IconFilename: "{app}\wxPython\Tools\XRCed\xrced.ico"; Components: tools
+Name: "{group}\Resource Editor"; Filename: "{code:GetPythonDir}\pythonw.exe"; WorkingDir: "c:\"; Parameters: "{code:GetPythonDir}\Scripts\xrced"; IconFilename: "{app}\wxPython\Tools\XRCed\xrced.ico"; Components: core
+Name: "{group}\wxPython Docs"; Filename: "{app}\wxPython\docs\wxPythonDocs.html"; Components: docs
;;------------------------------------------------------------
@@ -228,12 +259,14 @@ Type: files; Name: "{app}\wxPython\lib\mixins\*.pyc";
Type: files; Name: "{app}\wxPython\lib\mixins\*.pyo";
Type: files; Name: "{app}\wxPython\lib\PyCrust\*.pyc";
Type: files; Name: "{app}\wxPython\lib\PyCrust\*.pyo";
-Type: files; Name: "{app}\wxPython\lib\PyCrust\decor\*.pyc";
-Type: files; Name: "{app}\wxPython\lib\PyCrust\decor\*.pyo";
-Type: files; Name: "{app}\wxPython\lib\PyCrust\wxd\*.pyc";
-Type: files; Name: "{app}\wxPython\lib\PyCrust\wxd\*.pyo";
Type: files; Name: "{app}\wxPython\lib\colourchooser\*.pyc";
Type: files; Name: "{app}\wxPython\lib\colourchooser\*.pyo";
+Type: files; Name: "{app}\wxPython\py\*.pyc";
+Type: files; Name: "{app}\wxPython\py\*.pyo";
+Type: files; Name: "{app}\wxPython\py\tests\*.pyc";
+Type: files; Name: "{app}\wxPython\py\tests\*.pyo";
+Type: files; Name: "{app}\wxPython\py\wxd\*.pyc";
+Type: files; Name: "{app}\wxPython\py\wxd\*.pyo";
Type: files; Name: "{app}\wxPython\tools\*.pyc";
Type: files; Name: "{app}\wxPython\tools\*.pyo";
Type: files; Name: "{app}\wxPython\tools\XRCed\*.pyc";
@@ -253,6 +286,13 @@ Type: files; Name: "{app}\wxPython\samples\StyleEditor\*.pyc";
Type: files; Name: "{app}\wxPython\samples\StyleEditor\*.pyo";
Type: files; Name: "{app}\wxPython\samples\frogedit\*.pyc";
Type: files; Name: "{app}\wxPython\samples\frogedit\*.pyo";
+Type: files; Name: "{app}\wxPython\samples\hangman\*.pyc";
+Type: files; Name: "{app}\wxPython\samples\hangman\*.pyo";
+Type: files; Name: "{app}\wxPython\samples\hangman\*.txt";
+Type: files; Name: "{app}\wxPython\samples\wx_examples\basic\*.pyc";
+Type: files; Name: "{app}\wxPython\samples\wx_examples\basic\*.pyo";
+Type: files; Name: "{app}\wxPython\samples\wx_examples\hello\*.pyc";
+Type: files; Name: "{app}\wxPython\samples\wx_examples\hello\*.pyo";
Type: files; Name: "{app}\wxPython\demo\data\*.pyc";
Type: files; Name: "{app}\wxPython\demo\data\*.pyo";
Type: files; Name: "{app}\wxPython\demo\dllwidget\*.pyc";
@@ -261,6 +301,24 @@ Type: files; Name: "{app}\wxPython\samples\embedded\*.pyc";
Type: files; Name: "{app}\wxPython\samples\embedded\*.pyo";
Type: files; Name: "{app}\wxPython\samples\pySketch\*.pyc";
Type: files; Name: "{app}\wxPython\samples\pySketch\*.pyo";
+Type: files; Name: "{app}\wx\*.pyc";
+Type: files; Name: "{app}\wx\*.pyo";
+Type: files; Name: "{app}\wx\lib\*.pyc";
+Type: files; Name: "{app}\wx\lib\*.pyo";
+Type: files; Name: "{app}\wx\lib\colourchooser\*.pyc";
+Type: files; Name: "{app}\wx\lib\colourchooser\*.pyo";
+Type: files; Name: "{app}\wx\lib\editor\*.pyc";
+Type: files; Name: "{app}\wx\lib\editor\*.pyo";
+Type: files; Name: "{app}\wx\lib\mixins\*.pyc";
+Type: files; Name: "{app}\wx\lib\mixins\*.pyo";
+Type: files; Name: "{app}\wx\py\*.pyc";
+Type: files; Name: "{app}\wx\py\*.pyo";
+Type: files; Name: "{app}\wx\tools\*.pyc";
+Type: files; Name: "{app}\wx\tools\*.pyo";
+Type: files; Name: "{app}\wx\tools\XRCed\*.pyc";
+Type: files; Name: "{app}\wx\tools\XRCed\*.pyo";
+
+
'''
@@ -380,7 +438,7 @@ def main():
verglob = {}
execfile("wxPython/__version__.py", verglob)
- VERSION = verglob["ver"]
+ VERSION = verglob["wxVERSION_STRING"]
SHORTVER = VERSION[:3]
WXDLL, PYTHONVER = find_DLLs()
diff --git a/wxPython/distrib/make_static_setup.py b/wxPython/distrib/make_static_setup.py
new file mode 100644
index 0000000000..7ba0d9f7a9
--- /dev/null
+++ b/wxPython/distrib/make_static_setup.py
@@ -0,0 +1,111 @@
+#!/bin/env python
+#---------------------------------------------------------------------------
+# This script generates a template that can be used in the Python
+# build process (on posix systems) in order to staticly link the
+# wxPython modules into the Python executable. The output of this
+# script should be put into a file named Setup.local (or perhaps just
+# concatenated to Setup) in the Modules dir of the Python source
+# distribution, then just build Python like normal.
+#
+# You can use any of the command-line args that setup.py understands
+# with this script too in order to control what modules are built and
+# which compile options and such are used.
+#
+# This script must be run from the wxPython directory.
+#---------------------------------------------------------------------------
+
+
+import sys, os, re
+
+# if you need to change some setup.py flags do it here before it is
+# imported. Just append to sys.argv.
+sys.argv.append("BUILD_GLCANVAS=0")
+sys.argv.append("BUILD_OGL=0")
+sys.argv.append("BUILD_DLLWIDGET=0")
+#sys.argv.append("CORE_ONLY=1")
+
+import setup
+
+
+def printitem(st):
+ if st:
+ print '\\\n\t', st,
+
+
+def buildflags(items, flag, path=None):
+ st = ''
+ for item in items:
+ if path is not None and item[0] != '/':
+ item = os.path.join(path, item)
+ st += "%s%s " % (flag, item)
+ return st
+
+
+def buildmacros(items):
+ st = ''
+ for item in items:
+ if len(item) == 1:
+ st += "-U%s " % item[0]
+ elif item[1] is None:
+ st += "-D%s " % item[0]
+ else:
+ st += "-D%s=%s " % item
+ return st
+
+
+# Python's makesetup can't handle -D flags with = in them, so we need to workaround
+def fixmacros(st):
+ defs = []
+ pat = re.compile(r'-D([A-Za-z0-9_]*)=([A-Za-z0-9_]*)')
+ match = pat.search(st)
+ while match is not None:
+ name = match.group(1)
+ value = match.group(2)
+ defs.append("m_%s = -D%s=%s" % (name, name, value))
+ st = st[:match.start()] + ("$(m_%s)" % name) + st[match.end():]
+ match = pat.search(st)
+
+ return st, defs
+
+
+
+def main():
+ cwd = os.getcwd()
+
+ print """\
+# This file is autogenerated by %s and should be
+# placed in the /Modules/Setup.local file before
+# Python is built.
+
+*static*
+
+""" % sys.argv[0]
+
+ for ext in setup.wxpExtensions:
+ eca = " ".join(ext.extra_compile_args)
+ macros = buildmacros(ext.define_macros)
+
+ eca, defs = fixmacros(eca)
+ print "\n".join(defs)
+ macros, defs = fixmacros(macros)
+ print "\n".join(defs)
+
+ print ext.name,
+ for s in ext.sources:
+ printitem(os.path.join(cwd, s))
+ printitem(buildflags(ext.include_dirs, '-I', cwd))
+ printitem(buildflags(ext.library_dirs, '-L'))
+ printitem(buildflags(ext.libraries, '-l'))
+ printitem(macros)
+ printitem(eca)
+ # filter out some options that makesetup can't handle, but it shouldn't hurt to remove these...
+ ela = filter(lambda x: x not in ['-pthread', '-rdynamic'], ext.extra_link_args)
+ printitem(" ".join(ela))
+
+ print; print; print
+
+
+
+if __name__ == "__main__":
+ main()
+
diff --git a/wxPython/distrib/makerpm b/wxPython/distrib/makerpm
index f9e7604374..6d6088d515 100755
--- a/wxPython/distrib/makerpm
+++ b/wxPython/distrib/makerpm
@@ -136,14 +136,16 @@ if [ -z "${skipcopy}" ]; then
cp -pf --link ${wxdir}/* ${tarver} > /dev/null 2>&1
# copy all top dirs except CVS, build, demos, utils, samples, and wxPython
- for d in art contrib debian distrib docs include lib locale misc src; do
- cp -Rpf --link ${wxdir}/$d ${tarver} #> /dev/null 2>&1
+ for d in art contrib debian distrib docs include lib locale misc patches src; do
+ if [ -e ${wxdir}/$d ]; then
+ cp -Rpf --link ${wxdir}/$d ${tarver} #> /dev/null 2>&1
+ fi
done
# now do the same thing for wxPython, skipping it's build dirs and such
mkdir ${tarver}/wxPython
cp -pf --link ${wxdir}/wxPython/* ${tarver}/wxPython > /dev/null 2>&1
- for d in contrib demo distrib distutils samples scripts src wxPython; do
+ for d in contrib demo distrib distutils docs licence samples scripts src wx wxPython; do
cp -Rpf --link ${wxdir}/wxPython/$d ${tarver}/wxPython #> /dev/null 2>&1
done
diff --git a/wxPython/distrib/wxPythonFull.spec.in b/wxPython/distrib/wxPythonFull.spec.in
index fa0745bb6f..15bb0ea82b 100644
--- a/wxPython/distrib/wxPythonFull.spec.in
+++ b/wxPython/distrib/wxPythonFull.spec.in
@@ -28,8 +28,12 @@
# build the name of the real wx-config from the port, flags, etc.
%define dbgflg %(if [ "%{debug_flag}" = "1" ]; then echo d; fi)
%define uniflg %(if [ "%{unicode}" = "1" ]; then echo u; fi)
+%define DBGFLG %(if [ "%{debug_flag}" = "1" ]; then echo D; fi)
+%define UNIFLG %(if [ "%{unicode}" = "1" ]; then echo U; fi)
%define wxconfigname %{wxpref}/bin/wx%{lcport}%{uniflg}%{dbgflg}-%{ver2}-config
+# turn off the generation of debuginfo rpm (RH9)
+%define debug_package %{nil}
#----------------------------------------------------------------
Summary: Cross platform GUI toolkit for Python using wx%{port}
@@ -43,13 +47,18 @@ Packager: Robin Dunn
Group: Development/Python
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{pref}
-#BuildRequires: %{python}
Provides: wxPython = %{version}
Provides: wxPython%{port} = %{version}
+Provides: libwx_%{lcport}%{uniflg}%{dbgflg}-%{ver2}.so
+Provides: libwx_%{lcport}%{uniflg}%{dbgflg}-%{ver2}.so(WX%{port}%{UNIFLG}%{DBGFLG}_%{ver2})
+Provides: libwx_%{lcport}%{uniflg}%{dbgflg}_gl-%{ver2}.so
+Provides: libwx_%{lcport}%{uniflg}%{dbgflg}_gl-%{ver2}.so(WX%{port}%{UNIFLG}%{DBGFLG}_%{ver2})
+
+
# old wxPython packages
-Obsoletes: wxPython
+Obsoletes: wxPython wxPython%{port}
%description
@@ -127,8 +136,6 @@ cd $WXDIR/wxPython
WX_CONFIG="$WXDIR/build/wx-config --prefix=$WXDIR --exec-prefix=$WXDIR/build" \
build
-## WX_CONFIG="$WXDIR/build/wx-config --inplace --prefix=$RPM_BUILD_ROOT%{wxpref}" \
-
# Build wxrc (XRC resource tool) but don't use the makefiles since they expect
@@ -138,7 +145,7 @@ WX_CONFIG="$WXDIR/build/wx-config --prefix=$WXDIR --exec-prefix=$WXDIR/build"
wCC=`$WX_CONFIG --cc`
wCXX=`$WX_CONFIG --cxx`
-for f in wxrc.cpp ../../src/xrc/*.cpp; do
+for f in wxrc.cpp ../../src/xrc/xml.cpp ../../src/xrc/xmlres.cpp; do
echo $f
$wCXX `$WX_CONFIG --cxxflags` -I ../../include -I ../../src/xrc/expat/xmlparse -I ../../src/xrc/expat/xmltok -c $f
done
@@ -147,9 +154,6 @@ for f in ../../src/xrc/expat/xmlparse/xmlparse.c ../../src/xrc/expat/xmltok/xmlr
$wCC `$WX_CONFIG --cxxflags` -I ../../include -I ../../src/xrc/expat/xmlparse -I ../../src/xrc/expat/xmltok -c $f
done
-# the handlers are not needed
-rm xh_*.o xmlrsall.o
-
$wCXX `$WX_CONFIG --libs` *.o -o wxrc
strip wxrc
@@ -189,8 +193,10 @@ for s in \
img2png \
img2py \
img2xpm \
+ pyalacarte \
+ pyalamode \
pycrust \
- pycwrap \
+ pywrap \
pyshell \
xrced; do
cp scripts/$s $RPM_BUILD_ROOT/%{pref}/bin
@@ -201,6 +207,37 @@ done
cp $WXDIR/contrib/utils/wxrc/wxrc $RPM_BUILD_ROOT/%{pref}/bin
+# Copy icons and make menu entries
+#-- This only works for Mandrake. Is there a cross-distro way to do it?
+##mkdir -p $RPM_BUILD_ROOT/%{_iconsdir}
+##mkdir -p $RPM_BUILD_ROOT/%{_miconsdir}
+##mkdir -p $RPM_BUILD_ROOT/%{_menudir}
+##install -p -m 644 $WXDIR/wxPython/wxPython/py/PyCrust_32.png $RPM_BUILD_ROOT/%{_iconsdir}/PyCrust.png
+##install -p -m 644 $WXDIR/wxPython/wxPython/py/PyCrust_16.png $RPM_BUILD_ROOT/%{_miconsdir}/PyCrust.png
+##install -p -m 644 $WXDIR/wxPython/wxPython/tools/XRCed/XRCed_32.png $RPM_BUILD_ROOT/%{_iconsdir}/XRCed.png
+##install -p -m 644 $WXDIR/wxPython/wxPython/tools/XRCed/XRCed_16.png $RPM_BUILD_ROOT/%{_miconsdir}/XRCed.png
+##
+##cat > $RPM_BUILD_ROOT/%{_menudir}/%{name} <> FILELIST
$GFL $RPM_BUILD_ROOT %{wxpref}/lib >> FILELIST
$GFL $RPM_BUILD_ROOT "%{wxpref}/lib/libwx*" >> FILELIST
$GFL -r $RPM_BUILD_ROOT %{wxpref}/share >> FILELIST
+###GFL -r $RPM_BUILD_ROOT %{_iconsdir} >> FILELIST
+##$GFL -r $RPM_BUILD_ROOT %{_menudir} >> FILELIST
$GFL $RPM_BUILD_ROOT %{wxpref}/include > DEVELLIST
$GFL -r $RPM_BUILD_ROOT %{wxpref}/include/wx >> DEVELLIST
@@ -226,6 +265,13 @@ $GFL $RPM_BUILD_ROOT %{wxconfigname} >> DEVELLIST
$GFL $RPM_BUILD_ROOT %{wxpref}/bin/wx-config >> DEVELLIST
+#----------------------------------------------------------------
+##%post
+##%{update_menus}
+##
+##%postun
+##%{clean_menus}
+
#----------------------------------------------------------------
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
@@ -237,7 +283,7 @@ $GFL $RPM_BUILD_ROOT %{wxpref}/bin/wx-config >> DEVELLIST
%defattr(-,root,root)
%doc docs/preamble.txt docs/licence.txt docs/readme.txt docs/changes.txt
%doc wxPython/README.txt wxPython/CHANGES.txt
-
+%doc wxPython/docs/*
%files -n wxPython%{port}-devel -f DEVELLIST
%defattr(-,root,root)
diff --git a/wxPython/distrib/wx_conv.py b/wxPython/distrib/wx_conv.py
new file mode 100644
index 0000000000..1ac2d1b819
--- /dev/null
+++ b/wxPython/distrib/wx_conv.py
@@ -0,0 +1,220 @@
+"""
+Convert modules from the old 'from wxPython.wx import *' style to
+the new 'import wx' style.
+
+Author: dfh@forestfield.co.uk (David Hughes)
+
+
+This should probably go in the tools package and have a startup script
+like the others, but I don't think it's ready for prime-time yet. So
+just put it in distrib for now so it doesn't get lost...
+
+--Robin
+"""
+
+
+import os, sys, time
+import string
+t0 = time.time()
+
+
+import wx
+print 'length = ', len(wx._newnames)
+
+for key in ['true', 'True', 'false', 'False']: # use native Python not wx.
+ if key in wx._newnames:
+ del wx._newnames[key]
+
+import wx.calendar, wx.gizmos, wx.glcanvas, wx.grid, wx.help, wx.html, \
+ wx.htmlhelp, wx.iewin, wx.ogl, wx.stc, wx.wizard, wx.xrc
+import wx.lib
+##import wx.lib.activexwrapper, wx.lib.analogclock, wx.lib.anchors, \
+import wx.lib.activexwrapper, wx.lib.anchors, \
+ wx.lib.buttons, wx.lib.calendar, wx.lib.ClickableHtmlWindow, \
+ wx.lib.colourdb, wx.lib.colourselect, wx.lib.dialogs, \
+ wx.lib.ErrorDialogs, wx.lib.evtmgr, wx.lib.fancytext, \
+ wx.lib.filebrowsebutton, wx.lib.gridmovers, wx.lib.grids, \
+ wx.lib.imagebrowser, wx.lib.imageutils, wx.lib.infoframe, \
+ wx.lib.intctrl, wx.lib.layoutf, wx.lib.multisash, \
+ wx.lib.popupctl, wx.lib.printout, wx.lib.rcsizer, \
+ wx.lib.rightalign, wx.lib.sheet, wx.lib.stattext, \
+ wx.lib.throbber, wx.lib.timectrl, wx.lib.wxPlotCanvas, \
+ wx.lib.wxpTag
+import wx.lib.mixins, wx.lib.editor, wx.lib.colourchooser
+import wx.lib.mixins.grid, wx.lib.mixins.imagelist, \
+ wx.lib.mixins.listctrl
+## wx.lib.mixins.listctrl, wx.lib.mixins.rubberband
+import wx.lib.editor.editor, wx.lib.editor.images, wx.lib.editor.selection
+import wx.lib.colourchooser.canvas, wx.lib.colourchooser.intl, wx.lib.colourchooser.pycolourbox, \
+ wx.lib.colourchooser.pycolourchooser, wx.lib.colourchooser.pycolourslider, wx.lib.colourchooser.pypalette
+
+wxlist = []
+for kd in wx._newnames.items():
+ wxlist.append(kd)
+wxlist.sort()
+
+n = 0
+for item in wxlist:
+ n += 1
+## print n, item
+print 'length = ', len(wx._newnames)
+print 'imports completed in ', time.time()-t0, 'secs'
+
+base_path = 'G:/wxConvert/Test1'
+exclude_dir = ( 'wx', 'wx_cc', 'reportlab', 'sqlite') # MUST exclude wx if it is below base_dir, others optional
+
+other_subs = { 'true': 'True',
+ 'false': 'False'
+ }
+
+punct = string.punctuation.replace('_','') # exclude single underscore
+punct = punct.replace('.','') # and period
+punct = punct.replace('*','') # and asterisk, all allowed in names
+punctable = string.maketrans(punct, ' '*len(punct)) # map punctuation characters to spaces
+numfiles = 0
+
+#----------------------------------------------------------------------------
+
+class AFile:
+ " file object - collection of properties relating to current instance"
+ def __init__(self, subsdict):
+ self.subsdict = subsdict.copy() # dictionary of universal and local substitutions to make
+ self.importing = [] # list of wx modules being imported
+
+#----------------------------------------------------------------------------
+
+def visit(noargs, thispath, contentlist):
+ """ Function is called by os walk for every directory in base_path,
+ including base_path itself. Contentlist is a list of files/dirs in thispath.
+ Wx conversion function is called for every qualifying file in list
+ """
+ path = thispath
+ base = 'something'
+ while base: # check if thispath or a parent is excluded
+ path, base = os.path.split(path)
+ if base in exclude_dir:
+ print 'Excluded:', thispath
+ return
+
+ for item in contentlist:
+ pathname = os.path.join(thispath, item)
+ if os.path.isfile(pathname) and pathname[-3:].lower() == '.py':
+ wxconvert(pathname)
+
+def wxconvert(pathname):
+ """ Scan each line of text in pathname. Replace each occurrence of any key in wx._newnames
+ dictionary with the content stored under that key
+ """
+ global numfiles
+ afile = AFile(other_subs)
+ infile = open(pathname, 'r')
+ linelist = infile.readlines()
+ infile.close()
+
+ lnum = 0
+ outlist = []
+ for line in linelist:
+ lnum += 1
+ tokenlist = line.replace('.__', ' ').translate(punctable).split() # split on white space and punctuation
+ line, status = checkimports(afile, line, tokenlist) # return line with 'import' modifications
+ if not status:
+ print 'Unable to convert line %d in %s' % (lnum, pathname)
+ break
+ else:
+ for key in afile.subsdict: # do other changes first
+ if line.find(key) >= 0:
+ line = line.replace(key, afile.subsdict[key])
+ for token in tokenlist: # change wx names
+ if token in wx._newnames:
+ candidate = wx._newnames[token]
+ module = candidate[:candidate.rfind('.')]
+ if module in afile.importing:
+ line = line.replace(token, candidate)
+ outlist.append(line)
+ else:
+ outfile = open(pathname, 'w')
+ outfile.writelines(outlist)
+ numfiles += 1
+ print 'Converted:', pathname
+ outfile.close()
+
+def checkimports(afile, line, tlist):
+ """ Scan tokenlist for wxPython import statement. Add to afile.subsdict any
+ name changes that are necessary for the rest of the current source file.
+ Add to afile.importing any new import modules
+ Return a tuple (status, newstring) -
+ line, possibly modified if an import statmeny
+ status: 0: unable to handle complexity, 1: OK
+ """
+ aline = line
+ if len(tlist) == 0: return (aline, 1)
+ indent = ''
+ for ch in line:
+ if ch in string.whitespace:
+ indent += ' '
+ else:
+ break
+
+ if tlist[0] == 'import': # import module [as name] [module [as name]...]
+ skip = False
+ for t in tlist[1:]:
+ if skip:
+ skip = False
+ elif t == 'as':
+ skip = True
+ elif t.startswith('wx'):
+ aline = aline.replace(t, rename_module(afile, t))
+ elif (tlist[0] == 'from' and
+ tlist[1] == 'wxPython' and
+ tlist[2] == 'import'): # from wxPython import module
+ if len(tlist) > 4: # ...[as name] [module [as name]...]
+ return ('', 0) # too complicated
+ module = rename_module(afile,tlist[-1])
+ aline = indent = 'import ' + module + '\n'
+ elif (tlist[0] == 'from' and
+ tlist[1].startswith('wxPython') and
+ tlist[2] == 'import'): # from module import ....
+ if tlist[-1] <> '*': # ...name [as name] [name [as name]...]
+ aline = aline.replace(tlist[1], rename_module(afile, tlist[1]))
+ skip = False
+ for t in tlist[3:]:
+ if skip:
+ skip = False
+ elif t == 'as':
+ skip = True
+ else:
+ elem = t.split('.')
+ if elem[-1].startswith('wx'): # remove wx prefix from last element of name
+ elem[-1] = elem[-1][2:]
+ afile.subsdict[t] = '.'.join(elem) # and apply to each occurrence in source
+ else: # from module import *
+ module = rename_module(afile,tlist[1])
+ aline = indent = 'import ' + module + '\n'
+ return (aline, 1)
+
+def rename_module(afile, t, type='A'):
+ """ Substitute wx for wxPython.wx or wx, and wx.foo.bar for wxPython.foo.bar in token
+ foo.bar => wx.foo.bar is also permitted (from wxPython import foo.bar)
+ """
+ if t in ['wx', 'wxPython.wx']:
+ module = 'wx'
+ elif t.startswith('wxPython'):
+ module = t.replace('wxPython', 'wx')
+ elif t.startswith('wx'):
+ module = t
+ else:
+ module = 'wx.' + t
+ if module not in afile.importing:
+ afile.importing.append(module)
+ return module
+
+def main():
+ " Convert every file in base_dir and all subdirectories except in exclude_dir list"
+
+ os.path.walk(base_path, visit, None)
+ print '%d files converted in %.2f seconds' % (numfiles, time.time() - t0)
+
+#----------------------------------------------------------------------------
+
+if __name__ == '__main__':
+ main()
diff --git a/wxPython/distrib/wx_create.py b/wxPython/distrib/wx_create.py
new file mode 100644
index 0000000000..baf85ae6b7
--- /dev/null
+++ b/wxPython/distrib/wx_create.py
@@ -0,0 +1,116 @@
+"""
+wx_create.py
+
+Originally written by David Hughes
+Massivly hacked by Robin Dunn
+
+This automatically creates all the stub modules that are required in
+the wx package in addition to __init__.py
+
+The module names to make stubs for are found by scanning the wxPython
+package directory. The default directory searched is ../wxPython, but
+you can specify a different one on the command-line if needed.
+
+The content of each module (.py file) is taken from wxmodule_template
+with appropriate substitution of the %name% tokens
+
+"""
+
+import os, sys, glob
+
+wxmodule_template = """
+\"\"\"Renamer stub: provides a way to drop the wx prefix from wxPython objects.\"\"\"
+
+__cvsid__ = \"\x24Id: \x24\"
+__revision__ = \"\x24Revision: \x24\"[11:-2]
+
+from wx import _rename
+from wxPython%(prefix)s import %(suffix)s
+_rename(globals(), %(suffix)s.__dict__, modulename='%(name)s')
+del %(suffix)s
+del _rename
+"""
+
+wxPython_dir = "../wxPython"
+
+subpackage_list = ['.',
+ 'lib', 'lib/mixins', 'lib/editor', 'lib/colourchooser',
+ 'py',
+ 'tools', 'tools/XRCed',
+ ]
+
+skip_modules = [ '__init__', '__version__',
+ 'wx', 'windows', 'windows2', 'windows3', 'events', 'fonts', 'misc',
+ 'misc2', 'gdi', 'mdi', 'controls', 'controls2', 'cmndlgs',
+ 'stattool', 'frames', 'image', 'printfw', 'sizers', 'clip_dnd',
+ 'filesys', 'streams', 'htmlhelp', 'oglbasic', 'oglshapes',
+ 'oglshapes2', 'oglcanvas', 'stc_', 'utils', 'dllwidget_',
+
+ 'PyAlaModeTest',
+ ]
+
+
+
+
+
+# Check for command-line arg
+if len(sys.argv) > 1:
+ wxPython_dir = sys.argv[1]
+
+# check wxPython_dir
+if not os.path.exists(wxPython_dir) or not os.path.isdir(wxPython_dir):
+ print wxPython_dir, "does not exist or is not a directory!"
+ sys.exit()
+
+# check current location
+if os.path.basename(os.getcwd()) <> 'wx':
+ print 'This must be run from inside the target "wx" directory'
+ sys.exit()
+
+
+# build the modules and subpackages as needed
+for subdir in subpackage_list:
+ # create subdir if needed
+ if not os.path.exists(subdir):
+ os.mkdir(subdir)
+
+ # create __init__.py if needed
+ if os.path.isdir(subdir):
+ fname = os.path.join(subdir, '__init__.py')
+ if not os.path.exists(fname):
+ f = open(fname, 'w')
+ f.write("# Python package\n")
+ f.close()
+ else:
+ print subdir + 'exists but is not a directory'
+ sys.exit()
+
+ # find the .py files there and make renamer stubs for them here
+ src = os.path.join(wxPython_dir, subdir, "*.py")
+ for srcname in glob.glob(src):
+ suffix = os.path.splitext(os.path.basename(srcname))[0]
+ if suffix in skip_modules:
+ continue
+ prefix = subdir.replace('/', '.')
+ if prefix == '.':
+ prefix = ''
+ name = suffix
+ else:
+ name = prefix + '.' + suffix
+ prefix = '.' + prefix
+
+ fname = os.path.join(subdir, suffix+".py")
+
+ content = wxmodule_template % globals()
+ f = open(fname, 'w')
+ f.write(content)
+ f.close()
+ print fname + ' created'
+
+
+
+sys.exit()
+
+
+
+
diff --git a/wxPython/docs/PyManual.txt b/wxPython/docs/PyManual.txt
new file mode 100644
index 0000000000..55c5170c4b
--- /dev/null
+++ b/wxPython/docs/PyManual.txt
@@ -0,0 +1,225 @@
+===============
+ The Py Manual
+===============
+
+-------------------------
+ Py - Served Fresh Daily
+-------------------------
+
+:Author: Patrick K. O'Brien
+:Contact: pobrien@orbtech.com
+:Organization: Orbtech_
+:Date: $Date$
+:Revision: $Revision$
+
+.. _Orbtech: http://www.orbtech.com/
+
+.. contents::
+
+
+Introduction
+============
+
+This document will show you how to use the Py programs and the Py
+library of Python source code modules. Py is the new name for the
+project that began as PyCrust. Py is officially part of wxPython_,
+and includes PyCrust, so PyCrust is no longer distributed separately.
+
+.. _wxPython: http://www.wxpython.org/
+
+
+Developer Reference
+===================
+
+Source code documentation for developers is available at:
+
+http://www.orbtech.com/www/wx/epydoc/public/wx.py-module.html
+
+
+What is Py?
+===========
+
+Besides being `a delicious dessert`_, Py is the name for a collection
+of whimsically-named Python programs and modules that began as the
+PyCrust project. So Py is really several things: a set of standalone
+programs, including the original PyCrust program, a library of Python
+source code modules that can be used in your own programs, a set of
+decorator classes that enhance the wxPython class library, and as many
+examples of bad "pie" puns as I can come up with. (If you're going to
+do something, you might as well do it all the way, right?) Py uses
+Python and wxPython, so it works equally well on Windows, Linux and
+Mac OS X.
+
+.. _a delicious dessert: http://www.wikipedia.org/wiki/Pie
+
+
+PyCrust is dead! Long live Py!
+==============================
+
+This project began with a program I created called PyCrust - an
+interactive, graphical Python shell, developed using the wxPython GUI
+toolkit. For about two years, PyCrust was hosted on SourceForge_.
+Shortly after I created PyCrust, the wxPython folks started including
+it in their distribution. As the PyCrust project grew, it reached a
+point where I thought the original PyCrust name was too confining. I
+was using the PyCrust code base to develop programs that weren't just
+Python shells any more.
+
+Around that same time, the wxPython folks asked me if I'd be willing
+to move all my wxPython-related projects into the `wxPython CVS
+repository`_, and become part of the wxPython_/wxWindows_ developer team.
+I decided the time was right to restructure the PyCrust project.
+During the move, the PyCrust package was renamed to "py" (lowercase
+"p") and the collection of programs and modules as a whole became
+known as "Py" (with a capital "P").
+
+.. _wxPython CVS repository: http://cvs.wxwindows.org
+.. _SourceForge: http://www.sf.net/projects/pycrust/
+.. _wxWindows: http://www.wxwindows.org/
+
+The original goal of PyCrust was to be the best interactive, graphical
+Python shell (of course, I claimed it was the "flakiest" Python
+shell). And that was all I wanted it to be. But little by little I
+found myself developing a wider variety of tools for wxPython
+applications. Eventually I'll create a debugger (PySlice, perhaps)
+and whatever else is needed to one day become a complete wxPython
+application development environment (PyFactory?). In the mean time,
+PyCrust is still the flakiest Python shell, and the other Py programs
+are equally tasty.
+
+At this point, Py has standalone programs that include Python code
+editors (PyAlaCarte and PyAlaMode), interactive Python shells (PyCrust
+and PyShell), and a runtime wrapper (PyWrap). The runtime wrapper
+utility provides you with runtime introspection capabilities for your
+wxPython programs without having to include PyCrust or PyShell in your
+program, and without having to alter one line of your source code.
+
+Py also contains a collection of modules that you can use in your own
+wxPython applications to provide similar services, either for your own
+use during development, or as an interface for users of your programs.
+These modules are the same ones used by all the Py programs. In
+addition, Py contains a set of decorator classes that enhance the
+wxPython class library, by dynamically attaching docstrings and call
+signatures at runtime.
+
+
+Py standalone programs
+======================
+
+These are the standalone applications in the Py collection:
+
+* PyAlaCarte
+* PyAlaMode
+* PyCrust
+* PyFilling
+* PyShell
+* PyWrap
+
+
+PyAlaCarte
+==========
+
+PyAlaCarte is a Python source code editor. It is designed to have a
+simple, single-file interface. As a standalone application, it is
+good for simple, short editing tasks. But it is really meant to be
+more of an example of how to embed the Py editor into a wxPython
+application.
+
+
+PyAlaMode
+=========
+
+PyAlaMode is a Python source code editor.
+
+
+PyCrust
+=======
+
+PyCrust is an interactive, Python shell. But it's more than just a
+shell. It includes a tabbed notebook containing a namespace tree
+(PyFilling), and several other things.
+
+
+PyFilling
+=========
+
+PyFilling is a namespace viewer. It isn't really useful as a
+standalone program, but it does illustrate how to make use of the
+underlying ``filling`` module.
+
+
+PyShell
+=======
+
+PyShell is an interactive, Python shell. It shares the same base code
+as PyCrust, but doesn't have any of the extra features that appear in
+the PyCrust notebook interface.
+
+.. figure:: /screenshots/PyShell.png
+
+ PyShell running on Mandrake Linux 9.1.
+
+
+PyWrap
+======
+
+PyWrap is a runtime utility that lets you run an existing wxPython
+program with a PyCrust frame at the same time. Inside the PyCrust
+shell namespace, the local variable ``app`` is assigned to your
+application instance. In this way you can introspect your entire
+application within the PyCrust shell, as well as the PyFilling
+namespace viewer. And through the use of the Py decorator classes,
+PyCrust can display wxPython function and method signatures as well as
+docstrings for the entire wxPython library.
+
+
+Py modules
+==========
+
+Py was designed to be modular. That means graphical code is kept
+separate from non-graphical code, and many of the Py modules can be
+used by other programs. Likewise, other programs can supply some of
+the modules needed by Py. For example, you could supply a customized
+interpreter module and plug it in to the PyCrust standalone
+application. As long as it supports the minimum functionality
+required, PyCrust will work just as well with your interpreter as with
+its default interpreter.
+
+
+Decorator classes
+=================
+
+Py contains a set of decorator classes that enhance the wxPython class
+library, by dynamically attaching docstrings and call signatures at
+runtime.
+
+
+Projects using Py
+=================
+
+* `Conflict Solver`_
+* Gnumed_
+* PyGist
+* PythonCard_
+* RPy_
+* SciPy_
+* Sim42_
+* wxGasp_
+
+.. _Conflict Solver: http://conflictsolver.sourceforge.net/
+.. _Gnumed: http://www.gnumed.org/
+.. _PythonCard: http://www.pythoncard.org/
+.. _RPy: http://rpy.sourceforge.net/
+.. _SciPy: http://www.scipy.org/
+.. _Sim42: http://www.sim42.org/
+.. _wxGasp: http://linus.yorktown.arlington.k12.va.us/CS/APCSC/student_sites/David_Mayo/wxGasp
+
+
+History of changes
+==================
+
+This section lists all the changes that have been made to the Py
+programs and modules, since the beginning.
+
+.. include:: ../wxPython/py/CHANGES.txt
+
diff --git a/wxPython/docs/default.css b/wxPython/docs/default.css
new file mode 100644
index 0000000000..7343b12bc9
--- /dev/null
+++ b/wxPython/docs/default.css
@@ -0,0 +1,208 @@
+/*
+:Author: David Goodger
+:Contact: goodger@users.sourceforge.net
+:date: $Date$
+:version: $Revision$
+:copyright: This stylesheet has been placed in the public domain.
+
+Default cascading style sheet for the HTML output of Docutils.
+*/
+
+.first {
+ margin-top: 0 }
+
+.last {
+ margin-bottom: 0 }
+
+a.toc-backref {
+ text-decoration: none ;
+ color: black }
+
+dd {
+ margin-bottom: 0.5em }
+
+div.abstract {
+ margin: 2em 5em }
+
+div.abstract p.topic-title {
+ font-weight: bold ;
+ text-align: center }
+
+div.attention, div.caution, div.danger, div.error, div.hint,
+div.important, div.note, div.tip, div.warning {
+ margin: 2em ;
+ border: medium outset ;
+ padding: 1em }
+
+div.attention p.admonition-title, div.caution p.admonition-title,
+div.danger p.admonition-title, div.error p.admonition-title,
+div.warning p.admonition-title {
+ color: red ;
+ font-weight: bold ;
+ font-family: sans-serif }
+
+div.hint p.admonition-title, div.important p.admonition-title,
+div.note p.admonition-title, div.tip p.admonition-title {
+ font-weight: bold ;
+ font-family: sans-serif }
+
+div.dedication {
+ margin: 2em 5em ;
+ text-align: center ;
+ font-style: italic }
+
+div.dedication p.topic-title {
+ font-weight: bold ;
+ font-style: normal }
+
+div.figure {
+ margin-left: 2em }
+
+div.footer, div.header {
+ font-size: smaller }
+
+div.sidebar {
+ margin-left: 1em ;
+ border: medium outset ;
+ padding: 0em 1em ;
+ background-color: #ffffee ;
+ width: 40% ;
+ float: right }
+
+div.system-messages {
+ margin: 5em }
+
+div.system-messages h1 {
+ color: red }
+
+div.system-message {
+ border: medium outset ;
+ padding: 1em }
+
+div.system-message p.system-message-title {
+ color: red ;
+ font-weight: bold }
+
+div.topic {
+ margin: 2em }
+
+h1.title {
+ text-align: center }
+
+h2.subtitle {
+ text-align: center }
+
+hr {
+ width: 75% }
+
+ol.simple, ul.simple {
+ margin-bottom: 1em }
+
+ol.arabic {
+ list-style: decimal }
+
+ol.loweralpha {
+ list-style: lower-alpha }
+
+ol.upperalpha {
+ list-style: upper-alpha }
+
+ol.lowerroman {
+ list-style: lower-roman }
+
+ol.upperroman {
+ list-style: upper-roman }
+
+p.caption {
+ font-style: italic }
+
+p.credits {
+ font-style: italic ;
+ font-size: smaller }
+
+p.label {
+ white-space: nowrap }
+
+p.sidebar-title {
+ font-family: sans-serif ;
+ font-weight: bold ;
+ font-size: larger }
+
+p.sidebar-subtitle {
+ font-family: sans-serif ;
+ font-weight: bold }
+
+p.topic-title {
+ font-weight: bold }
+
+pre.address {
+ margin-bottom: 0 ;
+ margin-top: 0 ;
+ font-family: serif ;
+ font-size: 100% }
+
+pre.line-block {
+ font-family: serif ;
+ font-size: 100% }
+
+pre.literal-block, pre.doctest-block {
+ margin-left: 2em ;
+ margin-right: 2em ;
+ background-color: #eeeeee }
+
+span.classifier {
+ font-family: sans-serif ;
+ font-style: oblique }
+
+span.classifier-delimiter {
+ font-family: sans-serif ;
+ font-weight: bold }
+
+span.interpreted {
+ font-family: sans-serif }
+
+span.option {
+ white-space: nowrap }
+
+span.option-argument {
+ font-style: italic }
+
+span.pre {
+ white-space: pre }
+
+span.problematic {
+ color: red }
+
+table {
+ margin-top: 0.5em ;
+ margin-bottom: 0.5em }
+
+table.citation {
+ border-left: solid thin gray ;
+ padding-left: 0.5ex }
+
+table.docinfo {
+ margin: 2em 4em }
+
+table.footnote {
+ border-left: solid thin black ;
+ padding-left: 0.5ex }
+
+td, th {
+ padding-left: 0.5em ;
+ padding-right: 0.5em ;
+ vertical-align: top }
+
+th.docinfo-name, th.field-name {
+ font-weight: bold ;
+ text-align: left ;
+ white-space: nowrap }
+
+h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
+ font-size: 100% }
+
+tt {
+ background-color: #eeeeee }
+
+ul.auto-toc {
+ list-style-type: none }
diff --git a/wxPython/docs/docutils.conf b/wxPython/docs/docutils.conf
new file mode 100644
index 0000000000..f369f22820
--- /dev/null
+++ b/wxPython/docs/docutils.conf
@@ -0,0 +1,6 @@
+[options]
+
+output_encoding: iso-8859-1
+source-link: 1
+datestamp: %Y-%m-%d %H:%M UTC
+generator: 1
diff --git a/wxPython/docs/screenshots/hello-linux.png b/wxPython/docs/screenshots/hello-linux.png
new file mode 100644
index 0000000000..b67fc8d934
Binary files /dev/null and b/wxPython/docs/screenshots/hello-linux.png differ
diff --git a/wxPython/docs/screenshots/hello-mac.png b/wxPython/docs/screenshots/hello-mac.png
new file mode 100644
index 0000000000..6511d7612b
Binary files /dev/null and b/wxPython/docs/screenshots/hello-mac.png differ
diff --git a/wxPython/docs/screenshots/hello-win98.png b/wxPython/docs/screenshots/hello-win98.png
new file mode 100644
index 0000000000..ac88aed286
Binary files /dev/null and b/wxPython/docs/screenshots/hello-win98.png differ
diff --git a/wxPython/docs/wxPackage.txt b/wxPython/docs/wxPackage.txt
new file mode 100644
index 0000000000..6c68831424
--- /dev/null
+++ b/wxPython/docs/wxPackage.txt
@@ -0,0 +1,180 @@
+=========================
+ The wxPython wx Package
+=========================
+
+--------------------------------------------------
+ Or, how to survive the new wx namespace changes.
+--------------------------------------------------
+
+:Author: Patrick K. O'Brien
+:Contact: pobrien@orbtech.com
+:Organization: Orbtech_
+:Date: $Date$
+:Revision: $Revision$
+
+.. _Orbtech: http://www.orbtech.com/
+
+.. contents::
+
+
+Introduction
+============
+
+Big things sometimes come in small packages. This is certainly true
+of the new wx package, which is being introduced in wxPython 2.4.1 as
+a way to allow the "wx" prefix to be dropped from the names of all
+wxPython classes, functions, and constants. This document should
+answer all the questions you might have concerning the new wx package.
+If not, feel free to contact the author. I hope you like the new wx
+package as much as I do.
+
+
+Why change anything?
+====================
+
+This change is being made for a couple of reasons. The first reason
+is to discourage the use of ``import *``, which is a dangerous
+technique that can create name conflicts and bloated namespaces.
+
+The second reason is to remove what some perceive to be a "wart." For
+example, the following code is rather ugly in that the "wx" prefix on
+the wxFrame class name is no longer useful when you're using the wx
+module prefix::
+
+ from wxPython import wx
+
+ class Frame(wx.wxFrame)
+
+The new wx package allows you to write code like this, instead::
+
+ import wx
+
+ class Frame(wx.Frame)
+
+The third reason is that the wxWindows project intends to do the same
+thing (implement a new wx namespace and drop the "wx" prefix) and we
+want wxPython to lead the way.
+
+
+What does the new wx package do?
+================================
+
+As a way of getting to this new syntax as quickly as possible, the
+code in this new wx package was created. What it does is alter the
+existing wx namespace dynamically. By making the changes on-the-fly
+at runtime, we can try out the new syntax before any permanent changes
+are made to the underlying class library. The downside of making
+these changes at runtime is that there is a slight delay when you
+``import wx``; the upside is that you can start using the new syntax
+now.
+
+
+Will any of this effect my existing code?
+=========================================
+
+No. Your existing code will continue to work and be supported for
+some time. It will be up to you to decide when to switch to the new
+syntax. But all new documentation and code examples will use the new
+syntax. So don't wait too long. You wouldn't want anyone calling you
+old-fashioned, would you?
+
+
+How does the new wx package work?
+=================================
+
+It's pretty simple, and pretty clever. The wx directory contains an
+``__init__.py`` file, making it a Python package. (In contrast, the
+old wxPython.wx module is a module, not a package.) When you ``import
+wx`` the code in the ``__init__.py`` file is executed, and that's
+where all the magic takes place. Let's take a look at the code inside
+the ``__init__.py`` file:
+
+.. include:: ../wx/__init__.py
+ :literal:
+
+Namespaces in Python are implemented as dictionaries. The dictionary
+used to create the wx package's namespace is accessible using the
+``globals()`` function. The dictionary used to create the old
+wxPython.wx module's namespace is ``wx.__dict__``. Once we have these
+two dictionaries, it's a simple matter of iterating through one,
+changing the names, adding the renamed object to the other dictionary,
+and cleaning up a few local variables and imported modules. Voila!
+
+
+What about all the other modules, like grid, html, and stc?
+===========================================================
+
+There's more to wxPython than just the wx namespace. And we've got
+those extra modules covered as well. For each of those modules (as
+well as the lib package) we've got matching modules in the new wx
+package. Let's take a look at a few of them.
+
+Here is ``html.py``:
+
+.. include:: ../wx/html.py
+ :literal:
+
+And here is ``lib/dialogs.py``:
+
+.. include:: ../wx/lib/dialogs.py
+ :literal:
+
+As you can see, they both rely on the ``prefix.rename()`` function
+defined in ``prefix.py``:
+
+.. include:: ../wx/prefix.py
+ :literal:
+
+Again, the technique is very similar to the one used by the wx
+package.
+
+
+How do I use this new wx package?
+=================================
+
+The wx package is automatically created when you install wxPython
+version 2.4.1 or higher. So all you have to do is::
+
+ import wx
+
+
+What are the issues with converting old code to use the new wx package?
+=======================================================================
+
+Obviously, you need to change your import statements from::
+
+ from wxPython import wx
+
+or::
+
+ from wxPython.wx import *
+
+to::
+
+ import wx
+
+Then you need to refer to wx attributes without a "wx" prefix, such
+as::
+
+ class MyFrame(wx.Frame):
+
+In most cases, existing code can be modified with a simple search and
+replace.
+
+One extra issue you might run into when converting existing code is
+that the wx.__version__ attribute is no longer available, since the
+new wx namespace doesn't include any private attributes from the old
+wxPython.wx namespace. The solution is to use the wx.VERSION_STRING
+attribute, which was introduced in wxPython 2.4.1.
+
+
+Where can I find example programs using the new wx syntax?
+==========================================================
+
+Example programs are included in the wxPython/samples/wx_examples
+directory, and are documented in the wxPythonExamples_ documentation
+file. Also, all the code in the py package uses the new wx syntax.
+You can learn more about these in the PyManual_.
+
+.. _wxPythonExamples: wxPythonExamples.html
+.. _PyManual: PyManual.html
diff --git a/wxPython/docs/wxPythonDocs.txt b/wxPython/docs/wxPythonDocs.txt
new file mode 100644
index 0000000000..cbc378ecc4
--- /dev/null
+++ b/wxPython/docs/wxPythonDocs.txt
@@ -0,0 +1,77 @@
+========================
+ wxPython Documentation
+========================
+
+:Author: Patrick K. O'Brien
+:Contact: pobrien@orbtech.com
+:Organization: Orbtech_
+:Date: $Date$
+:Revision: $Revision$
+
+.. _Orbtech: http://www.orbtech.com/
+
+
+wxPython Manual
+===============
+
+`The wxPython Manual`_ is a reference to the wxPython toolkit.
+
+.. _The wxPython Manual: wxPythonManual.html
+
+
+wxPython Developer Reference
+============================
+
+`The wxPython source code documentation`_ is for developers, and was
+created using the Epydoc tool.
+
+.. _The wxPython source code documentation: http://www.orbtech.com/www/wx/epydoc/
+
+
+wxPython Tutorial
+=================
+
+`The wxPython Tutorial`_ will help get you started with wxPython.
+
+.. _The wxPython Tutorial: wxPythonTutorial.html
+
+
+wxPython Examples
+=================
+
+`The wxPython Examples`_ illustrates example programs using wxPython.
+
+.. _The wxPython Examples: wxPythonExamples.html
+
+
+wx Package
+==========
+
+`The wxPython wx Package`_ explains the new prefix-less wx package.
+
+.. _The wxPython wx Package: wxPackage.html
+
+
+Py Manual
+=========
+
+`The Py Manual`_ documents the Py collection of programs and source
+code modules, including:
+
+* PyAlaCarte
+* PyAlaMode
+* PyCrust
+* PyFilling
+* PyShell
+* PyWrap
+
+.. _The Py Manual: PyManual.html
+
+
+Py Developer Reference
+======================
+
+`The Py source code documentation`_ is for developers, and was created
+using the Epydoc tool.
+
+.. _The Py source code documentation: http://www.orbtech.com/www/wx/epydoc/public/wx.py-module.html
diff --git a/wxPython/docs/wxPythonExamples.txt b/wxPython/docs/wxPythonExamples.txt
new file mode 100644
index 0000000000..80c178a6ae
--- /dev/null
+++ b/wxPython/docs/wxPythonExamples.txt
@@ -0,0 +1,118 @@
+=================================
+ Example Programs Using wxPython
+=================================
+
+--------------------------------------------------
+ A survival guide for the post-wx-prefixed world.
+--------------------------------------------------
+
+:Author: Patrick K. O'Brien
+:Contact: pobrien@orbtech.com
+:Organization: Orbtech_
+:Date: $Date$
+:Revision: $Revision$
+
+.. _Orbtech: http://www.orbtech.com/
+
+.. contents::
+
+
+Introduction
+============
+
+This document illustrates example programs using wxPython. All the
+examples make use of the new wx package syntax introduced in wxPython
+2.4.1, which is a bit different than older examples you might come
+across.
+
+
+Background (with tongue firmly in cheek)
+========================================
+
+If something hits you on the head, don't run around screaming that the
+sky is falling. Instead, take a close look and see if it wasn't a
+"wx" prefix that hit you. Apparently, they're dropping off wxPython
+class names like flies dropping dead in the scorching heat of a
+summer's day.
+
+Yes, the world is changing, and even our little wxPython world must
+change with it. Then again, I'm not fond of pesky summertime flies,
+and I'm not too upset that the "wx" prefixes are going to bite the
+dust. I think it's for the best. But, being the kind, considerate
+person that I am, I decided to write this guide to make the wx
+namespace transition easier for everyone, even Chicken Little.
+
+.. note:: Say what?
+
+ If you have no idea what I mean by the "wx namespace transition,"
+ consider yourself lucky. You can simply use these examples to
+ learn wxPython in its current state (beginning with wxPython
+ version 2.4.1). All you need to know is that previous wxPython
+ code used a slightly different syntax that some folks (including
+ me) considered ugly. So we changed it. And that's when the sky
+ starting falling...
+
+ If you want more of the technical details, read the `wx package
+ documentation`_.
+
+ .. _wx package documentation: wxPackage.html
+
+
+Rather than simply **tell** you that everything will be okay, I
+decided to **show** you that everything will be okay. To do that,
+I've created a bunch of example programs using the new wx package. I
+hope you like them.
+
+
+Basic Program Example
+=====================
+
+It doesn't get much simpler than this. Every wxPython program needs
+an application and a frame. To encourage good coding habits, I've
+split them into separate modules. They don't do much, but they're a
+good starting point.
+
+I include a simple App class in the frame module because the PyWrap
+"wrapper" utility (``pywrap``) only works with modules that contain an
+application class. So including a simple one in each of your frame
+modules allows you to use the PyWrap runtime wrapper and debug your
+frames independent of your full application.
+
+Here is the module (``frame.py``) that defines the frame class:
+
+.. include:: ../samples/wx_examples/basic/frame.py
+ :literal:
+
+And here is the module (``app.py``) that defines the application class
+and imports the frame from ``frame.py``:
+
+.. include:: ../samples/wx_examples/basic/app.py
+ :literal:
+
+
+Hello wxPython Example
+======================
+
+This program displays an image file (``wxPython.jpg``) inside a frame
+sized to match the graphic.
+
+.. figure:: screenshots/hello-win98.png
+ :scale: 100
+
+ Running ``hello.py`` on Windows.
+
+.. figure:: screenshots/hello-linux.png
+ :scale: 100
+
+ Running ``hello.py`` on Linux.
+
+.. figure:: screenshots/hello-mac.png
+ :scale: 100
+
+ Running ``hello.py`` on Mac OS X.
+
+Here is the source code for ``hello.py``:
+
+.. include:: ../samples/wx_examples/hello/hello.py
+ :literal:
+
diff --git a/wxPython/docs/wxPythonManual.txt b/wxPython/docs/wxPythonManual.txt
new file mode 100644
index 0000000000..f01b493fc6
--- /dev/null
+++ b/wxPython/docs/wxPythonManual.txt
@@ -0,0 +1,1040 @@
+=====================
+ The wxPython Manual
+=====================
+
+--------------------------------------------
+ A guide to wxPython for Python programmers
+--------------------------------------------
+
+:Author: Patrick K. O'Brien
+:Contact: pobrien@orbtech.com
+:Organization: Orbtech_
+:Date: $Date$
+:Revision: $Revision$
+:License: wxWindows Free Documentation Licence, Version 3
+
+.. _Orbtech: http://www.orbtech.com/
+
+.. contents::
+
+
+Introduction
+============
+
+This is a guide to the wxPython GUI toolkit, written **by** a Python
+programmer **for** his fellow Python programmers. It began as a
+simple translation of the wxWindows documentation (which is written
+for C++ programmers), and evolved from there. And while there's
+nothing wrong with C++...
+
+Okay, you got me there. I hate C++. That's why I use Python. If you
+like C++, go read the wxWindows documentation. If you'd rather read a
+guide that's written with Python programmers in mind, keep reading
+this one. If you like it, feel free to send me freshly roasted coffee
+beans, dark chocolate, and large denomination currency. Better yet,
+buy huge quantities of my wxPython book (written with Robin Dunn) and
+send one to each of your friends, relatives, and coworkers.
+
+
+What is wxPython?
+=================
+
+wxPython is a GUI toolkit for the Python programming language. It
+allows Python programmers to create programs with a robust, highly
+functional graphical user interface, simply and easily. It is
+implemented as a Python extension module (native code) that wraps the
+popular wxWindows cross platform GUI library, which is written in C++.
+
+Like Python and wxWindows, wxPython is Open Source, which means that
+it is free for anyone to use and the source code is available for
+anyone to look at and modify. And anyone can contribute fixes or
+enhnacments to the project.
+
+wxPython is a cross-platform toolkit. This means that the same
+program will run on multiple platforms without modification.
+Currently supported platforms are 32-bit Microsoft Windows, most Unix
+or unix-like systems, and Macintosh OS X.
+
+Since the language is Python, wxPython programs are simple, easy to
+write and easy to understand.
+
+
+wxPython requirements
+=====================
+
+To make use of wxPython, you currently need one of the following
+setups.
+
+MS-Windows
+----------
+
+* A 486 or higher PC running MS Windows.
+* At least ?? MB of disk space.
+
+Linux or Unix
+-------------
+
+* Almost any C++ compiler, including GNU C++ (EGCS 1.1.1 or above).
+* Almost any Unix workstation, and one of: GTK+ 1.2, GTK+ 2.0, Motif
+ 1.2 or higher, Lesstif.
+* At least ?? MB of disk space.
+
+Mac OS X
+--------
+
+* A PowerPC Mac running Mac OS X 10.x.
+* At least ?? MB of disk space.
+
+
+What is wxWindows?
+==================
+
+wxWindows is a C++ framework providing GUI (Graphical User Interface)
+and other facilities on more than one platform. Version 2 currently
+supports all desktop versions of MS Windows, Unix with GTK+, Unix with
+Motif, and MacOS. An OS/2 port is in progress.
+
+wxWindows was originally developed at the Artificial Intelligence
+Applications Institute, University of Edinburgh, for internal use, and
+was first made publicly available in 1992. Version 2 is a vastly
+improved version written and maintained by Julian Smart, Robert
+Roebling, Vadim Zeitlin, Vaclav Slavik and many others.
+
+Please note that in the following, "MS Windows" often refers to all
+platforms related to Microsoft Windows, including 16-bit and 32-bit
+variants, unless otherwise stated. All trademarks are acknowledged.
+
+
+Why another cross-platform development tool?
+============================================
+
+wxWindows was developed to provide a cheap and flexible way to
+maximize investment in GUI application development. While a number of
+commercial class libraries already existed for cross-platform
+development, none met all of the following criteria:
+
+* low price
+* source availability
+* simplicity of programming
+* support for a wide range of compilers
+
+Since wxWindows was started, several other free or almost-free GUI
+frameworks have emerged. However, none has the range of features,
+flexibility, documentation and the well-established development team
+that wxWindows has.
+
+As open source software, wxWindows has benefited from comments, ideas,
+bug fixes, enhancements and the sheer enthusiasm of users. This gives
+wxWindows a certain advantage over its commercial competitors (and
+over free libraries without an independent development team), plus a
+robustness against the transience of one individual or company. This
+openness and availability of source code is especially important when
+the future of thousands of lines of application code may depend upon
+the longevity of the underlying class library.
+
+Version 2 goes much further than previous versions in terms of
+generality and features, allowing applications to be produced that are
+often indistinguishable from those produced using single-platform
+toolkits such as Motif, GTK+ and MFC.
+
+The importance of using a platform-independent class library cannot be
+overstated, since GUI application development is very time-consuming,
+and sustained popularity of particular GUIs cannot be guaranteed.
+Code can very quickly become obsolete if it addresses the wrong
+platform or audience. wxWindows helps to insulate the programmer from
+these winds of change. Although wxWindows may not be suitable for
+every application (such as an OLE-intensive program), it provides
+access to most of the functionality a GUI program normally requires,
+plus many extras such as network programming, PostScript output, and
+HTML rendering; and it can of course be extended as needs dictate. As
+a bonus, it provides a far cleaner and easier programming interface
+than the native APIs. Programmers may find it worthwhile to use
+wxWindows even if they are developing on only one platform.
+
+It is impossible to sum up the functionality of wxWindows in a few
+paragraphs, but here are some of the benefits:
+
+* Low cost (free, in fact!)
+* You get the source.
+* Available on a variety of popular platforms.
+* Works with almost all popular C++ compilers and Python.
+* Over 50 example programs.
+* Over 1000 pages of printable and on-line documentation.
+* Includes Tex2RTF, to allow you to produce your own documentation in
+ Windows Help, HTML and Word RTF formats.
+* Simple-to-use, object-oriented API.
+* Flexible event system.
+* Graphics calls include lines, rounded rectangles, splines,
+ polylines, etc.
+* Constraint-based and sizer-based layouts.
+* Print/preview and document/view architectures.
+* Toolbar, notebook, tree control, advanced list control classes.
+* PostScript generation under Unix, normal MS Windows printing on the
+ PC.
+* MDI (Multiple Document Interface) support.
+* Can be used to create DLLs under Windows, dynamic libraries on Unix.
+* Common dialogs for file browsing, printing, colour selection, etc.
+* Under MS Windows, support for creating metafiles and copying them to
+ the clipboard.
+* An API for invoking help from applications.
+* Ready-to-use HTML window (supporting a subset of HTML).
+* Dialog Editor for building dialogs.
+* Network support via a family of socket and protocol classes.
+* Support for platform independent image processing.
+* Built-in support for many file formats (BMP, PNG, JPEG, GIF, XPM,
+ PNM, PCX).
+
+
+wxPython Overview
+=================
+
+To set a wxPython application going, you will need to derive an App
+class and override App.OnInit.
+
+An application must have a top-level Frame or Dialog window. Each
+frame may contain one or more instances of classes such as Panel,
+SplitterWindow or other windows and controls.
+
+A frame can have a MenuBar, a ToolBar, a status line, and an Icon for
+when the frame is iconized.
+
+A Panel is used to place controls (classes derived from Control) which
+are used for user interaction. Examples of controls are Button,
+CheckBox, Choice, ListBox, RadioBox, Slider.
+
+Instances of Dialog can also be used for controls, and they have the
+advantage of not requiring a separate frame.
+
+Instead of creating a dialog box and populating it with items, it is
+possible to choose one of the convenient common dialog classes, such
+as MessageDialog and FileDialog.
+
+You never draw directly onto a window. Instead, you use a device
+context (DC). DC is the base for ClientDC, PaintDC, MemoryDC,
+PostScriptDC, MemoryDC, MetafileDC and PrinterDC. If your drawing
+functions have DC as a parameter, you can pass any of these DCs to the
+function, and thus use the same code to draw to several different
+devices. You can draw using the member functions of DC, such as
+DC.DrawLine and DC.DrawText. Control colour on a window (Colour) with
+brushes (Brush) and pens (Pen).
+
+.. To intercept events, you add a DECLARE_EVENT_TABLE macro to the
+ window class declaration, and put a BEGIN_EVENT_TABLE
+ ... END_EVENT_TABLE block in the implementation file. Between these
+ macros, you add event macros which map the event (such as a mouse
+ click) to a member function. These might override predefined event
+ handlers such as for KeyEvent and MouseEvent.
+
+Most modern applications will have an on-line, hypertext help system;
+for this, you need Help and the HelpController class to control
+Help.
+
+GUI applications aren't all graphical wizardry. You'll also need
+lists and hash tables. But since you're working with Python, you
+should use the ones Python provides (list, tuple, dict), rather than
+the wxWindows versions. Same goes for the database related classes.
+The basic rule of thumb is this: If you can do it directly in Python,
+you probably should. If there is a reason not to use a Python data
+type, wxPython will provide a wrapper for the wxWindows class.
+
+You will undoubtedly need some platform-independent file functions,
+and you may find it handy to maintain and search a list of paths using
+PathList. There's a miscellany of operating system and other
+functions.
+
+See also Classes by Category for a list of classes.
+
+
+Utilities and libraries supplied with wxPython
+==============================================
+
+In addition to the core wxWindows library, a number of further
+libraries and utilities are supplied with each distribution.
+
+[Need to list these.]
+
+
+Creating and deleting wxPython objects
+======================================
+
+[This section needs to be reviewed.]
+
+.. In general, classes derived from wxWindow must dynamically
+ allocated with new and deleted with delete. If you delete a window,
+ all of its children and descendants will be automatically deleted,
+ so you don't need to delete these descendants explicitly.
+
+.. When deleting a frame or dialog, use Destroy rather than delete so
+ that the wxWindows delayed deletion can take effect. This waits
+ until idle time (when all messages have been processed) to actually
+ delete the window, to avoid problems associated with the GUI
+ sending events to deleted windows.
+
+.. If you decide to allocate a C++ array of objects (such as wxBitmap)
+ that may be cleaned up by wxWindows, make sure you delete the array
+ explicitly before wxWindows has a chance to do so on exit, since
+ calling delete on array members will cause memory problems.
+
+.. wxColour can be created statically: it is not automatically cleaned
+ up and is unlikely to be shared between other objects; it is
+ lightweight enough for copies to be made.
+
+.. Beware of deleting objects such as a wxPen or wxBitmap if they are
+ still in use. Windows is particularly sensitive to this: so make
+ sure you make calls like wxDC::SetPen(wxNullPen) or
+ wxDC::SelectObject(wxNullBitmap) before deleting a drawing object
+ that may be in use. Code that doesn't do this will probably work
+ fine on some platforms, and then fail under Windows.
+
+
+App overview
+============
+
+Classes: wx.App
+
+Application initialization
+--------------------------
+
+The OnInit method defined for a class derived from wx.App will usually
+create a top window as a bare minimum.
+
+OnInit must return a boolean value to indicate whether processing
+should continue (True) or not (False). You call App.SetTopWindow to
+let wxPython know about the top window.
+
+An application closes by destroying all windows. Because all frames
+must be destroyed for the application to exit, it is advisable to use
+parent frames wherever possible when creating new frames, so that
+deleting the top level frame will automatically delete child frames.
+The alternative is to explicitly delete child frames in the top-level
+frame's CloseEvent handler.
+
+In emergencies the wx.Exit() function can be called to kill the
+application, however, normally the application shuts down
+automatically, see below.
+
+An example of defining an application follows::
+
+ import wx
+
+ from frame import Frame
+
+ class App(wx.App):
+ """Application class."""
+
+ def OnInit(self):
+ self.frame = Frame()
+ self.frame.Show()
+ self.SetTopWindow(self.frame)
+ return True
+
+ def main():
+ app = App()
+ app.MainLoop()
+
+ if __name__ == '__main__':
+ main()
+
+
+Application shutdown
+--------------------
+
+The application normally shuts down when the last of its top level
+windows is closed. This is normally the expected behaviour and means
+that it is enough to call Close() in response to the "Exit" menu
+command if your program has a single top level window. If this
+behaviour is not desirable, App.SetExitOnFrameDelete can be called to
+change it. Note that such logic doesn't apply for the windows shown
+before the program enters the main loop: in other words, you can
+safely show a dialog from App.OnInit and not be afraid that your
+application terminates when this dialog -- which is the last top level
+window for the moment -- is closed.
+
+Another aspect of the application shutdown is the OnExit which is
+called when the application exits but before wxPython cleans up its
+internal structures. You should delete all wxPython objects that you
+created by the time OnExit finishes.
+
+For example, this code may crash:
+
+[Need examples of objects needing cleanup to keep app from crashing.]
+
+
+Sizer overview
+==============
+
+Classes: wx.Sizer, wx.GridSizer, wx.FlexGridSizer, wx.BoxSizer,
+wx.StaticBoxSizer, wx.NotebookSizer, wx.CreateButtonSizer
+
+============== ======================================================
+
+Sizer Abstract base class.
+
+GridSizer A sizer for laying out windows in a grid with all
+ fields having the same size.
+
+FlexGridSizer A sizer for laying out windows in a flexible grid.
+
+BoxSizer A sizer for laying out windows in a row or column.
+
+StaticBoxSizer Same as BoxSizer, but with a surrounding static box.
+
+NotebookSizer Sizer to use with the Notebook control.
+
+============== ======================================================
+
+Sizers, as represented by the wx.Sizer class and its descendants in
+the wxPython class hierarchy, have become the method of choice to
+define the layout of controls in dialogs in wxPython because of their
+ability to create visually appealing dialogs independent of the
+platform, taking into account the differences in size and style of the
+individual controls. Editors such as wxDesigner, wxrcedit, XRCed and
+wxWorkshop create dialogs based exclusively on sizers, practically
+forcing the user to create platform independent layouts without
+compromises.
+
+
+The idea behind sizers
+----------------------
+
+The layout algorithm used by sizers in wxPython is closely related to
+layout systems in other GUI toolkits, such as Java's AWT, the GTK
+toolkit or the Qt toolkit. It is based upon the idea of individual
+subwindows reporting their minimal required size and their ability to
+get stretched if the size of the parent window has changed. This will
+most often mean that the programmer does not set the start-up size of
+a dialog, the dialog will rather be assigned a sizer and this sizer
+will be queried about the recommended size. This sizer in turn will
+query its children (which can be normal windows, empty space or other
+sizers) so that a hierarchy of sizers can be constructed. Note that
+wx.Sizer does not derive from wx.Window and thus does not interfere
+with tab ordering and requires very few resources compared to a real
+window on screen.
+
+What makes sizers so well fitted for use in wxPython is the fact that
+every control reports its own minimal size and the algorithm can
+handle differences in font sizes or different window (dialog item)
+sizes on different platforms without problems. For example, if the
+standard font as well as the overall design of Linux/GTK widgets
+requires more space than on Windows, the initial dialog size will
+automatically be bigger on Linux/GTK than on Windows.
+
+There are currently five different kinds of sizers available in
+wxPython. Each represents either a certain way to lay out dialog items
+in a dialog or it fulfils a special task such as wrapping a static box
+around a dialog item (or another sizer). These sizers will be
+discussed one by one in the text below.
+
+
+Common features
+---------------
+
+All sizers are containers, that is, they are used to lay out one
+dialog item (or several dialog items), which they contain. Such items
+are sometimes referred to as the children of the sizer. Independent
+of how the individual sizers lay out their children, all children have
+certain features in common:
+
+
+A minimal size
+~~~~~~~~~~~~~~
+
+This minimal size is usually identical to the initial size of the
+controls and may either be set explicitly in the size field of the
+control constructor or may be calculated by wxPython, typically by
+setting the height and/or the width of the item to -1. Note that only
+some controls can calculate their size (such as a checkbox) whereas
+others (such as a listbox) don't have any natural width or height and
+thus require an explicit size. Some controls can calculate their
+height, but not their width (e.g. a single line text control):
+
+[Need graphics]
+
+
+A border
+~~~~~~~~
+
+The border is just empty space and is used to separate dialog items in
+a dialog. This border can either be all around, or at any combination
+of sides such as only above and below the control. The thickness of
+this border must be set explicitly, typically 5 points. The following
+samples show dialogs with only one dialog item (a button) and a border
+of 0, 5, and 10 pixels around the button:
+
+[Need graphics]
+
+
+An alignment
+~~~~~~~~~~~~
+
+Often, a dialog item is given more space than its minimal size plus
+its border. Depending on what flags are used for the respective dialog
+item, the dialog item can be made to fill out the available space
+entirely, i.e. it will grow to a size larger than the minimal size, or
+it will be moved to either the centre of the available space or to
+either side of the space. The following sample shows a listbox and
+three buttons in a horizontal box sizer; one button is centred, one is
+aligned at the top, one is aligned at the bottom:
+
+[Need graphics]
+
+
+A stretch factor
+~~~~~~~~~~~~~~~~
+
+If a sizer contains more than one child and it is offered more space
+than its children and their borders need, the question arises how to
+distribute the surplus space among the children. For this purpose, a
+stretch factor may be assigned to each child, where the default value
+of 0 indicates that the child will not get more space than its
+requested minimum size. A value of more than zero is interpreted in
+relation to the sum of all stretch factors in the children of the
+respective sizer, i.e. if two children get a stretch factor of 1, they
+will get half the extra space each independent of whether one control
+has a minimal sizer inferior to the other or not. The following
+sample shows a dialog with three buttons, the first one has a stretch
+factor of 1 and thus gets stretched, whereas the other two buttons
+have a stretch factor of zero and keep their initial width:
+
+[Need graphics]
+
+Within wxDesigner, this stretch factor gets set from the Option menu.
+
+
+BoxSizer
+--------
+
+BoxSizer can lay out its children either vertically or horizontally,
+depending on what flag is being used in its constructor. When using a
+vertical sizer, each child can be centered, aligned to the right or
+aligned to the left. Correspondingly, when using a horizontal sizer,
+each child can be centered, aligned at the bottom or aligned at the
+top. The stretch factor described in the last paragraph is used for
+the main orientation, i.e. when using a horizontal box sizer, the
+stretch factor determines how much the child can be stretched
+horizontally. The following sample shows the same dialog as in the
+last sample, only the box sizer is a vertical box sizer now:
+
+[Need graphics]
+
+
+StaticBoxSizer
+--------------
+
+StaticBoxSixer is the same as a BoxSizer, but surrounded by a static
+box. Here is a sample:
+
+[Need graphics]
+
+
+GridSizer
+---------
+
+GridSizer is a two-dimensional sizer. All children are given the same
+size, which is the minimal size required by the biggest child, in this
+case the text control in the left bottom border. Either the number of
+columns or the number or rows is fixed and the grid sizer will grow in
+the respectively other orientation if new children are added:
+
+[Need graphics]
+
+
+FlexGridSizer
+-------------
+
+Another two-dimensional sizer derived from GridSizer. The width of
+each column and the height of each row are calculated individually
+according the minimal requirements from the respectively biggest
+child. Additionally, columns and rows can be declared to be
+stretchable if the sizer is assigned a size different from that which
+it requested. The following sample shows the same dialog as the one
+above, but using a flex grid sizer:
+
+[Need graphics]
+
+
+NotebookSizer
+-------------
+
+NotebookSizer can be used with notebooks. It calculates the size of
+each notebook page and sets the size of the notebook to the size of
+the biggest page plus some extra space required for the notebook tabs
+and decorations.
+
+[Need graphics]
+
+
+Programming with BoxSizer
+-------------------------
+
+The basic idea behind a BoxSizer is that windows will most often be
+laid out in rather simple basic geometry, typically in a row or a
+column or several hierarchies of either.
+
+As an example, we will construct a dialog that will contain a text
+field at the top and two buttons at the bottom. This can be seen as a
+top-hierarchy column with the text at the top and buttons at the
+bottom and a low-hierarchy row with an OK button to the left and a
+Cancel button to the right. In many cases (particularly dialogs under
+Unix and normal frames) the main window will be resizable by the user
+and this change of size will have to get propagated to its children.
+In our case, we want the text area to grow with the dialog, whereas
+the button shall have a fixed size. In addition, there will be a thin
+border around all controls to make the dialog look nice and - to make
+matter worse - the buttons shall be centred as the width of the dialog
+changes.
+
+It is the unique feature of a box sizer, that it can grow in both
+directions (height and width) but can distribute its growth in the
+main direction (horizontal for a row) unevenly among its children. In
+our example case, the vertical sizer is supposed to propagate all its
+height changes to only the text area, not to the button area. This is
+determined by the proportion parameter when adding a window (or
+another sizer) to a sizer. It is interpreted as a weight factor,
+i.e. it can be zero, indicating that the window may not be resized at
+all, or above zero. If several windows have a value above zero, the
+value is interpreted relative to the sum of all weight factors of the
+sizer, so when adding two windows with a value of 1, they will both
+get resized equally much and each half as much as the sizer owning
+them.
+
+Then what do we do when a column sizer changes its width? This
+behaviour is controlled by flags (the second parameter of the Add()
+function): zero or no flag indicates that the window will preserve it
+is original size, wx.GROW flag (same as wx.EXPAND) forces the window
+to grow with the sizer, and wx.SHAPED flag tells the window to change
+it is size proportionally, preserving original aspect ratio. When
+wx.GROW flag is not used, the item can be aligned within available
+space. wx.ALIGN_LEFT, wx.ALIGN_TOP, wx.ALIGN_RIGHT, wx.ALIGN_BOTTOM,
+wx.ALIGN_CENTER_HORIZONTAL and wx.ALIGN_CENTER_VERTICAL do what they
+say. wx.ALIGN_CENTRE (same as wx.ALIGN_CENTER) is defined as
+(``wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_CENTER_VERTICAL``). Default
+alignment is ``wx.ALIGN_LEFT | wx.ALIGN_TOP``.
+
+As mentioned above, any window belonging to a sizer may have border,
+and it can be specified which of the four sides may have this border,
+using the wx.TOP, wx.LEFT, wx.RIGHT and wx.BOTTOM constants or wx.ALL
+for all directions (and you may also use wx.NORTH, wx.WEST etc
+instead). These flags can be used in combination with the alignment
+flags above as the second parameter of the Add() method using the
+binary or operator (``|``). The sizer of the border also must be made
+known, and it is the third parameter in the Add() method. This means,
+that the entire behaviour of a sizer and its children can be
+controlled by the three parameters of the Add() method.
+
+[Show code and graphic here.]
+
+
+Programming with GridSizer
+--------------------------
+
+GridSizer is a sizer which lays out its children in a two-dimensional
+table with all table fields having the same size, i.e. the width of
+each field is the width of the widest child, the height of each field
+is the height of the tallest child.
+
+[Show code and graphic here.]
+
+
+Programming with FlexGridSizer
+------------------------------
+
+FlexGridSizer is a sizer which lays out its children in a
+two-dimensional table with all table fields in one row having the same
+height and all fields in one column having the same width, but all
+rows or all columns are not necessarily the same height or width as in
+the GridSizer.
+
+[Show code and graphic here.]
+
+
+Programming with NotebookSizer
+------------------------------
+
+NotebookSizer is a specialized sizer to make sizers work in connection
+with using notebooks. This sizer is different from any other sizer as
+you must not add any children to it - instead, it queries the notebook
+class itself. The only thing this sizer does is to determine the size
+of the biggest page of the notebook and report an adjusted minimal
+size to a more toplevel sizer.
+
+In order to query the size of notebook page, this page needs to have
+its own sizer, otherwise the NotebookSizer will ignore it. Notebook
+pages get their sizer by assigning one to them using SetSizer() and
+setting the auto-layout option to True using SetAutoLayout(). Here is
+one example showing how to add a notebook page that the notebook sizer
+is aware of:
+
+[Show code and graphic here.]
+
+
+Programming with StaticBoxSizer
+-------------------------------
+
+StaticBoxSizer is a sizer derived from BoxSizer but adds a static box
+around the sizer. Note that this static box has to be created
+separately.
+
+[Show code and graphic here.]
+
+
+Dialog.CreateButtonSizer
+------------------------
+
+As a convenience, the Dialog class has a CreateButtonSizer(flags)
+method that can be used to create a standard button sizer in which
+standard buttons are displayed. The following flags can be passed to
+this method:
+
+============= =======================================================
+wx.YES_NO add Yes/No subpanel
+wx.YES return wx.ID_YES
+wx.NO return wx.ID_NO
+wx.NO_DEFAULT make the wx.NO button the default, otherwise wx.YES or
+ wx.OK button will be default
+wx.OK return wx.ID_OK
+wx.CANCEL return wx.ID_CANCEL
+wx.HELP return wx.ID_HELP
+wx.FORWARD return wx.ID_FORWARD
+wx.BACKWARD return wx.ID_BACKWARD
+wx.SETUP return wx.ID_SETUP
+wx.MORE return wx.ID_MORE
+============= =======================================================
+
+
+Date and time classes overview
+==============================
+
+wxPython provides a set of powerful classes to work with dates and
+times. Some of the supported features of the DateTime class are:
+
+============= =======================================================
+
+Wide range The range of supported dates goes from about 4714 B.C. to
+ some 480 million years in the future.
+
+Precision Not using floating point calculations anywhere ensures that
+ the date calculations don't suffer from rounding
+ errors.
+
+Many features Not only all usual calculations with dates are
+ supported, but also more exotic week and year day
+ calculations, work day testing, standard astronomical
+ functions, conversion to and from strings in either
+ strict or free format.
+
+
+Efficiency Objects of DateTime are small (8 bytes) and working
+ with them is fast
+
+============= =======================================================
+
+
+All date/time classes at a glance
+---------------------------------
+
+There are 3 main classes: except DateTime itself which represents an
+absolute moment in time, there are also two classes - TimeSpan and
+DateSpan which represent the intervals of time.
+
+There are also helper classes which are used together with DateTime:
+DateTimeHolidayAuthority which is used to determine whether a given
+date is a holiday or not and DateTimeWorkDays which is a derivation of
+this class for which (only) Saturdays and Sundays are the holidays.
+See more about these classes in the discussion of the holidays.
+
+
+DateTime characteristics
+------------------------
+
+DateTime stores the time as a signed number of milliseconds since the
+Epoch which is fixed, by convention, to Jan 1, 1970 - however this is
+not visible to the class users (in particular, dates prior to the
+Epoch are handled just as well (or as bad) as the dates after it).
+But it does mean that the best resolution which can be achieved with
+this class is 1 millisecond.
+
+The size of DateTime object is 8 bytes because it is represented as a
+64 bit integer. The resulting range of supported dates is thus
+approximatively 580 million years, but due to the current limitations
+in the Gregorian calendar support, only dates from Nov 24, 4714BC are
+supported (this is subject to change if there is sufficient interest
+in doing it).
+
+Finally, the internal representation is time zone independent (always
+in GMT) and the time zones only come into play when a date is broken
+into year/month/day components. See more about timezones below.
+
+Currently, the only supported calendar is Gregorian one (which is used
+even for the dates prior to the historic introduction of this calendar
+which was first done on Oct 15, 1582 but is, generally speaking,
+country, and even region, dependent). Future versions will probably
+have Julian calendar support as well and support for other calendars
+(Maya, Hebrew, Chinese...) is not ruled out.
+
+
+Difference between DateSpan and TimeSpan
+----------------------------------------
+
+While there is only one logical way to represent an absolute moment in
+the time (and hence only one DateTime class), there are at least two
+methods to describe a time interval.
+
+First, there is the direct and self-explaining way implemented by
+TimeSpan: it is just a difference in milliseconds between two moments
+in time. Adding or subtracting such an interval to DateTime is always
+well-defined and is a fast operation.
+
+But in daily life other, calendar-dependent time interval
+specifications are used. For example, 'one month later' is commonly
+used. However, it is clear that this is not the same as TimeSpan of
+60*60*24*31 seconds because 'one month later' Feb 15 is Mar 15 and not
+Mar 17 or Mar 16 (depending on whether the year is leap or not).
+
+This is why there is another class for representing such intervals
+called DateSpan. It handles these sort of operations in the most
+natural way possible, but note that manipulating with intervals of
+this kind is not always well-defined. Consider, for example, Jan 31 +
+'1 month': this will give Feb 28 (or 29), i.e. the last day of
+February and not the non-existent Feb 31. Of course, this is what is
+usually wanted, but you still might be surprised to notice that now
+subtracting back the same interval from Feb 28 will result in Jan 28
+and not Jan 31 we started with!
+
+So, unless you plan to implement some kind of natural language parsing
+in the program, you should probably use TimeSpan instead of DateSpan
+(which is also more efficient). However, DateSpan may be very useful
+in situations when you do need to understand what 'in a month' means
+(of course, it is just DateTime.Now() + DateSpan.Month()).
+
+
+Date arithmetics
+----------------
+
+Many different operations may be performed with the dates, however not
+all of them make sense. For example, multiplying a date by a number
+is an invalid operation, even though multiplying either of the time
+span classes by a number is perfectly valid.
+
+Here is what can be done:
+
+============== ======================================================
+
+Addition a TimeSpan or DateSpan can be added to DateTime resulting in
+ a new DateTime object and also 2 objects of the same
+ span class can be added together giving another object
+ of the same class.
+
+
+Subtraction the same types of operations as above are allowed and,
+ additionally, a difference between two DateTime
+ objects can be taken and this will yield TimeSpan.
+
+Multiplication a TimeSpan or DateSpan object can be multiplied by an
+ integer number resulting in an object of the same
+ type.
+
+
+Unary minus a TimeSpan or DateSpan object may finally be negated
+ giving an interval of the same magnitude but of
+ opposite time direction.
+
+============== ======================================================
+
+
+Time zone considerations
+------------------------
+
+Although the time is always stored internally in GMT, you will usually
+work in the local time zone. Because of this, all DateTime
+constructors and setters which take the broken down date assume that
+these values are for the local time zone. Thus, DateTime(1,
+DateTime.Jan, 1970) will not correspond to the DateTime Epoch unless
+you happen to live in the UK.
+
+All methods returning the date components (year, month, day, hour,
+minute, second...) will also return the correct values for the local
+time zone by default. So, generally, doing the natural things will
+lead to natural and correct results.
+
+If you only want to do this, you may safely skip the rest of this
+section. However, if you want to work with different time zones, you
+should read it to the end.
+
+In this (rare) case, you are still limited to the local time zone when
+constructing DateTime objects, i.e. there is no way to construct a
+DateTime corresponding to the given date in, say, Pacific Standard
+Time. To do it, you will need to call ToTimezone or MakeTimezone
+methods to adjust the date for the target time zone. There are also
+special versions of these functions ToGMT and MakeGMT for the most
+common case - when the date should be constructed in GMT.
+
+You also can just retrieve the value for some time zone without
+converting the object to it first. For this you may pass TimeZone
+argument to any of the methods which are affected by the time zone
+(all methods getting date components and the date formatting ones, for
+example). In particular, the Format() family of methods accepts a
+TimeZone parameter and this allows to simply print time in any time
+zone.
+
+To see how to do it, the last issue to address is how to construct a
+TimeZone object which must be passed to all these methods. First of
+all, you may construct it manually by specifying the time zone offset
+in seconds from GMT, but usually you will just use one of the symbolic
+time zone names and let the conversion constructor do the
+job. I.e. you would just write
+
+wxDateTime dt(...whatever...);
+printf("The time is %s in local time zone", dt.FormatTime().c_str());
+printf("The time is %s in GMT", dt.FormatTime(wxDateTime::GMT).c_str());
+
+
+Daylight saving time (DST)
+--------------------------
+
+DST (a.k.a. 'summer time') handling is always a delicate task which is
+better left to the operating system which is supposed to be configured
+by the administrator to behave correctly. Unfortunately, when doing
+calculations with date outside of the range supported by the standard
+library, we are forced to deal with these issues ourselves.
+
+Several functions are provided to calculate the beginning and end of
+DST in the given year and to determine whether it is in effect at the
+given moment or not, but they should not be considered as absolutely
+correct because, first of all, they only work more or less correctly
+for only a handful of countries (any information about other ones
+appreciated!) and even for them the rules may perfectly well change in
+the future.
+
+The time zone handling methods use these functions too, so they are
+subject to the same limitations.
+
+
+DateTime and Holidays
+---------------------
+
+[TODO]
+
+
+Classes by category
+===================
+
+Not done yet.
+
+
+ID constants
+============
+
+wxPython provides the following predefined ID constants:
+
+ID_ABORT
+ID_ABOUT
+ID_ANY
+ID_APPLY
+ID_BACKWARD
+ID_CANCEL
+ID_CLEAR
+ID_CLOSE
+ID_CLOSE_ALL
+ID_CONTEXT_HELP
+ID_COPY
+ID_CUT
+ID_DEFAULT
+ID_DUPLICATE
+ID_EXIT
+ID_FILE1
+ID_FILE2
+ID_FILE3
+ID_FILE4
+ID_FILE5
+ID_FILE6
+ID_FILE7
+ID_FILE8
+ID_FILE9
+ID_FILTERLISTCTRL
+ID_FIND
+ID_FORWARD
+ID_HELP
+ID_HELP_COMMANDS
+ID_HELP_CONTENTS
+ID_HELP_CONTEXT
+ID_HELP_PROCEDURES
+ID_IGNORE
+ID_MORE
+ID_NEW
+ID_NO
+ID_NOTOALL
+ID_OK
+ID_OPEN
+ID_PASTE
+ID_PREVIEW
+ID_PRINT
+ID_PRINT_SETUP
+ID_REDO
+ID_RESET
+ID_RETRY
+ID_REVERT
+ID_SAVE
+ID_SAVEAS
+ID_SELECTALL
+ID_SEPARATOR
+ID_SETUP
+ID_STATIC
+ID_TREECTRL
+ID_UNDO
+ID_YES
+ID_YESTOALL
+
+
+Source document
+===============
+
+The source document is named wxPythonManual.txt and can be found by
+clicking the link at the bottom of this page (assuming you are viewing
+the html file). It is written using a fantastic formatting convention
+called reStructuredText. The wxPythonManual.html file is created
+using the Docutils utilities, which can turn reStructuredText
+documents into html, xml, pdf, and even OpenOffice files.
+
+
+Submitting changes to the source document
+=========================================
+
+Some items in the source text file look like this::
+
+ .. This is text from the wxWindows documentation that needs to be
+ translated into something appropriate for the wxPython version.
+ The two dots followed by uniformly indented text turns this
+ paragraph into a reStructuredText comment, so it doesn't appear
+ in any output file, such as the html file.
+
+They have been commented out and are awaiting editorial review and a
+rewrite so that they make sense in the context of wxPython. Feel free
+to send me suggestions for rewording these, or any other parts of this
+document that you think need improving. I will be eternally grateful
+to you and will show my gratitude by adding your name to the list of
+contributors. (Contributors who also send me gifts of coffee,
+chocolate, or currency will have their names listed in bold.)
+
+
+Contributors
+============
+
+Individuals who contributed to this documentation (in order by last
+name):
+
+* Robin Dunn
+* Patrick K. O'Brien
+* Robert Roebling
+* Julian Smart
+* Vadim Zeitlin
+
+
+License
+=======
+
+This document began as a translation of the wxWindows documentation.
+As such, it adheres to the same license, which is provided here:
+
+.. include:: ../licence/licendoc.txt
+ :literal:
diff --git a/wxPython/docs/wxPythonTutorial.txt b/wxPython/docs/wxPythonTutorial.txt
new file mode 100644
index 0000000000..683aa18790
--- /dev/null
+++ b/wxPython/docs/wxPythonTutorial.txt
@@ -0,0 +1,43 @@
+=======================
+ The wxPython Tutorial
+=======================
+
+-----------------------------------------
+ How to get up and running with wxPython
+-----------------------------------------
+
+:Author: Patrick K. O'Brien
+:Contact: pobrien@orbtech.com
+:Organization: Orbtech_
+:Date: $Date$
+:Revision: $Revision$
+:License: wxWindows Free Documentation Licence, Version 3
+
+.. _Orbtech: http://www.orbtech.com/
+
+.. contents::
+
+
+Introduction
+============
+
+This is a tutorial for the wxPython GUI toolkit. It uses the new wx
+package syntax that was introduced in wxPython 2.4.1.
+
+
+What is wxPython?
+=================
+
+wxPython is a GUI toolkit for the Python programming language. It
+allows Python programmers to create programs with a graphical user
+interface for Windows, Linux, and Mac OS X.
+
+
+License
+=======
+
+This document adheres to the same license as the other documentation
+that comes with wxWindows:
+
+.. include:: ../licence/licendoc.txt
+ :literal:
diff --git a/wxPython/samples/doodle/doodle.py b/wxPython/samples/doodle/doodle.py
index 4895026e74..15e4de19a6 100644
--- a/wxPython/samples/doodle/doodle.py
+++ b/wxPython/samples/doodle/doodle.py
@@ -6,11 +6,11 @@ can do simple drawings upon.
"""
-from wxPython.wx import *
+import wx # This module uses the new wx namespace
#----------------------------------------------------------------------
-class DoodleWindow(wxWindow):
+class DoodleWindow(wx.Window):
menuColours = { 100 : 'Black',
101 : 'Yellow',
102 : 'Red',
@@ -32,7 +32,7 @@ class DoodleWindow(wxWindow):
def __init__(self, parent, ID):
- wxWindow.__init__(self, parent, ID, style=wxNO_FULL_REPAINT_ON_RESIZE)
+ wx.Window.__init__(self, parent, ID, style=wx.NO_FULL_REPAINT_ON_RESIZE)
self.SetBackgroundColour("WHITE")
self.listeners = []
self.thickness = 1
@@ -44,20 +44,20 @@ class DoodleWindow(wxWindow):
self.InitBuffer()
# hook some mouse events
- EVT_LEFT_DOWN(self, self.OnLeftDown)
- EVT_LEFT_UP(self, self.OnLeftUp)
- EVT_RIGHT_UP(self, self.OnRightUp)
- EVT_MOTION(self, self.OnMotion)
+ wx.EVT_LEFT_DOWN(self, self.OnLeftDown)
+ wx.EVT_LEFT_UP(self, self.OnLeftUp)
+ wx.EVT_RIGHT_UP(self, self.OnRightUp)
+ wx.EVT_MOTION(self, self.OnMotion)
# the window resize event and idle events for managing the buffer
- EVT_SIZE(self, self.OnSize)
- EVT_IDLE(self, self.OnIdle)
+ wx.EVT_SIZE(self, self.OnSize)
+ wx.EVT_IDLE(self, self.OnIdle)
# and the refresh event
- EVT_PAINT(self, self.OnPaint)
+ wx.EVT_PAINT(self, self.OnPaint)
# When the window is destroyed, clean up resources.
- EVT_WINDOW_DESTROY(self, self.Cleanup)
+ wx.EVT_WINDOW_DESTROY(self, self.Cleanup)
def Cleanup(self, evt):
@@ -69,9 +69,9 @@ class DoodleWindow(wxWindow):
def InitBuffer(self):
"""Initialize the bitmap used for buffering the display."""
size = self.GetClientSize()
- self.buffer = wxEmptyBitmap(size.width, size.height)
- dc = wxBufferedDC(None, self.buffer)
- dc.SetBackground(wxBrush(self.GetBackgroundColour()))
+ self.buffer = wx.EmptyBitmap(size.width, size.height)
+ dc = wx.BufferedDC(None, self.buffer)
+ dc.SetBackground(wx.Brush(self.GetBackgroundColour()))
dc.Clear()
self.DrawLines(dc)
self.reInitBuffer = False
@@ -80,14 +80,14 @@ class DoodleWindow(wxWindow):
def SetColour(self, colour):
"""Set a new colour and make a matching pen"""
self.colour = colour
- self.pen = wxPen(wxNamedColour(self.colour), self.thickness, wxSOLID)
+ self.pen = wx.Pen(self.colour, self.thickness, wx.SOLID)
self.Notify()
def SetThickness(self, num):
"""Set a new line thickness and make a matching pen"""
self.thickness = num
- self.pen = wxPen(wxNamedColour(self.colour), self.thickness, wxSOLID)
+ self.pen = wx.Pen(self.colour, self.thickness, wx.SOLID)
self.Notify()
@@ -103,20 +103,20 @@ class DoodleWindow(wxWindow):
def MakeMenu(self):
"""Make a menu that can be popped up later"""
- menu = wxMenu()
+ menu = wx.Menu()
keys = self.menuColours.keys()
keys.sort()
for k in keys:
text = self.menuColours[k]
- menu.Append(k, text, kind=wxITEM_CHECK)
- EVT_MENU_RANGE(self, 100, 200, self.OnMenuSetColour)
- EVT_UPDATE_UI_RANGE(self, 100, 200, self.OnCheckMenuColours)
+ menu.Append(k, text, kind=wx.ITEM_CHECK)
+ wx.EVT_MENU_RANGE(self, 100, 200, self.OnMenuSetColour)
+ wx.EVT_UPDATE_UI_RANGE(self, 100, 200, self.OnCheckMenuColours)
menu.Break()
for x in range(1, self.maxThickness+1):
- menu.Append(x, str(x), kind=wxITEM_CHECK)
- EVT_MENU_RANGE(self, 1, self.maxThickness, self.OnMenuSetThickness)
- EVT_UPDATE_UI_RANGE(self, 1, self.maxThickness, self.OnCheckMenuThickness)
+ menu.Append(x, str(x), kind=wx.ITEM_CHECK)
+ wx.EVT_MENU_RANGE(self, 1, self.maxThickness, self.OnMenuSetThickness)
+ wx.EVT_UPDATE_UI_RANGE(self, 1, self.maxThickness, self.OnCheckMenuThickness)
self.menu = menu
@@ -126,8 +126,11 @@ class DoodleWindow(wxWindow):
text = self.menuColours[event.GetId()]
if text == self.colour:
event.Check(True)
+ event.SetText(text.upper())
else:
event.Check(False)
+ event.SetText(text)
+
def OnCheckMenuThickness(self, event):
if event.GetId() == self.thickness:
event.Check(True)
@@ -164,7 +167,7 @@ class DoodleWindow(wxWindow):
current one. Save the coordinants for redraws.
"""
if event.Dragging() and event.LeftIsDown():
- dc = wxBufferedDC(wxClientDC(self), self.buffer)
+ dc = wx.BufferedDC(wx.ClientDC(self), self.buffer)
dc.BeginDrawing()
dc.SetPen(self.pen)
pos = event.GetPositionTuple()
@@ -200,10 +203,10 @@ class DoodleWindow(wxWindow):
Called when the window is exposed.
"""
# Create a buffered paint DC. It will create the real
- # wxPaintDC and then blit the bitmap to it when dc is
+ # wx.PaintDC and then blit the bitmap to it when dc is
# deleted. Since we don't need to draw anything else
# here that's all there is to it.
- dc = wxBufferedPaintDC(self, self.buffer)
+ dc = wx.BufferedPaintDC(self, self.buffer)
def DrawLines(self, dc):
@@ -212,7 +215,7 @@ class DoodleWindow(wxWindow):
"""
dc.BeginDrawing()
for colour, thickness, line in self.lines:
- pen = wxPen(wxNamedColour(colour), thickness, wxSOLID)
+ pen = wx.Pen(colour, thickness, wx.SOLID)
dc.SetPen(pen)
for coords in line:
apply(dc.DrawLine, coords)
@@ -240,16 +243,16 @@ class DoodleWindow(wxWindow):
#----------------------------------------------------------------------
-class DoodleFrame(wxFrame):
+class DoodleFrame(wx.Frame):
def __init__(self, parent):
- wxFrame.__init__(self, parent, -1, "Doodle Frame", size=(800,600),
- style=wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE)
+ wx.Frame.__init__(self, parent, -1, "Doodle Frame", size=(800,600),
+ style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE)
doodle = DoodleWindow(self, -1)
#----------------------------------------------------------------------
if __name__ == '__main__':
- app = wxPySimpleApp()
+ app = wx.PySimpleApp()
frame = DoodleFrame(None)
frame.Show(True)
app.MainLoop()
diff --git a/wxPython/samples/doodle/sample.ddl b/wxPython/samples/doodle/sample.ddl
index f995fdea4d..b22f265118 100644
--- a/wxPython/samples/doodle/sample.ddl
+++ b/wxPython/samples/doodle/sample.ddl
@@ -4008,4 +4008,261 @@ I472
I599
I473
tatp56
+a(S'Red'
+p57
+I4
+(lp58
+(I503
+I412
+I503
+I411
+ta(I503
+I411
+I504
+I411
+ta(I504
+I411
+I504
+I410
+ta(I504
+I410
+I505
+I410
+ta(I505
+I410
+I505
+I409
+ta(I505
+I409
+I506
+I409
+ta(I506
+I409
+I507
+I409
+ta(I507
+I409
+I507
+I408
+ta(I507
+I408
+I508
+I408
+ta(I508
+I408
+I509
+I408
+ta(I509
+I408
+I510
+I408
+ta(I510
+I408
+I511
+I408
+ta(I511
+I408
+I511
+I409
+ta(I511
+I409
+I511
+I410
+ta(I511
+I410
+I512
+I410
+ta(I512
+I410
+I512
+I411
+ta(I512
+I411
+I512
+I412
+ta(I512
+I412
+I512
+I413
+ta(I512
+I413
+I512
+I414
+ta(I512
+I414
+I512
+I415
+ta(I512
+I415
+I511
+I415
+ta(I511
+I415
+I511
+I416
+ta(I511
+I416
+I510
+I416
+ta(I510
+I416
+I510
+I417
+ta(I510
+I417
+I509
+I417
+ta(I509
+I417
+I508
+I418
+ta(I508
+I418
+I508
+I419
+ta(I508
+I419
+I507
+I420
+ta(I507
+I420
+I506
+I421
+ta(I506
+I421
+I505
+I421
+ta(I505
+I421
+I504
+I422
+ta(I504
+I422
+I503
+I423
+ta(I503
+I423
+I503
+I424
+ta(I503
+I424
+I502
+I425
+ta(I502
+I425
+I502
+I426
+tatp59
+a(g57
+I4
+(lp60
+(I503
+I414
+I502
+I414
+ta(I502
+I414
+I502
+I413
+ta(I502
+I413
+I501
+I413
+ta(I501
+I413
+I499
+I412
+ta(I499
+I412
+I498
+I412
+ta(I498
+I412
+I497
+I412
+ta(I497
+I412
+I496
+I412
+ta(I496
+I412
+I495
+I412
+ta(I495
+I412
+I494
+I412
+ta(I494
+I412
+I493
+I413
+ta(I493
+I413
+I493
+I414
+ta(I493
+I414
+I493
+I415
+ta(I493
+I415
+I493
+I416
+ta(I493
+I416
+I493
+I417
+ta(I493
+I417
+I493
+I418
+ta(I493
+I418
+I493
+I419
+ta(I493
+I419
+I493
+I420
+ta(I493
+I420
+I494
+I421
+ta(I494
+I421
+I495
+I422
+ta(I495
+I422
+I496
+I422
+ta(I496
+I422
+I497
+I423
+ta(I497
+I423
+I498
+I423
+ta(I498
+I423
+I498
+I424
+ta(I498
+I424
+I499
+I424
+ta(I499
+I424
+I500
+I424
+ta(I500
+I424
+I500
+I425
+ta(I500
+I425
+I501
+I425
+tatp61
a.
\ No newline at end of file
diff --git a/wxPython/samples/doodle/superdoodle.py b/wxPython/samples/doodle/superdoodle.py
index 08ee49339e..9816691107 100644
--- a/wxPython/samples/doodle/superdoodle.py
+++ b/wxPython/samples/doodle/superdoodle.py
@@ -7,10 +7,12 @@ intelligent Frame. This one has a menu and a statusbar, is able to
save and reload doodles, clear the workspace, and has a simple control
panel for setting color and line thickness in addition to the popup
menu that DoodleWindow provides. There is also a nice About dialog
-implmented using an wxHtmlWindow.
+implmented using an wx.html.HtmlWindow.
"""
-from wxPython.wx import *
+import wx # This module uses the new wx namespace
+import wx.html
+from wx.lib import buttons # for generic button classes
from doodle import DoodleWindow
import os, cPickle
@@ -18,25 +20,28 @@ import os, cPickle
#----------------------------------------------------------------------
-idNEW = 11001
-idOPEN = 11002
-idSAVE = 11003
-idSAVEAS = 11004
-idCLEAR = 11005
-idEXIT = 11006
-idABOUT = 11007
+wx.RegisterId(5000) # Give a high starting value for the IDs, just for kicks
+idNEW = wx.NewId()
+idOPEN = wx.NewId()
+idSAVE = wx.NewId()
+idSAVEAS = wx.NewId()
+idCLEAR = wx.NewId()
+idEXIT = wx.NewId()
+idABOUT = wx.NewId()
-class DoodleFrame(wxFrame):
+
+
+class DoodleFrame(wx.Frame):
"""
A DoodleFrame contains a DoodleWindow and a ControlPanel and manages
- their layout with a wxBoxSizer. A menu and associated event handlers
+ their layout with a wx.BoxSizer. A menu and associated event handlers
provides for saving a doodle to a file, etc.
"""
title = "Do a doodle"
def __init__(self, parent):
- wxFrame.__init__(self, parent, -1, self.title, size=(800,600),
- style=wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE)
+ wx.Frame.__init__(self, parent, -1, self.title, size=(800,600),
+ style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE)
self.CreateStatusBar()
self.MakeMenu()
self.filename = None
@@ -47,9 +52,9 @@ class DoodleFrame(wxFrame):
# Create a sizer to layout the two windows side-by-side.
# Both will grow vertically, the doodle window will grow
# horizontally as well.
- box = wxBoxSizer(wxHORIZONTAL)
- box.Add(cPanel, 0, wxEXPAND)
- box.Add(self.doodle, 1, wxEXPAND)
+ box = wx.BoxSizer(wx.HORIZONTAL)
+ box.Add(cPanel, 0, wx.EXPAND)
+ box.Add(self.doodle, 1, wx.EXPAND)
# Tell the frame that it should layout itself in response to
# size events.
@@ -73,15 +78,19 @@ class DoodleFrame(wxFrame):
f.close()
self.doodle.SetLinesData(data)
except cPickle.UnpicklingError:
- wxMessageBox("%s is not a doodle file." % self.filename,
- "oops!", style=wxOK|wxICON_EXCLAMATION)
+ wx.MessageBox("%s is not a doodle file." % self.filename,
+ "oops!", style=wx.OK|wx.ICON_EXCLAMATION)
def MakeMenu(self):
# create the file menu
- menu1 = wxMenu()
- menu1.Append(idOPEN, "&Open", "Open a doodle file")
- menu1.Append(idSAVE, "&Save", "Save the doodle")
+ menu1 = wx.Menu()
+
+ # Using the "\tKeyName" syntax automatically creates a
+ # wx.AcceleratorTable for this frame and binds the keys to
+ # the menu items.
+ menu1.Append(idOPEN, "&Open\tCtrl-O", "Open a doodle file")
+ menu1.Append(idSAVE, "&Save\tCtrl-S", "Save the doodle")
menu1.Append(idSAVEAS, "Save &As", "Save the doodle in a new file")
menu1.AppendSeparator()
menu1.Append(idCLEAR, "&Clear", "Clear the current doodle")
@@ -89,30 +98,30 @@ class DoodleFrame(wxFrame):
menu1.Append(idEXIT, "E&xit", "Terminate the application")
# and the help menu
- menu2 = wxMenu()
- menu2.Append(idABOUT, "&About", "Display the gratuitous 'about this app' thingamajig")
+ menu2 = wx.Menu()
+ menu2.Append(idABOUT, "&About\tCtrl-H", "Display the gratuitous 'about this app' thingamajig")
# and add them to a menubar
- menuBar = wxMenuBar()
+ menuBar = wx.MenuBar()
menuBar.Append(menu1, "&File")
menuBar.Append(menu2, "&Help")
self.SetMenuBar(menuBar)
- EVT_MENU(self, idOPEN, self.OnMenuOpen)
- EVT_MENU(self, idSAVE, self.OnMenuSave)
- EVT_MENU(self, idSAVEAS, self.OnMenuSaveAs)
- EVT_MENU(self, idCLEAR, self.OnMenuClear)
- EVT_MENU(self, idEXIT, self.OnMenuExit)
- EVT_MENU(self, idABOUT, self.OnMenuAbout)
+ wx.EVT_MENU(self, idOPEN, self.OnMenuOpen)
+ wx.EVT_MENU(self, idSAVE, self.OnMenuSave)
+ wx.EVT_MENU(self, idSAVEAS, self.OnMenuSaveAs)
+ wx.EVT_MENU(self, idCLEAR, self.OnMenuClear)
+ wx.EVT_MENU(self, idEXIT, self.OnMenuExit)
+ wx.EVT_MENU(self, idABOUT, self.OnMenuAbout)
wildcard = "Doodle files (*.ddl)|*.ddl|All files (*.*)|*.*"
def OnMenuOpen(self, event):
- dlg = wxFileDialog(self, "Open doodle file...", os.getcwd(),
- style=wxOPEN, wildcard = self.wildcard)
- if dlg.ShowModal() == wxID_OK:
+ dlg = wx.FileDialog(self, "Open doodle file...", os.getcwd(),
+ style=wx.OPEN, wildcard = self.wildcard)
+ if dlg.ShowModal() == wx.ID_OK:
self.filename = dlg.GetPath()
self.ReadFile()
self.SetTitle(self.title + ' -- ' + self.filename)
@@ -127,10 +136,10 @@ class DoodleFrame(wxFrame):
def OnMenuSaveAs(self, event):
- dlg = wxFileDialog(self, "Save doodle as...", os.getcwd(),
- style=wxSAVE | wxOVERWRITE_PROMPT,
+ dlg = wx.FileDialog(self, "Save doodle as...", os.getcwd(),
+ style=wx.SAVE | wx.OVERWRITE_PROMPT,
wildcard = self.wildcard)
- if dlg.ShowModal() == wxID_OK:
+ if dlg.ShowModal() == wx.ID_OK:
filename = dlg.GetPath()
if not os.path.splitext(filename)[1]:
filename = filename + '.ddl'
@@ -159,7 +168,7 @@ class DoodleFrame(wxFrame):
#----------------------------------------------------------------------
-class ControlPanel(wxPanel):
+class ControlPanel(wx.Panel):
"""
This class implements a very simple control panel for the DoodleWindow.
It creates buttons for each of the colours and thickneses supported by
@@ -167,36 +176,51 @@ class ControlPanel(wxPanel):
also a little window that shows an example doodleLine in the selected
values. Nested sizers are used for layout.
"""
+
+ BMP_SIZE = 16
+ BMP_BORDER = 3
+
def __init__(self, parent, ID, doodle):
- wxPanel.__init__(self, parent, ID, style=wxRAISED_BORDER)
+ wx.Panel.__init__(self, parent, ID, style=wx.RAISED_BORDER)
numCols = 4
spacing = 4
+ btnSize = wx.Size(self.BMP_SIZE + 2*self.BMP_BORDER,
+ self.BMP_SIZE + 2*self.BMP_BORDER)
+
# Make a grid of buttons for each colour. Attach each button
# event to self.OnSetColour. The button ID is the same as the
# key in the colour dictionary.
+ self.clrBtns = {}
colours = doodle.menuColours
keys = colours.keys()
keys.sort()
- cGrid = wxGridSizer(cols=numCols, hgap=2, vgap=2)
+ cGrid = wx.GridSizer(cols=numCols, hgap=2, vgap=2)
for k in keys:
- bmp = self.MakeBitmap(wxNamedColour(colours[k]))
- b = wxBitmapButton(self, k, bmp)
- EVT_BUTTON(self, k, self.OnSetColour)
+ bmp = self.MakeBitmap(colours[k])
+ b = buttons.GenBitmapToggleButton(self, k, bmp, size=btnSize )
+ b.SetBezelWidth(1)
+ b.SetUseFocusIndicator(False)
+ wx.EVT_BUTTON(self, k, self.OnSetColour)
cGrid.Add(b, 0)
+ self.clrBtns[colours[k]] = b
+ self.clrBtns[colours[keys[0]]].SetToggle(True)
- # Save the button size so we can use it for the number buttons
- btnSize = b.GetSize()
# Make a grid of buttons for the thicknesses. Attach each button
# event to self.OnSetThickness. The button ID is the same as the
# thickness value.
- tGrid = wxGridSizer(cols=numCols, hgap=2, vgap=2)
+ self.thknsBtns = {}
+ tGrid = wx.GridSizer(cols=numCols, hgap=2, vgap=2)
for x in range(1, doodle.maxThickness+1):
- b = wxButton(self, x, str(x), size=btnSize)
- EVT_BUTTON(self, x, self.OnSetThickness)
+ b = buttons.GenToggleButton(self, x, str(x), size=btnSize)
+ b.SetBezelWidth(1)
+ b.SetUseFocusIndicator(False)
+ wx.EVT_BUTTON(self, x, self.OnSetThickness)
tGrid.Add(b, 0)
+ self.thknsBtns[x] = b
+ self.thknsBtns[1].SetToggle(True)
# Make a colour indicator window, it is registerd as a listener
# with the doodle window so it will be notified when the settings
@@ -208,10 +232,10 @@ class ControlPanel(wxPanel):
# Make a box sizer and put the two grids and the indicator
# window in it.
- box = wxBoxSizer(wxVERTICAL)
- box.Add(cGrid, 0, wxALL, spacing)
- box.Add(tGrid, 0, wxALL, spacing)
- box.Add(ci, 0, wxEXPAND|wxALL, spacing)
+ box = wx.BoxSizer(wx.VERTICAL)
+ box.Add(cGrid, 0, wx.ALL, spacing)
+ box.Add(tGrid, 0, wx.ALL, spacing)
+ box.Add(ci, 0, wx.EXPAND|wx.ALL, spacing)
self.SetSizer(box)
self.SetAutoLayout(True)
@@ -224,15 +248,15 @@ class ControlPanel(wxPanel):
def MakeBitmap(self, colour):
"""
We can create a bitmap of whatever we want by simply selecting
- it into a wxMemoryDC and drawing on it. In this case we just set
+ it into a wx.MemoryDC and drawing on it. In this case we just set
a background brush and clear the dc.
"""
- bmp = wxEmptyBitmap(16,16)
- dc = wxMemoryDC()
+ bmp = wx.EmptyBitmap(self.BMP_SIZE, self.BMP_SIZE)
+ dc = wx.MemoryDC()
dc.SelectObject(bmp)
- dc.SetBackground(wxBrush(colour))
+ dc.SetBackground(wx.Brush(colour))
dc.Clear()
- dc.SelectObject(wxNullBitmap)
+ dc.SelectObject(wx.NullBitmap)
return bmp
@@ -241,6 +265,10 @@ class ControlPanel(wxPanel):
Use the event ID to get the colour, set that colour in the doodle.
"""
colour = self.doodle.menuColours[event.GetId()]
+ if colour != self.doodle.colour:
+ # untoggle the old colour button
+ self.clrBtns[self.doodle.colour].SetToggle(False)
+ # set the new colour
self.doodle.SetColour(colour)
@@ -248,22 +276,28 @@ class ControlPanel(wxPanel):
"""
Use the event ID to set the thickness in the doodle.
"""
- self.doodle.SetThickness(event.GetId())
+ thickness = event.GetId()
+ if thickness != self.doodle.thickness:
+ # untoggle the old thickness button
+ self.thknsBtns[self.doodle.thickness].SetToggle(False)
+ # set the new colour
+ self.doodle.SetThickness(thickness)
+
#----------------------------------------------------------------------
-class ColourIndicator(wxWindow):
+class ColourIndicator(wx.Window):
"""
An instance of this class is used on the ControlPanel to show
a sample of what the current doodle line will look like.
"""
def __init__(self, parent):
- wxWindow.__init__(self, parent, -1, style=wxSUNKEN_BORDER)
- self.SetBackgroundColour(wxWHITE)
- self.SetSize(wxSize(-1, 45))
+ wx.Window.__init__(self, parent, -1, style=wx.SUNKEN_BORDER)
+ self.SetBackgroundColour(wx.WHITE)
+ self.SetSize( (-1, 45) )
self.colour = self.thickness = None
- EVT_PAINT(self, self.OnPaint)
+ wx.EVT_PAINT(self, self.OnPaint)
def Update(self, colour, thickness):
@@ -281,10 +315,10 @@ class ColourIndicator(wxWindow):
This method is called when all or part of the window needs to be
redrawn.
"""
- dc = wxPaintDC(self)
+ dc = wx.PaintDC(self)
if self.colour:
sz = self.GetClientSize()
- pen = wxPen(wxNamedColour(self.colour), self.thickness)
+ pen = wx.Pen(self.colour, self.thickness)
dc.BeginDrawing()
dc.SetPen(pen)
dc.DrawLine(10, sz.height/2, sz.width-10, sz.height/2)
@@ -293,7 +327,7 @@ class ColourIndicator(wxWindow):
#----------------------------------------------------------------------
-class DoodleAbout(wxDialog):
+class DoodleAbout(wx.Dialog):
""" An about box that uses an HTML window """
text = '''
@@ -318,44 +352,43 @@ instructions:
SuperDoodle and wxPython are brought to you by
Robin Dunn and Total Control Software , Copyright
-© 1997-2001.
+© 1997-2003.
'''
def __init__(self, parent):
- wxDialog.__init__(self, parent, -1, 'About SuperDoodle',
- size=wxSize(420, 380))
- from wxPython.html import wxHtmlWindow
+ wx.Dialog.__init__(self, parent, -1, 'About SuperDoodle',
+ size=(420, 380) )
- html = wxHtmlWindow(self, -1)
+ html = wx.html.HtmlWindow(self, -1)
html.SetPage(self.text)
- button = wxButton(self, wxID_OK, "Okay")
+ button = wx.Button(self, wx.ID_OK, "Okay")
# constraints for the html window
- lc = wxLayoutConstraints()
- lc.top.SameAs(self, wxTop, 5)
- lc.left.SameAs(self, wxLeft, 5)
- lc.bottom.SameAs(button, wxTop, 5)
- lc.right.SameAs(self, wxRight, 5)
+ lc = wx.LayoutConstraints()
+ lc.top.SameAs(self, wx.Top, 5)
+ lc.left.SameAs(self, wx.Left, 5)
+ lc.bottom.SameAs(button, wx.Top, 5)
+ lc.right.SameAs(self, wx.Right, 5)
html.SetConstraints(lc)
# constraints for the button
- lc = wxLayoutConstraints()
- lc.bottom.SameAs(self, wxBottom, 5)
- lc.centreX.SameAs(self, wxCentreX)
+ lc = wx.LayoutConstraints()
+ lc.bottom.SameAs(self, wx.Bottom, 5)
+ lc.centreX.SameAs(self, wx.CentreX)
lc.width.AsIs()
lc.height.AsIs()
button.SetConstraints(lc)
self.SetAutoLayout(True)
self.Layout()
- self.CentreOnParent(wxBOTH)
+ self.CentreOnParent(wx.BOTH)
#----------------------------------------------------------------------
-class DoodleApp(wxApp):
+class DoodleApp(wx.App):
def OnInit(self):
frame = DoodleFrame(None)
frame.Show(True)
diff --git a/wxPython/samples/hangman/hangman.py b/wxPython/samples/hangman/hangman.py
new file mode 100644
index 0000000000..f2e09b5bec
--- /dev/null
+++ b/wxPython/samples/hangman/hangman.py
@@ -0,0 +1,468 @@
+"""Hangman.py, a simple wxPython game, inspired by the
+old bsd game by Ken Arnold.
+From the original man page:
+
+ In hangman, the computer picks a word from the on-line
+ word list and you must try to guess it. The computer
+ keeps track of which letters have been guessed and how
+ many wrong guesses you have made on the screen in a
+ graphic fashion.
+
+That says it all, doesn't it?
+
+Have fun with it,
+
+Harm van der Heijden (H.v.d.Heijden@phys.tue.nl)"""
+
+import random,re
+from wxPython.wx import *
+
+
+
+class WordFetcher:
+ builtin_words = ' albatros banana electrometer eggshell'
+
+ def __init__(self, filename, min_length = 5):
+ self.min_length = min_length
+ print "Trying to open file %s" % (filename,)
+ try:
+ f = open(filename, "r")
+ except:
+ print "Couldn't open dictionary file %s, using builtins" % (filename,)
+ self.words = self.builtin_words
+ self.filename = None
+ return
+ self.words = f.read()
+ self.filename = filename
+ print "Got %d bytes." % (len(self.words),)
+
+ def SetMinLength(min_length):
+ self.min_length = min_length
+
+ def Get(self):
+ reg = re.compile('\s+([a-zA-Z]+)\s+')
+ n = 50 # safety valve; maximum number of tries to find a suitable word
+ while n:
+ index = int(random.random()*len(self.words))
+ m = reg.search(self.words[index:])
+ if m and len(m.groups()[0]) >= self.min_length: break
+ n = n - 1
+ if n: return m.groups()[0].lower()
+ return "error"
+
+
+
+def stdprint(x):
+ print x
+
+
+
+class URLWordFetcher(WordFetcher):
+ def __init__(self, url):
+ self.OpenURL(url)
+ WordFetcher.__init__(self, "hangman_dict.txt")
+
+ def logprint(self,x):
+ print x
+
+ def RetrieveAsFile(self, host, path=''):
+ from httplib import HTTP
+ try:
+ h = HTTP(host)
+ except:
+ self.logprint("Failed to create HTTP connection to %s... is the network available?" % (host))
+ return None
+ h.putrequest('GET',path)
+ h.putheader('Accept','text/html')
+ h.putheader('Accept','text/plain')
+ h.endheaders()
+ errcode, errmsg, headers = h.getreply()
+ if errcode != 200:
+ self.logprint("HTTP error code %d: %s" % (errcode, errmsg))
+ return None
+ f = h.getfile()
+ return f
+
+ def OpenURL(self,url):
+ from htmllib import HTMLParser
+ import formatter
+ self.url = url
+ m = re.match('http://([^/]+)(/\S*)\s*', url)
+ if m:
+ host = m.groups()[0]
+ path = m.groups()[1]
+ else:
+ m = re.match('http://(\S+)\s*', url)
+ if not m:
+ # Invalid URL
+ self.logprint("Invalid or unsupported URL: %s" % (url))
+ return
+ host = m.groups()[0]
+ path = ''
+ f = self.RetrieveAsFile(host,path)
+ if not f:
+ self.logprint("Could not open %s" % (url))
+ return
+ self.logprint("Receiving data...")
+ data = f.read()
+ tmp = open('hangman_dict.txt','w')
+ fmt = formatter.AbstractFormatter(formatter.DumbWriter(tmp))
+ p = HTMLParser(fmt)
+ self.logprint("Parsing data...")
+ p.feed(data)
+ p.close()
+ tmp.close()
+
+
+
+class HangmanWnd(wxWindow):
+ def __init__(self, parent, id, pos=wxDefaultPosition, size=wxDefaultSize):
+ wxWindow.__init__(self, parent, id, pos, size)
+ self.SetBackgroundColour(wxNamedColour('white'))
+ if wxPlatform == '__WXGTK__':
+ self.font = wxFont(12, wxMODERN, wxNORMAL, wxNORMAL)
+ else:
+ self.font = wxFont(10, wxMODERN, wxNORMAL, wxNORMAL)
+ self.SetFocus()
+ EVT_PAINT(self, self.OnPaint)
+
+
+ def StartGame(self, word):
+ self.word = word
+ self.guess = []
+ self.tries = 0
+ self.misses = 0
+ self.Draw()
+
+ def EndGame(self):
+ self.misses = 7;
+ self.guess = map(chr, range(ord('a'),ord('z')+1))
+ self.Draw()
+
+ def HandleKey(self, key):
+ self.message = ""
+ if self.guess.count(key):
+ self.message = 'Already guessed %s' % (key,)
+ return 0
+ self.guess.append(key)
+ self.guess.sort()
+ self.tries = self.tries+1
+ if not key in self.word:
+ self.misses = self.misses+1
+ if self.misses == 7:
+ self.EndGame()
+ return 1
+ has_won = 1
+ for letter in self.word:
+ if not self.guess.count(letter):
+ has_won = 0
+ break
+ if has_won:
+ self.Draw()
+ return 2
+ self.Draw()
+ return 0
+
+ def Draw(self, dc = None):
+ if not dc:
+ dc = wxClientDC(self)
+ dc.SetFont(self.font)
+ dc.Clear()
+ (x,y) = self.GetSizeTuple()
+ x1 = x-200; y1 = 20
+ for letter in self.word:
+ if self.guess.count(letter):
+ dc.DrawText(letter, x1, y1)
+ else:
+ dc.DrawText('.', x1, y1)
+ x1 = x1 + 10
+ x1 = x-200
+ dc.DrawText("tries %d misses %d" % (self.tries,self.misses),x1,50)
+ guesses = ""
+ for letter in self.guess:
+ guesses = guesses + letter
+ dc.DrawText("guessed:", x1, 70)
+ dc.DrawText(guesses[:13], x1+80, 70)
+ dc.DrawText(guesses[13:], x1+80, 90)
+ dc.SetUserScale(x/1000.0, y/1000.0)
+ self.DrawVictim(dc)
+
+ def DrawVictim(self, dc):
+ dc.SetPen(wxPen(wxNamedColour('black'), 20))
+ dc.DrawLines([(10, 980), (10,900), (700,900), (700,940), (720,940),
+ (720,980), (900,980)])
+ dc.DrawLines([(100,900), (100, 100), (300,100)])
+ dc.DrawLine(100,200,200,100)
+ if ( self.misses == 0 ): return
+ dc.SetPen(wxPen(wxNamedColour('blue'), 10))
+ dc.DrawLine(300,100,300,200)
+ if ( self.misses == 1 ): return
+ dc.DrawEllipse(250,200,100,100)
+ if ( self.misses == 2 ): return
+ dc.DrawLine(300,300,300,600)
+ if ( self.misses == 3) : return
+ dc.DrawLine(300,300,250,550)
+ if ( self.misses == 4) : return
+ dc.DrawLine(300,300,350,550)
+ if ( self.misses == 5) : return
+ dc.DrawLine(300,600,350,850)
+ if ( self.misses == 6) : return
+ dc.DrawLine(300,600,250,850)
+
+ def OnPaint(self, event):
+ dc = wxPaintDC(self)
+ self.Draw(dc)
+
+
+
+class HangmanDemo(HangmanWnd):
+ def __init__(self, wf, parent, id, pos, size):
+ HangmanWnd.__init__(self, parent, id, pos, size)
+ self.StartGame("dummy")
+ self.start_new = 1
+ self.wf = wf
+ self.delay = 500
+ self.timer = self.PlayTimer(self.MakeMove)
+
+ def MakeMove(self):
+ self.timer.Stop()
+ if self.start_new:
+ self.StartGame(self.wf.Get())
+ self.start_new = 0
+ self.left = list('aaaabcdeeeeefghiiiiijklmnnnoooopqrssssttttuuuuvwxyz')
+ else:
+ key = self.left[int(random.random()*len(self.left))]
+ while self.left.count(key): self.left.remove(key)
+ self.start_new = self.HandleKey(key)
+ self.timer.Start(self.delay)
+
+ def Stop(self):
+ self.timer.Stop()
+
+ class PlayTimer(wxTimer):
+ def __init__(self,func):
+ wxTimer.__init__(self)
+ self.func = func
+ self.Start(1000)
+
+ def Notify(self):
+ apply(self.func, ())
+
+
+
+class HangmanDemoFrame(wxFrame):
+ def __init__(self, wf, parent, id, pos, size):
+ wxFrame.__init__(self, parent, id, "Hangman demo", pos, size)
+ self.demo = HangmanDemo(wf, self, -1, wxDefaultPosition, wxDefaultSize)
+ EVT_CLOSE(self, self.OnCloseWindow)
+
+ def OnCloseWindow(self, event):
+ self.demo.timer.Stop()
+ self.Destroy()
+
+
+
+class AboutBox(wxDialog):
+ def __init__(self, parent,wf):
+ wxDialog.__init__(self, parent, -1, "About Hangman", wxDefaultPosition, wxSize(350,450))
+ self.wnd = HangmanDemo(wf, self, -1, wxPoint(1,1), wxSize(350,150))
+ self.static = wxStaticText(self, -1, __doc__, wxPoint(1,160), wxSize(350, 250))
+ self.button = wxButton(self, 2001, "OK", wxPoint(150,420), wxSize(50,-1))
+ EVT_BUTTON(self, 2001, self.OnOK)
+
+ def OnOK(self, event):
+ self.wnd.Stop()
+ self.EndModal(wxID_OK)
+
+
+
+class MyFrame(wxFrame):
+ def __init__(self, parent, wf):
+ self.wf = wf
+ wxFrame.__init__(self, parent, -1, "hangman", wxDefaultPosition, wxSize(400,300))
+ self.wnd = HangmanWnd(self, -1)
+ menu = wxMenu()
+ menu.Append(1001, "New")
+ menu.Append(1002, "End")
+ menu.AppendSeparator()
+ menu.Append(1003, "Reset")
+ menu.Append(1004, "Demo...")
+ menu.AppendSeparator()
+ menu.Append(1005, "Exit")
+ menubar = wxMenuBar()
+ menubar.Append(menu, "Game")
+ menu = wxMenu()
+ #menu.Append(1010, "Internal", "Use internal dictionary", True)
+ menu.Append(1011, "ASCII File...")
+ urls = [ 'wxPython home', 'http://wxPython.org/',
+ 'slashdot.org', 'http://slashdot.org/',
+ 'cnn.com', 'http://cnn.com',
+ 'The New York Times', 'http://www.nytimes.com',
+ 'De Volkskrant', 'http://www.volkskrant.nl/frameless/25000006.html',
+ 'Gnu GPL', 'http://www.fsf.org/copyleft/gpl.html',
+ 'Bijbel: Genesis', 'http://www.coas.com/bijbel/gn1.htm']
+ urlmenu = wxMenu()
+ for item in range(0,len(urls),2):
+ urlmenu.Append(1020+item/2, urls[item], urls[item+1])
+ urlmenu.Append(1080, 'Other...', 'Enter an URL')
+ menu.AppendMenu(1012, 'URL', urlmenu, 'Use a webpage')
+ menu.Append(1013, 'Dump', 'Write contents to stdout')
+ menubar.Append(menu, "Dictionary")
+ self.urls = urls
+ self.urloffset = 1020
+ menu = wxMenu()
+ menu.Append(1090, "About...")
+ menubar.Append(menu, "Help")
+ self.SetMenuBar(menubar)
+ self.CreateStatusBar(2)
+ EVT_MENU(self, 1001, self.OnGameNew)
+ EVT_MENU(self, 1002, self.OnGameEnd)
+ EVT_MENU(self, 1003, self.OnGameReset)
+ EVT_MENU(self, 1004, self.OnGameDemo)
+ EVT_MENU(self, 1005, self.OnWindowClose)
+ EVT_MENU(self, 1011, self.OnDictFile)
+ EVT_MENU_RANGE(self, 1020, 1020+len(urls)/2, self.OnDictURL)
+ EVT_MENU(self, 1080, self.OnDictURLSel)
+ EVT_MENU(self, 1013, self.OnDictDump)
+ EVT_MENU(self, 1090, self.OnHelpAbout)
+ EVT_CHAR(self.wnd, self.OnChar)
+ self.OnGameReset()
+
+ def OnGameNew(self, event):
+ word = self.wf.Get()
+ self.in_progress = 1
+ self.SetStatusText("",0)
+ self.wnd.StartGame(word)
+
+ def OnGameEnd(self, event):
+ self.UpdateAverages(0)
+ self.in_progress = 0
+ self.SetStatusText("",0)
+ self.wnd.EndGame()
+
+ def OnGameReset(self, event=None):
+ self.played = 0
+ self.won = 0
+ self.history = []
+ self.average = 0.0
+ self.OnGameNew(None)
+
+ def OnGameDemo(self, event):
+ frame = HangmanDemoFrame(self.wf, self, -1, wxDefaultPosition, self.GetSize())
+ frame.Show(True)
+
+ def OnDictFile(self, event):
+ fd = wxFileDialog(self)
+ if (self.wf.filename):
+ fd.SetFilename(self.wf.filename)
+ if fd.ShowModal() == wxID_OK:
+ file = fd.GetPath()
+ self.wf = WordFetcher(file)
+
+ def OnDictURL(self, event):
+ item = (event.GetId() - self.urloffset)*2
+ print "Trying to open %s at %s" % (self.urls[item], self.urls[item+1])
+ self.wf = URLWordFetcher(self.urls[item+1])
+
+ def OnDictURLSel(self, event):
+ msg = wxTextEntryDialog(self, "Enter the URL of the dictionary document", "Enter URL")
+ if msg.ShowModal() == wxID_OK:
+ url = msg.GetValue()
+ self.wf = URLWordFetcher(url)
+ def OnDictDump(self, event):
+ print self.wf.words
+
+ def OnHelpAbout(self, event):
+ about = AboutBox(self, self.wf)
+ about.ShowModal()
+ about.wnd.Stop() # that damn timer won't stop!
+
+ def UpdateAverages(self, has_won):
+ if has_won:
+ self.won = self.won + 1
+ self.played = self.played+1
+ self.history.append(self.wnd.misses) # ugly
+ total = 0.0
+ for m in self.history:
+ total = total + m
+ self.average = float(total/len(self.history))
+
+ def OnChar(self, event):
+ if not self.in_progress:
+ #print "new"
+ self.OnGameNew(None)
+ return
+ key = event.KeyCode();
+ #print key
+ if key >= ord('A') and key <= ord('Z'):
+ key = key + ord('a') - ord('A')
+ key = chr(key)
+ if key < 'a' or key > 'z':
+ event.Skip()
+ return
+ res = self.wnd.HandleKey(key)
+ if res == 0:
+ self.SetStatusText(self.wnd.message)
+ elif res == 1:
+ self.UpdateAverages(0)
+ self.SetStatusText("Too bad, you're dead!",0)
+ self.in_progress = 0
+ elif res == 2:
+ self.in_progress = 0
+ self.UpdateAverages(1)
+ self.SetStatusText("Congratulations!",0)
+ if self.played:
+ percent = (100.*self.won)/self.played
+ else:
+ percent = 0.0
+ self.SetStatusText("p %d, w %d (%g %%), av %g" % (self.played,self.won, percent, self.average),1)
+
+ def OnWindowClose(self, event):
+ self.Destroy()
+
+
+
+class MyApp(wxApp):
+ def OnInit(self):
+ if wxPlatform == '__WXGTK__':
+ defaultfile = "/usr/share/games/hangman-words"
+ elif wxPlatform == '__WXMSW__':
+ defaultfile = "c:\\windows\\hardware.txt"
+ else:
+ defaultfile = ""
+ wf = WordFetcher(defaultfile)
+ frame = MyFrame(None, wf)
+ self.SetTopWindow(frame)
+ frame.Show(True)
+ return True
+
+
+
+if __name__ == '__main__':
+ app = MyApp(0)
+ app.MainLoop()
+
+
+#----------------------------------------------------------------------
+
+overview = __doc__
+
+
+def runTest(frame, nb, log):
+ if wxPlatform == '__WXGTK__' or wxPlatform == '__WXMOTIF__':
+ defaultfile = "/usr/share/games/hangman-words"
+ elif wxPlatform == '__WXMSW__':
+ defaultfile = "c:\\windows\\hardware.txt"
+ else:
+ defaultfile = ""
+ wf = WordFetcher(defaultfile)
+ win = MyFrame(frame, wf)
+ frame.otherWin = win
+ win.Show(True)
+
+
+#----------------------------------------------------------------------
+
+
+
+
diff --git a/wxPython/samples/wx_examples/basic/__init__.py b/wxPython/samples/wx_examples/basic/__init__.py
new file mode 100644
index 0000000000..b929a7db76
--- /dev/null
+++ b/wxPython/samples/wx_examples/basic/__init__.py
@@ -0,0 +1 @@
+# Python package.
diff --git a/wxPython/samples/wx_examples/basic/app.py b/wxPython/samples/wx_examples/basic/app.py
new file mode 100755
index 0000000000..09013ed834
--- /dev/null
+++ b/wxPython/samples/wx_examples/basic/app.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+
+"""Basic application class."""
+
+__author__ = "Patrick K. O'Brien "
+__cvsid__ = "$Id$"
+__revision__ = "$Revision$"[11:-2]
+
+import wx
+
+from frame import Frame
+
+class App(wx.App):
+ """Application class."""
+
+ def OnInit(self):
+ self.frame = Frame()
+ self.frame.Show()
+ self.SetTopWindow(self.frame)
+ return True
+
+def main():
+ app = App()
+ app.MainLoop()
+
+if __name__ == '__main__':
+ main()
diff --git a/wxPython/samples/wx_examples/basic/frame.py b/wxPython/samples/wx_examples/basic/frame.py
new file mode 100755
index 0000000000..3bcecb9f75
--- /dev/null
+++ b/wxPython/samples/wx_examples/basic/frame.py
@@ -0,0 +1,33 @@
+#!/usr/bin/env python
+
+"""Basic frame class, with App for testing."""
+
+__author__ = "Patrick K. O'Brien "
+__cvsid__ = "$Id$"
+__revision__ = "$Revision$"[11:-2]
+
+import wx
+
+class Frame(wx.Frame):
+ """Frame class."""
+
+ def __init__(self, parent=None, id=-1, title='Title',
+ pos=wx.DefaultPosition, size=(400, 200)):
+ """Create a Frame instance."""
+ wx.Frame.__init__(self, parent, id, title, pos, size)
+
+class App(wx.App):
+ """Application class."""
+
+ def OnInit(self):
+ self.frame = Frame()
+ self.frame.Show()
+ self.SetTopWindow(self.frame)
+ return True
+
+def main():
+ app = App()
+ app.MainLoop()
+
+if __name__ == '__main__':
+ main()
diff --git a/wxPython/samples/wx_examples/hello/__init__.py b/wxPython/samples/wx_examples/hello/__init__.py
new file mode 100644
index 0000000000..b929a7db76
--- /dev/null
+++ b/wxPython/samples/wx_examples/hello/__init__.py
@@ -0,0 +1 @@
+# Python package.
diff --git a/wxPython/samples/wx_examples/hello/hello.py b/wxPython/samples/wx_examples/hello/hello.py
new file mode 100755
index 0000000000..63a29b5666
--- /dev/null
+++ b/wxPython/samples/wx_examples/hello/hello.py
@@ -0,0 +1,38 @@
+#!/usr/bin/env python
+
+"""Hello, wxPython! program."""
+
+__author__ = "Patrick K. O'Brien "
+__cvsid__ = "$Id$"
+__revision__ = "$Revision$"[11:-2]
+
+import wx
+
+class Frame(wx.Frame):
+ """Frame class that displays an image."""
+
+ def __init__(self, image, parent=None, id=-1,
+ pos=wx.DefaultPosition, title='Hello, wxPython!'):
+ """Create a Frame instance and display image."""
+ temp = image.ConvertToBitmap()
+ size = temp.GetWidth(), temp.GetHeight()
+ wx.Frame.__init__(self, parent, id, title, pos, size)
+ self.bmp = wx.StaticBitmap(parent=self, id=-1, bitmap=temp)
+
+class App(wx.App):
+ """Application class."""
+
+ def OnInit(self):
+ wx.InitAllImageHandlers()
+ image = wx.Image('wxPython.jpg', wx.BITMAP_TYPE_JPEG)
+ self.frame = Frame(image)
+ self.frame.Show()
+ self.SetTopWindow(self.frame)
+ return True
+
+def main():
+ app = App()
+ app.MainLoop()
+
+if __name__ == '__main__':
+ main()
diff --git a/wxPython/samples/wx_examples/hello/wxPython.jpg b/wxPython/samples/wx_examples/hello/wxPython.jpg
new file mode 100644
index 0000000000..9770d4e9b8
Binary files /dev/null and b/wxPython/samples/wx_examples/hello/wxPython.jpg differ
diff --git a/wxPython/scripts/CreateBatchFiles.py b/wxPython/scripts/CreateBatchFiles.py
index 871650d52f..d5d861801f 100644
--- a/wxPython/scripts/CreateBatchFiles.py
+++ b/wxPython/scripts/CreateBatchFiles.py
@@ -16,13 +16,15 @@ python = sys.executable
pythonw = 'start ' + os.path.join(os.path.split(python)[0], 'pythonw.exe')
scriptdir = os.getcwd()
-scripts = [ ("img2png", 0),
- ("img2py", 0),
- ("img2xpm", 0),
- ("xrced", 1),
- ("pyshell", 1),
- ("pycrust", 1),
- ("pycwrap", 1),
+scripts = [ ("img2png", 0),
+ ("img2py", 0),
+ ("img2xpm", 0),
+ ("xrced", 1),
+ ("pyshell", 1),
+ ("pycrust", 1),
+ ("pywrap", 1),
+ ("pyalamode", 1),
+ ("pyalacarte", 1),
("helpviewer", 1),
]
diff --git a/wxPython/scripts/helpviewer.bat b/wxPython/scripts/helpviewer.bat
index d881374690..e08ab42480 100755
--- a/wxPython/scripts/helpviewer.bat
+++ b/wxPython/scripts/helpviewer.bat
@@ -1,3 +1,3 @@
@echo off
-start e:\tools\Python22\pythonw.exe e:\PROJECTS\wx\wxPython\scripts\helpviewer %1 %2 %3 %4 %5 %6 %7 %8 %9
+start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\helpviewer %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/wxPython/scripts/img2png.bat b/wxPython/scripts/img2png.bat
index a69fee0c02..2b2511328f 100755
--- a/wxPython/scripts/img2png.bat
+++ b/wxPython/scripts/img2png.bat
@@ -1,3 +1,3 @@
@echo off
-e:\tools\Python22\python.exe e:\PROJECTS\wx\wxPython\scripts\img2png %1 %2 %3 %4 %5 %6 %7 %8 %9
+E:\TOOLS\PYTHON22\PYTHON.EXE C:\PROJECTS\wx\wxPython\scripts\img2png %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/wxPython/scripts/img2py.bat b/wxPython/scripts/img2py.bat
index e2451895ec..fa00d7ff02 100755
--- a/wxPython/scripts/img2py.bat
+++ b/wxPython/scripts/img2py.bat
@@ -1,3 +1,3 @@
@echo off
-e:\tools\Python22\python.exe e:\PROJECTS\wx\wxPython\scripts\img2py %1 %2 %3 %4 %5 %6 %7 %8 %9
+E:\TOOLS\PYTHON22\PYTHON.EXE C:\PROJECTS\wx\wxPython\scripts\img2py %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/wxPython/scripts/img2xpm.bat b/wxPython/scripts/img2xpm.bat
index 45bff43e11..560981e8c9 100755
--- a/wxPython/scripts/img2xpm.bat
+++ b/wxPython/scripts/img2xpm.bat
@@ -1,3 +1,3 @@
@echo off
-e:\tools\Python22\python.exe e:\PROJECTS\wx\wxPython\scripts\img2xpm %1 %2 %3 %4 %5 %6 %7 %8 %9
+E:\TOOLS\PYTHON22\PYTHON.EXE C:\PROJECTS\wx\wxPython\scripts\img2xpm %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/wxPython/scripts/pyalacarte b/wxPython/scripts/pyalacarte
new file mode 100755
index 0000000000..8ce50e1b22
--- /dev/null
+++ b/wxPython/scripts/pyalacarte
@@ -0,0 +1,4 @@
+#!/usr/bin/env python
+
+from wx.py.PyAlaCarte import main
+main()
diff --git a/wxPython/scripts/pyalacarte.bat b/wxPython/scripts/pyalacarte.bat
new file mode 100755
index 0000000000..a3936d841f
--- /dev/null
+++ b/wxPython/scripts/pyalacarte.bat
@@ -0,0 +1,3 @@
+@echo off
+
+start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\pyalacarte %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/wxPython/scripts/pyalamode b/wxPython/scripts/pyalamode
new file mode 100755
index 0000000000..ac3abdc335
--- /dev/null
+++ b/wxPython/scripts/pyalamode
@@ -0,0 +1,4 @@
+#!/usr/bin/env python
+
+from wx.py.PyAlaMode import main
+main()
diff --git a/wxPython/scripts/pyalamode.bat b/wxPython/scripts/pyalamode.bat
new file mode 100755
index 0000000000..8a0b1d33b7
--- /dev/null
+++ b/wxPython/scripts/pyalamode.bat
@@ -0,0 +1,3 @@
+@echo off
+
+start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\pyalamode %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/wxPython/scripts/pycrust b/wxPython/scripts/pycrust
index e07058e8e2..2c1aec1121 100755
--- a/wxPython/scripts/pycrust
+++ b/wxPython/scripts/pycrust
@@ -1,4 +1,4 @@
#!/usr/bin/env python
-from wxPython.lib.PyCrust.PyCrustApp import main
+from wx.py.PyCrust import main
main()
diff --git a/wxPython/scripts/pycrust.bat b/wxPython/scripts/pycrust.bat
index a2fc4f3416..d3e9e0bb6b 100755
--- a/wxPython/scripts/pycrust.bat
+++ b/wxPython/scripts/pycrust.bat
@@ -1,3 +1,3 @@
@echo off
-start e:\tools\Python22\pythonw.exe e:\PROJECTS\wx\wxPython\scripts\pycrust %1 %2 %3 %4 %5 %6 %7 %8 %9
+start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\pycrust %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/wxPython/scripts/pycwrap b/wxPython/scripts/pycwrap
deleted file mode 100755
index 911c5ec778..0000000000
--- a/wxPython/scripts/pycwrap
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env python
-
-from wxPython.lib.PyCrust.wrap import main
-import sys, os
-
-sys.path.insert(0, os.curdir)
-main(sys.argv)
diff --git a/wxPython/scripts/pycwrap.bat b/wxPython/scripts/pycwrap.bat
deleted file mode 100755
index 40562b5629..0000000000
--- a/wxPython/scripts/pycwrap.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-@echo off
-
-start e:\tools\Python22\pythonw.exe e:\PROJECTS\wx\wxPython\scripts\pycwrap %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/wxPython/scripts/pyshell b/wxPython/scripts/pyshell
index ee9e9228b7..30972b58c4 100755
--- a/wxPython/scripts/pyshell
+++ b/wxPython/scripts/pyshell
@@ -1,4 +1,4 @@
#!/usr/bin/env python
-from wxPython.lib.PyCrust.PyShellApp import main
+from wx.py.PyShell import main
main()
diff --git a/wxPython/scripts/pyshell.bat b/wxPython/scripts/pyshell.bat
index fff21cd258..e9f0031dd9 100755
--- a/wxPython/scripts/pyshell.bat
+++ b/wxPython/scripts/pyshell.bat
@@ -1,3 +1,3 @@
@echo off
-start e:\tools\Python22\pythonw.exe e:\PROJECTS\wx\wxPython\scripts\pyshell %1 %2 %3 %4 %5 %6 %7 %8 %9
+start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\pyshell %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/wxPython/scripts/pywrap b/wxPython/scripts/pywrap
new file mode 100755
index 0000000000..3bd7ef1f84
--- /dev/null
+++ b/wxPython/scripts/pywrap
@@ -0,0 +1,4 @@
+#!/usr/bin/env python
+
+from wx.py.PyWrap import main
+main()
diff --git a/wxPython/scripts/pywrap.bat b/wxPython/scripts/pywrap.bat
new file mode 100755
index 0000000000..552a7c8d79
--- /dev/null
+++ b/wxPython/scripts/pywrap.bat
@@ -0,0 +1,3 @@
+@echo off
+
+start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\pywrap %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/wxPython/scripts/xrced.bat b/wxPython/scripts/xrced.bat
index 2bfdd300cb..04f30b1880 100755
--- a/wxPython/scripts/xrced.bat
+++ b/wxPython/scripts/xrced.bat
@@ -1,3 +1,3 @@
@echo off
-start e:\tools\Python22\pythonw.exe e:\PROJECTS\wx\wxPython\scripts\xrced %1 %2 %3 %4 %5 %6 %7 %8 %9
+start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\xrced %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/wxPython/setup.py b/wxPython/setup.py
index 44ee2e1359..dc52ba0d25 100755
--- a/wxPython/setup.py
+++ b/wxPython/setup.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
#----------------------------------------------------------------------
-import sys, os, glob
+import sys, os, glob, fnmatch
from distutils.core import setup, Extension
from distutils.file_util import copy_file
from distutils.dir_util import mkpath
@@ -13,7 +13,12 @@ from distutils.command.install_data import install_data
# flags and values that affect this script
#----------------------------------------------------------------------
-VERSION = "2.5.0p1"
+VER_MAJOR = 2 # The first three must match wxWindows
+VER_MINOR = 5
+VER_RELEASE = 0
+VER_SUBREL = 0 # wxPython release num for x.y.z release of wxWindows
+VER_FLAGS = "p1" # release flags, such as prerelease num, unicode, etc.
+
DESCRIPTION = "Cross platform GUI toolkit for Python"
AUTHOR = "Robin Dunn"
AUTHOR_EMAIL = "Robin Dunn "
@@ -201,7 +206,7 @@ def Verify_WX_CONFIG():
uf = 'u'
else:
uf = ''
- ver2 = VERSION[:3]
+ ver2 = "%s.%s" % (VER_MAJOR, VER_MINOR)
WX_CONFIG = 'wx%s%s%s-%s-config' % (WXPORT, uf, df, ver2)
searchpath = os.environ["PATH"]
@@ -295,6 +300,24 @@ def build_locale_list(srcdir):
return file_list
+def find_data_files(srcdir, *wildcards):
+ # get a list of all files under the srcdir matching wildcards,
+ # returned in a format to be used for install_data
+
+ def walk_helper(arg, dirname, files):
+ names = []
+ lst, wildcards = arg
+ for wc in wildcards:
+ for f in files:
+ filename = opj(dirname, f)
+ if fnmatch.fnmatch(filename, wc) and not os.path.isdir(filename):
+ names.append(filename)
+ if names:
+ lst.append( (dirname, names ) )
+
+ file_list = []
+ os.path.walk(srcdir, walk_helper, (file_list, wildcards))
+ return file_list
@@ -381,7 +404,7 @@ if os.name == 'nt':
lflags = None
# Other MSVC flags...
- # To bad I don't remember why I was playing with these, can they be removed?
+ # Too bad I don't remember why I was playing with these, can they be removed?
if FINAL:
pass #cflags = cflags + ['/O1']
elif HYBRID :
@@ -482,22 +505,38 @@ else:
#----------------------------------------------------------------------
-# post platform setup checks and tweaks
+# post platform setup checks and tweaks, create the full version string
#----------------------------------------------------------------------
if UNICODE:
BUILD_BASE = BUILD_BASE + '.unicode'
- VERSION = VERSION + 'u'
+ VER_FLAGS += 'u'
+VERSION = "%s.%s.%s.%s%s" % (VER_MAJOR, VER_MINOR, VER_RELEASE,
+ VER_SUBREL, VER_FLAGS)
+
#----------------------------------------------------------------------
-# Check if the version file needs updated
+# Update the version file
#----------------------------------------------------------------------
-##if IN_CVS_TREE and newer('setup.py', 'src/__version__.py'):
+# Unconditionally updated since the version string can change based
+# on the UNICODE flag
+open('src/__version__.py', 'w').write("""\
+# This file was generated by setup.py...
+
+wxVERSION_STRING = '%(VERSION)s'
+wxMAJOR_VERSION = %(VER_MAJOR)s
+wxMINOR_VERSION = %(VER_MINOR)s
+wxRELEASE_VERSION = %(VER_RELEASE)s
+wxSUBREL_VERSION = %(VER_SUBREL)s
+
+wxVERSION = (wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_VERSION,
+ wxSUBREL_VERSION, '%(VER_FLAGS)s')
+
+wxRELEASE_NUMBER = wxRELEASE_VERSION # for compatibility
+""" % globals())
-# Always do it since the version string can change based on the UNICODE flag
-open('src/__version__.py', 'w').write("ver = '%s'\n" % VERSION)
@@ -787,7 +826,11 @@ if BUILD_STC:
ext = Extension('stc_c',
- ['%s/scintilla/src/AutoComplete.cxx' % STCLOC,
+ ['%s/PlatWX.cpp' % STCLOC,
+ '%s/ScintillaWX.cpp' % STCLOC,
+ '%s/stc.cpp' % STCLOC,
+
+ '%s/scintilla/src/AutoComplete.cxx' % STCLOC,
'%s/scintilla/src/CallTip.cxx' % STCLOC,
'%s/scintilla/src/CellBuffer.cxx' % STCLOC,
'%s/scintilla/src/ContractionState.cxx' % STCLOC,
@@ -806,31 +849,10 @@ if BUILD_STC:
'%s/scintilla/src/UniConversion.cxx' % STCLOC,
'%s/scintilla/src/ViewStyle.cxx' % STCLOC,
'%s/scintilla/src/WindowAccessor.cxx' % STCLOC,
-
- '%s/scintilla/src/LexAda.cxx' % STCLOC,
- '%s/scintilla/src/LexAVE.cxx' % STCLOC,
- '%s/scintilla/src/LexBaan.cxx' % STCLOC,
- '%s/scintilla/src/LexBullant.cxx' % STCLOC,
- '%s/scintilla/src/LexCPP.cxx' % STCLOC,
- '%s/scintilla/src/LexConf.cxx' % STCLOC,
- '%s/scintilla/src/LexCrontab.cxx' % STCLOC,
- '%s/scintilla/src/LexEiffel.cxx' % STCLOC,
- '%s/scintilla/src/LexHTML.cxx' % STCLOC,
- '%s/scintilla/src/LexLisp.cxx' % STCLOC,
- '%s/scintilla/src/LexLua.cxx' % STCLOC,
- '%s/scintilla/src/LexMatlab.cxx' % STCLOC,
- '%s/scintilla/src/LexOthers.cxx' % STCLOC,
- '%s/scintilla/src/LexPascal.cxx' % STCLOC,
- '%s/scintilla/src/LexPerl.cxx' % STCLOC,
- '%s/scintilla/src/LexPython.cxx' % STCLOC,
- '%s/scintilla/src/LexRuby.cxx' % STCLOC,
- '%s/scintilla/src/LexSQL.cxx' % STCLOC,
- '%s/scintilla/src/LexVB.cxx' % STCLOC,
-
- '%s/PlatWX.cpp' % STCLOC,
- '%s/ScintillaWX.cpp' % STCLOC,
- '%s/stc.cpp' % STCLOC,
- ] + swig_sources,
+ '%s/scintilla/src/XPM.cxx' % STCLOC,
+ ]
+ + glob.glob('%s/scintilla/src/Lex*.cxx' % STCLOC)
+ + swig_sources,
include_dirs = stc_includes,
define_macros = stc_defines,
@@ -903,55 +925,17 @@ if BUILD_XRC:
contrib_copy_tree(opj(CTRB_INC, 'xrc'), opj(XMLINC, 'wx/xrc'))
contrib_copy_tree(opj(CTRB_SRC, 'xrc'), XMLLOC)
- ext = Extension('xrcc', ['%s/expat/xmlparse/xmlparse.c' % XMLLOC,
- '%s/expat/xmltok/xmlrole.c' % XMLLOC,
- '%s/expat/xmltok/xmltok.c' % XMLLOC,
-
- '%s/xh_bmp.cpp' % XMLLOC,
- '%s/xh_bmpbt.cpp' % XMLLOC,
- '%s/xh_bttn.cpp' % XMLLOC,
- '%s/xh_cald.cpp' % XMLLOC,
- '%s/xh_chckb.cpp' % XMLLOC,
-
- '%s/xh_chckl.cpp' % XMLLOC,
- '%s/xh_choic.cpp' % XMLLOC,
- '%s/xh_combo.cpp' % XMLLOC,
- '%s/xh_dlg.cpp' % XMLLOC,
- '%s/xh_frame.cpp' % XMLLOC,
-
- '%s/xh_gauge.cpp' % XMLLOC,
- '%s/xh_gdctl.cpp' % XMLLOC,
- '%s/xh_html.cpp' % XMLLOC,
- '%s/xh_listb.cpp' % XMLLOC,
- '%s/xh_listc.cpp' % XMLLOC,
- '%s/xh_menu.cpp' % XMLLOC,
-
- '%s/xh_notbk.cpp' % XMLLOC,
- '%s/xh_panel.cpp' % XMLLOC,
- '%s/xh_radbt.cpp' % XMLLOC,
- '%s/xh_radbx.cpp' % XMLLOC,
- '%s/xh_scrol.cpp' % XMLLOC,
- '%s/xh_scwin.cpp' % XMLLOC,
-
- '%s/xh_sizer.cpp' % XMLLOC,
- '%s/xh_slidr.cpp' % XMLLOC,
- '%s/xh_spin.cpp' % XMLLOC,
- '%s/xh_split.cpp' % XMLLOC,
- '%s/xh_stbmp.cpp' % XMLLOC,
- '%s/xh_stbox.cpp' % XMLLOC,
-
- '%s/xh_stlin.cpp' % XMLLOC,
- '%s/xh_sttxt.cpp' % XMLLOC,
- '%s/xh_text.cpp' % XMLLOC,
- '%s/xh_toolb.cpp' % XMLLOC,
- '%s/xh_tree.cpp' % XMLLOC,
-
- '%s/xh_unkwn.cpp' % XMLLOC,
- '%s/xml.cpp' % XMLLOC,
- '%s/xmlres.cpp' % XMLLOC,
- '%s/xmlrsall.cpp' % XMLLOC,
+ ext = Extension('xrcc',
+ ['%s/expat/xmlparse/xmlparse.c' % XMLLOC,
+ '%s/expat/xmltok/xmlrole.c' % XMLLOC,
+ '%s/expat/xmltok/xmltok.c' % XMLLOC,
- ] + swig_sources,
+ ] + glob.glob('%s/xh_*.cpp' % XMLLOC) +
+
+ [ '%s/xml.cpp' % XMLLOC,
+ '%s/xmlres.cpp' % XMLLOC,
+ '%s/xmlrsall.cpp' % XMLLOC,
+ ] + swig_sources,
include_dirs = xmlres_includes,
define_macros = defines,
@@ -992,11 +976,14 @@ if BUILD_GIZMOS:
contrib_copy_tree(opj(CTRB_SRC, 'gizmos'), GIZMOLOC)
ext = Extension('gizmosc', [
- '%s/dynamicsash.cpp' % GIZMOLOC,
- '%s/editlbox.cpp' % GIZMOLOC,
- #'%s/multicell.cpp' % GIZMOLOC,
- '%s/splittree.cpp' % GIZMOLOC,
- '%s/ledctrl.cpp' % GIZMOLOC,
+ '%s/dynamicsash.cpp' % GIZMOLOC,
+ '%s/editlbox.cpp' % GIZMOLOC,
+ '%s/splittree.cpp' % GIZMOLOC,
+ '%s/ledctrl.cpp' % GIZMOLOC,
+ #'%s/multicell.cpp' % GIZMOLOC,
+
+ '%s/treelistctrl.cpp' % location,
+
] + swig_sources,
include_dirs = gizmos_includes,
@@ -1172,15 +1159,16 @@ else:
opj('scripts/xrced'),
opj('scripts/pyshell'),
opj('scripts/pycrust'),
- opj('scripts/pycwrap'),
+ opj('scripts/pywrap'),
+ opj('scripts/pywrap'),
+ opj('scripts/pyalacarte'),
+ opj('scripts/pyalamode'),
]
-DATA_FILES.append( ('wxPython/tools/XRCed', glob.glob('wxPython/tools/XRCed/*.txt') +
- [ 'wxPython/tools/XRCed/xrced.xrc']))
-
-DATA_FILES.append( ('wxPython/lib/PyCrust', glob.glob('wxPython/lib/PyCrust/*.txt') +
- glob.glob('wxPython/lib/PyCrust/*.ico')))
+DATA_FILES += find_data_files('wxPython/tools/XRCed', '*.txt', '*.xrc')
+DATA_FILES += find_data_files('wxPython/py', '*.txt', '*.ico', '*.css', '*.html')
+DATA_FILES += find_data_files('wx', '*.txt', '*.css', '*.html')
#----------------------------------------------------------------------
@@ -1198,15 +1186,25 @@ if __name__ == "__main__":
url = URL,
license = LICENSE,
- packages = [PKGDIR,
- PKGDIR+'.lib',
- PKGDIR+'.lib.colourchooser',
- PKGDIR+'.lib.editor',
- PKGDIR+'.lib.mixins',
- PKGDIR+'.lib.PyCrust',
- PKGDIR+'.lib.PyCrust.wxd',
- PKGDIR+'.tools',
- PKGDIR+'.tools.XRCed',
+ packages = ['wxPython',
+ 'wxPython.lib',
+ 'wxPython.lib.colourchooser',
+ 'wxPython.lib.editor',
+ 'wxPython.lib.mixins',
+ 'wxPython.lib.PyCrust',
+ 'wxPython.py',
+ 'wxPython.py.wxd',
+ 'wxPython.tools',
+ 'wxPython.tools.XRCed',
+
+ 'wx',
+ 'wx.lib',
+ 'wx.lib.colourchooser',
+ 'wx.lib.editor',
+ 'wx.lib.mixins',
+ 'wx.py',
+ 'wx.tools',
+ 'wx.tools.XRCed',
],
ext_package = PKGDIR,
diff --git a/wxPython/src/__init__.py b/wxPython/src/__init__.py
index 888f664d07..721ee6cb2b 100644
--- a/wxPython/src/__init__.py
+++ b/wxPython/src/__init__.py
@@ -12,13 +12,12 @@
#----------------------------------------------------------------------------
import __version__
-__version__ = __version__.ver
+__version__ = __version__.wxVERSION_STRING
# Ensure the main extension module is loaded, in case the add-on modules
# (such as utils,) are used standalone.
import wxc
-wxc.__version__ = __version__
#----------------------------------------------------------------------------
diff --git a/wxPython/src/__version__.py b/wxPython/src/__version__.py
index ccace370f1..d253ef4abb 100644
--- a/wxPython/src/__version__.py
+++ b/wxPython/src/__version__.py
@@ -1 +1,12 @@
-ver = '2.5.0p1'
+# This file was generated by setup.py...
+
+wxVERSION_STRING = '2.5.0.0p1'
+wxMAJOR_VERSION = 2
+wxMINOR_VERSION = 5
+wxRELEASE_VERSION = 0
+wxSUBREL_VERSION = 0
+
+wxVERSION = (wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_VERSION,
+ wxSUBREL_VERSION, 'p1')
+
+wxRELEASE_NUMBER = wxRELEASE_VERSION # for compatibility
diff --git a/wxPython/src/_defs.i b/wxPython/src/_defs.i
index 8790c0705d..647352d18b 100644
--- a/wxPython/src/_defs.i
+++ b/wxPython/src/_defs.i
@@ -222,6 +222,7 @@ enum {
wxFRAME_FLOAT_ON_PARENT,
wxFRAME_NO_WINDOW_MENU,
wxFRAME_NO_TASKBAR,
+ wxFRAME_SHAPED,
wxED_CLIENT_MARGIN,
wxED_BUTTONS_BOTTOM,
@@ -492,6 +493,7 @@ enum {
wxEXPAND,
wxNB_FIXEDWIDTH,
+ wxNB_TOP,
wxNB_LEFT,
wxNB_RIGHT,
wxNB_BOTTOM,
diff --git a/wxPython/src/_extras.py b/wxPython/src/_extras.py
index 99f9f70dab..1cc71d3a8b 100644
--- a/wxPython/src/_extras.py
+++ b/wxPython/src/_extras.py
@@ -517,10 +517,10 @@ def EVT_SASH_DRAGGED_RANGE(win, id1, id2, func):
win.Connect(id1, id2, wxEVT_SASH_DRAGGED, func)
def EVT_QUERY_LAYOUT_INFO(win, func):
- win.Connect(-1, -1, wxEVT_EVT_QUERY_LAYOUT_INFO, func)
+ win.Connect(-1, -1, wxEVT_QUERY_LAYOUT_INFO, func)
def EVT_CALCULATE_LAYOUT(win, func):
- win.Connect(-1, -1, wxEVT_EVT_CALCULATE_LAYOUT, func)
+ win.Connect(-1, -1, wxEVT_CALCULATE_LAYOUT, func)
#wxSplitterWindow
@@ -610,6 +610,8 @@ wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
# workarounds for bad wxRTTI names
__wxPyPtrTypeMap['wxGauge95'] = 'wxGauge'
+__wxPyPtrTypeMap['wxSlider95'] = 'wxSlider'
+__wxPyPtrTypeMap['wxStatusBar95'] = 'wxStatusBar'
@@ -647,6 +649,8 @@ if wxPlatform == "__WXGTK__":
except:
pass
+# On MSW add the directory where the wxWindows catalogs were installed
+# to the default catalog path.
if wxPlatform == "__WXMSW__":
import os
localedir = os.path.join(os.path.split(__file__)[0], "locale")
@@ -654,15 +658,17 @@ if wxPlatform == "__WXMSW__":
del os
#----------------------------------------------------------------------
-# wxWindows version numbers. wxPython version is in __version__.
+# Load version numbers from __version__... Ensure that major and minor
+# versions are the same for both wxPython and wxWindows.
-wxMAJOR_VERSION = wxc.wxMAJOR_VERSION
-wxMINOR_VERSION = wxc.wxMINOR_VERSION
-wxRELEASE_NUMBER = wxc.wxRELEASE_NUMBER
-wxVERSION_STRING = wxc.wxVERSION_STRING
-wxVERSION_NUMBER = wxc.wxVERSION_NUMBER
+from wxPython.__version__ import *
+__version__ = wxVERSION_STRING
-wxVERSION = (wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER)
+assert wxMAJOR_VERSION == wxc.wxMAJOR_VERSION, "wxPython/wxWindows version mismatch"
+assert wxMINOR_VERSION == wxc.wxMINOR_VERSION, "wxPython/wxWindows version mismatch"
+if wxRELEASE_VERSION != wxc.wxRELEASE_VERSION:
+ import warnings
+ warnings.warn("wxPython/wxWindows release number mismatch")
#----------------------------------------------------------------------
@@ -732,7 +738,7 @@ def wxCallAfter(callable, *args, **kw):
if _wxCallAfterId is None:
_wxCallAfterId = wxNewEventType()
app.Connect(-1, -1, _wxCallAfterId,
- lambda event: apply(event.callable, event.args, event.kw) )
+ lambda event: event.callable(*event.args, **event.kw) )
evt = wxPyEvent()
evt.SetEventType(_wxCallAfterId)
evt.callable = callable
@@ -740,8 +746,97 @@ def wxCallAfter(callable, *args, **kw):
evt.kw = kw
wxPostEvent(app, evt)
-# an alias
-wxRunLater = wxCallAfter
+
+#----------------------------------------------------------------------
+
+
+class wxFutureCall:
+ """
+ A convenience class for wxTimer, that calls the given callable
+ object once after the given amount of milliseconds, passing any
+ positional or keyword args. The return value of the callable is
+ availbale after it has been run with the GetResult method.
+
+ If you don't need to get the return value or restart the timer
+ then there is no need to hold a reference to this object. It will
+ hold a reference to itself while the timer is running (the timer
+ has a reference to self.Notify) but the cycle will be broken when
+ the timer completes, automatically cleaning up the wxFutureCall
+ object.
+ """
+ def __init__(self, millis, callable, *args, **kwargs):
+ self.millis = millis
+ self.callable = callable
+ self.SetArgs(*args, **kwargs)
+ self.runCount = 0
+ self.hasRun = False
+ self.result = None
+ self.timer = None
+ self.Start()
+
+ def __del__(self):
+ self.Stop()
+
+
+ def Start(self, millis=None):
+ """
+ (Re)start the timer
+ """
+ self.hasRun = False
+ if millis is not None:
+ self.millis = millis
+ self.Stop()
+ self.timer = wxPyTimer(self.Notify)
+ self.timer.Start(self.millis, wxTIMER_ONE_SHOT)
+ Restart = Start
+
+
+ def Stop(self):
+ """
+ Stop and destroy the timer.
+ """
+ if self.timer is not None:
+ self.timer.Stop()
+ self.timer = None
+
+
+ def GetInterval(self):
+ if self.timer is not None:
+ return self.timer.GetInterval()
+ else:
+ return 0
+
+
+ def IsRunning(self):
+ return self.timer is not None and self.timer.IsRunning()
+
+
+ def SetArgs(self, *args, **kwargs):
+ """
+ (Re)set the args passed to the callable object. This is
+ useful in conjunction with Restart if you want to schedule a
+ new call to the same callable object but with different
+ parameters.
+ """
+ self.args = args
+ self.kwargs = kwargs
+
+ def HasRun(self):
+ return self.hasRun
+
+ def GetResult(self):
+ return self.result
+
+ def Notify(self):
+ """
+ The timer has expired so call the callable.
+ """
+ if self.callable and getattr(self.callable, 'im_self', True):
+ self.runCount += 1
+ self.result = self.callable(*self.args, **self.kwargs)
+ self.hasRun = True
+ wxCallAfter(self.Stop)
+
#----------------------------------------------------------------------
@@ -771,6 +866,35 @@ class _wxPyDeadObject:
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 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,
+ style=wxTAB_TRAVERSAL, name="panel"):
+ wxPanel.__init__(self, parent, id, pos, size, style, name)
+ self.child = None
+ EVT_SIZE(self, self.OnSize)
+ def OnSize(self, evt):
+ if self.child is None:
+ children = self.GetChildren()
+ if len(children):
+ self.child = children[0]
+ if self.child:
+ self.child.SetPosition((0,0))
+ self.child.SetSize(self.GetSize())
+
+
#----------------------------------------------------------------------
#----------------------------------------------------------------------
@@ -825,6 +949,18 @@ class wxApp(wxPyApp):
def __init__(self, redirect=_defRedirect, filename=None, useBestVisual=False):
wxPyApp.__init__(self)
+
+ if wx.wxPlatform == "__WXMAC__":
+ try:
+ import MacOS
+ if not MacOS.WMAvailable():
+ print """This program needs access to the screen. Please run with
+'pythonw', not 'python', and only when you are logged in on the main display
+of your Mac."""
+ sys.exit(1)
+ except:
+ pass
+
self.stdioWin = None
self.saveStdio = (sys.stdout, sys.stderr)
@@ -904,7 +1040,7 @@ class wxPyWidgetTester(wxApp):
return True
def SetWidget(self, widgetClass, *args):
- w = apply(widgetClass, (self.frame,) + args)
+ w = widgetClass(self.frame, *args)
self.frame.Show(True)
#----------------------------------------------------------------------------
diff --git a/wxPython/src/controls.i b/wxPython/src/controls.i
index c3f57ddb65..f6146b9e27 100644
--- a/wxPython/src/controls.i
+++ b/wxPython/src/controls.i
@@ -323,7 +323,7 @@ public:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxValidator& val = wxDefaultValidator,
+ const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxPyCheckBoxNameStr);
%name(wxPreCheckBox)wxCheckBox();
@@ -331,7 +331,7 @@ public:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxValidator& val = wxDefaultValidator,
+ const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxPyCheckBoxNameStr);
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
@@ -381,11 +381,11 @@ public:
//----------------------------------------------------------------------
-// wxGTK's wxComboBox doesn't derive from wxChoice like wxMSW, or
-// even wxControlWithItems, so we have to duplicate the methods
-// here...
+// wxGTK's wxComboBox doesn't derive from wxChoice like wxMSW, or even
+// wxControlWithItems, so we have to duplicate the methods here...
+// wxMac's inheritace is weird too so we'll fake it with this one too.
-#ifdef __WXGTK__
+#ifndef __WXMSW__
class wxComboBox : public wxControl
{
public:
@@ -477,8 +477,8 @@ public:
-#else // For all but wxGTK
-
+#else
+// MSW's version derives from wxChoice
class wxComboBox : public wxChoice {
public:
@@ -1131,7 +1131,14 @@ public:
int GetValue();
void SetRange(int min, int max);
void SetValue(int value);
-
+#ifdef __WXGTK__
+ %addmethods {
+ void SetSelection(long from, long to) {
+ }
+ }
+#else
+ void SetSelection(long from, long to);
+#endif
};
diff --git a/wxPython/src/controls2.i b/wxPython/src/controls2.i
index 323166e3a8..67f87c0475 100644
--- a/wxPython/src/controls2.i
+++ b/wxPython/src/controls2.i
@@ -21,6 +21,8 @@
#include
#include
#include
+
+#include "pytree.h"
%}
//----------------------------------------------------------------------
@@ -454,7 +456,7 @@ public:
} // The OOR typemaps don't know what to do with the %new, so fix it up.
%pragma(python) addtoclass = "
def GetColumn(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetColumn,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetColumn(self, *_args, **_kwargs)
if val is not None: val.thisown = 1
return val
"
@@ -493,7 +495,7 @@ public:
} // The OOR typemaps don't know what to do with the %new, so fix it up.
%pragma(python) addtoclass = "
def GetItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetItem(self, *_args, **_kwargs)
if val is not None: val.thisown = 1
return val
"
@@ -1003,7 +1005,11 @@ public:
wxTreeItemId();
~wxTreeItemId();
bool IsOk();
- %pragma(python) addtoclass = "Ok = IsOk"
+ %pragma(python) addtoclass = "
+ Ok = IsOk
+ def __nonzero__(self):
+ return self.IsOk()
+"
%addmethods {
int __cmp__(wxTreeItemId* other) {
@@ -1015,40 +1021,6 @@ public:
-%{
-class wxPyTreeItemData : public wxTreeItemData {
-public:
- wxPyTreeItemData(PyObject* obj = NULL) {
- if (obj == NULL)
- obj = Py_None;
- Py_INCREF(obj);
- m_obj = obj;
- }
-
- ~wxPyTreeItemData() {
- wxPyBeginBlockThreads();
- Py_DECREF(m_obj);
- wxPyEndBlockThreads();
- }
-
- PyObject* GetData() {
- Py_INCREF(m_obj);
- return m_obj;
- }
-
- void SetData(PyObject* obj) {
- wxPyBeginBlockThreads();
- Py_DECREF(m_obj);
- wxPyEndBlockThreads();
- m_obj = obj;
- Py_INCREF(obj);
- }
-
- PyObject* m_obj;
-};
-%}
-
-
%name(wxTreeItemData) class wxPyTreeItemData : public wxObject {
public:
@@ -1075,6 +1047,12 @@ public:
%pragma(python) addtoclass = "GetCode = GetKeyCode"
const wxString& GetLabel();
bool IsEditCancelled() const;
+ void SetItem(const wxTreeItemId& item);
+ void SetOldItem(const wxTreeItemId& item);
+ void SetPoint(const wxPoint& pt);
+ void SetKeyEvent(const wxKeyEvent& evt);
+ void SetLabel(const wxString& label);
+ void SetEditCanceled(bool editCancelled);
};
@@ -1134,19 +1112,19 @@ IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
%name(wxTreeCtrl)class wxPyTreeCtrl : public wxControl {
public:
wxPyTreeCtrl(wxWindow *parent, wxWindowID id = -1,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxPy_TreeCtrlNameStr);
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTR_DEFAULT_STYLE,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxPy_TreeCtrlNameStr);
%name(wxPreTreeCtrl)wxPyTreeCtrl();
bool Create(wxWindow *parent, wxWindowID id = -1,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxPy_TreeCtrlNameStr);
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxTR_DEFAULT_STYLE,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxPy_TreeCtrlNameStr);
void _setCallbackInfo(PyObject* self, PyObject* _class);
%pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxTreeCtrl)"
@@ -1340,7 +1318,7 @@ public:
if (self->GetBoundingRect(item, rect, textOnly)) {
wxPyBeginBlockThreads();
wxRect* r = new wxRect(rect);
- PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"));
+ PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), 1);
wxPyEndBlockThreads();
return val;
}
@@ -1355,17 +1333,17 @@ public:
%pragma(python) addtoclass = "
# Redefine some methods that SWIG gets a bit confused on...
def GetFirstChild(self, *_args, **_kwargs):
- val1,val2 = apply(controls2c.wxTreeCtrl_GetFirstChild,(self,) + _args, _kwargs)
+ val1,val2 = controls2c.wxTreeCtrl_GetFirstChild(self, *_args, **_kwargs)
val1 = wxTreeItemIdPtr(val1)
val1.thisown = 1
return (val1,val2)
def GetNextChild(self, *_args, **_kwargs):
- val1,val2 = apply(controls2c.wxTreeCtrl_GetNextChild,(self,) + _args, _kwargs)
+ val1,val2 = controls2c.wxTreeCtrl_GetNextChild(self, *_args, **_kwargs)
val1 = wxTreeItemIdPtr(val1)
val1.thisown = 1
return (val1,val2)
def HitTest(self, *_args, **_kwargs):
- val1, val2 = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs)
+ val1, val2 = controls2c.wxTreeCtrl_HitTest(self, *_args, **_kwargs)
val1 = wxTreeItemIdPtr(val1)
val1.thisown = 1
return (val1,val2)
@@ -1458,6 +1436,9 @@ public:
wxTreeCtrl* GetTreeCtrl() const;
wxDirFilterListCtrl* GetFilterListCtrl() const;
+ // Collapse & expand the tree, thus re-creating it from scratch:
+ void ReCreateTree();
+
// //// Helpers
// void SetupSections();
// // Parse the filter into an array of filters and an array of descriptions
diff --git a/wxPython/src/drawlist.cpp b/wxPython/src/drawlist.cpp
index cba7952b24..4c3e627708 100644
--- a/wxPython/src/drawlist.cpp
+++ b/wxPython/src/drawlist.cpp
@@ -35,7 +35,6 @@ PyObject* wxPyDrawXXXList(wxDC& dc, wxPyDrawListOp_t doDraw,
wxBrush* brush;
PyObject* obj;
PyObject* coords;
- int x1, x2, x3, x4;
int i = 0;
PyObject* retval;
diff --git a/wxPython/src/fonts.i b/wxPython/src/fonts.i
index 6e708d91ca..8137e23db8 100644
--- a/wxPython/src/fonts.i
+++ b/wxPython/src/fonts.i
@@ -374,6 +374,7 @@ public:
static wxFontEncoding GetDefaultEncoding();
static void SetDefaultEncoding(wxFontEncoding encoding);
+ %pragma(python) addtoclass = "def __nonzero__(self): return self.Ok()"
};
@@ -739,9 +740,9 @@ public:
%pragma(python) addtoclass = "
def Init(self, *_args, **_kwargs):
if type(_args[0]) in [type(''), type(u'')]:
- val = apply(self.Init1, _args, _kwargs)
+ val = self.Init1(*_args, **_kwargs)
else:
- val = apply(self.Init2, _args, _kwargs)
+ val = self.Init2(*_args, **_kwargs)
return val
"
@@ -969,6 +970,7 @@ public:
// equivalent encodings, regardless the platform, including itself.
static wxFontEncodingArray GetAllEquivalents(wxFontEncoding enc);
+ %pragma(python) addtoclass = "def __nonzero__(self): return self.IsOk()"
};
diff --git a/wxPython/src/gdi.i b/wxPython/src/gdi.i
index 8b6768eb57..6905b8133e 100644
--- a/wxPython/src/gdi.i
+++ b/wxPython/src/gdi.i
@@ -105,6 +105,7 @@ public:
void SetQuality(int q);
#endif
+ %pragma(python) addtoclass = "def __nonzero__(self): return self.Ok()"
};
@@ -233,6 +234,7 @@ public:
#endif
void CopyFromBitmap(const wxBitmap& bmp);
+ %pragma(python) addtoclass = "def __nonzero__(self): return self.Ok()"
};
@@ -302,9 +304,17 @@ public:
class wxCursor : public wxGDIObject
{
public:
-#ifdef __WXMSW__
- wxCursor(const wxString& cursorName, long flags, int hotSpotX=0, int hotSpotY=0);
+ %addmethods {
+ wxCursor(const wxString* cursorName, long flags, int hotSpotX=0, int hotSpotY=0) {
+#ifdef __WXGTK__
+ wxCHECK_MSG(FALSE, NULL,
+ wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
+#else
+ return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
#endif
+ }
+ }
+
~wxCursor();
// wxGDIImage methods
@@ -322,23 +332,34 @@ public:
void SetDepth(int d);
void SetSize(const wxSize& size);
#endif
+ %pragma(python) addtoclass = "def __nonzero__(self): return self.Ok()"
};
%name(wxStockCursor) %new wxCursor* wxPyStockCursor(int id);
-%{ // Alternate 'constructor'
+%new wxCursor* wxCursorFromImage(const wxImage& image);
+%new wxCursor* wxCursorFromBits(PyObject* bits, int width, int height,
+ int hotSpotX=-1, int hotSpotY=-1,
+ PyObject* maskBits=0);
+
+%{
wxCursor* wxPyStockCursor(int id) {
return new wxCursor(id);
}
-%}
-%new wxCursor* wxCursorFromImage(const wxImage& image);
-%{
wxCursor* wxCursorFromImage(const wxImage& image) {
- #ifndef __WXMAC__
return new wxCursor(image);
- #else
- return NULL;
- #endif
+ }
+
+ wxCursor* wxCursorFromBits(PyObject* bits, int width, int height,
+ int hotSpotX=-1, int hotSpotY=-1,
+ PyObject* maskBits=0) {
+ char* bitsbuf;
+ char* maskbuf = NULL;
+ int length;
+ PyString_AsStringAndSize(bits, &bitsbuf, &length);
+ if (maskBits)
+ PyString_AsStringAndSize(maskBits, &maskbuf, &length);
+ return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
}
%}
@@ -481,6 +502,8 @@ public:
wxBitmap* GetStipple();
void SetStipple(wxBitmap& stipple);
#endif
+
+ %pragma(python) addtoclass = "def __nonzero__(self): return self.Ok()"
};
@@ -554,6 +577,13 @@ public:
void SetColour(wxColour &colour);
void SetStipple(wxBitmap& bitmap);
void SetStyle(int style);
+
+#ifdef __WXMAC__
+ short GetMacTheme();
+ void SetMacTheme(short macThemeBrush);
+#endif
+
+ %pragma(python) addtoclass = "def __nonzero__(self): return self.Ok()"
};
@@ -713,6 +743,8 @@ public:
// See below for implementation
}
+ %pragma(python) addtoclass = "def __nonzero__(self): return self.Ok()"
+
#ifdef __WXMSW__
long GetHDC();
#endif
@@ -967,6 +999,7 @@ public:
const wxString& GetFileName() const { return m_filename; }
+ %pragma(python) addtoclass = "def __nonzero__(self): return self.Ok()"
};
// bool wxMakeMetaFilePlaceable(const wxString& filename,
@@ -993,6 +1026,8 @@ public:
int GetPixel(byte red, byte green, byte blue);
bool GetRGB(int pixel, byte* OUTPUT, byte* OUTPUT, byte* OUTPUT);
bool Ok();
+
+ %pragma(python) addtoclass = "def __nonzero__(self): return self.Ok()"
};
//---------------------------------------------------------------------------
@@ -1083,7 +1118,7 @@ public:
%name(XorRect)bool Xor(const wxRect& rect);
%name(XorRegion)bool Xor(const wxRegion& region);
- // Convert the region to a B&W bitmap with the black pixels being inside
+ // Convert the region to a B&W bitmap with the white pixels being inside
// the region.
wxBitmap ConvertToBitmap();
diff --git a/wxPython/src/grid.i b/wxPython/src/grid.i
index d78a22b050..7686ab6d1b 100644
--- a/wxPython/src/grid.i
+++ b/wxPython/src/grid.i
@@ -1042,7 +1042,7 @@ public:
wxColour GetBackgroundColour() const;
wxFont GetFont() const;
void GetAlignment(int *OUTPUT, int *OUTPUT) const;
- void GetSize(int *num_rows, int *num_cols) const;
+ void GetSize(int *OUTPUT, int *OUTPUT) const;
bool GetOverflow() const;
wxGridCellRenderer *GetRenderer(wxGrid* grid, int row, int col) const;
wxGridCellEditor *GetEditor(wxGrid* grid, int row, int col) const;
@@ -1727,8 +1727,8 @@ public:
wxColour GetCellTextColour( int row, int col );
wxFont GetDefaultCellFont();
wxFont GetCellFont( int row, int col );
- void GetDefaultCellAlignment( int *horiz, int *vert );
- void GetCellAlignment( int row, int col, int *horiz, int *vert );
+ void GetDefaultCellAlignment( int *OUTPUT, int *OUTPUT );
+ void GetCellAlignment( int row, int col, int *OUTPUT, int *OUTPUT );
bool GetDefaultCellOverflow();
bool GetCellOverflow( int row, int col );
void GetCellSize( int row, int col, int *OUTPUT, int *OUTPUT );
@@ -1767,6 +1767,11 @@ public:
void SetColMinimalWidth( int col, int width );
void SetRowMinimalHeight( int row, int width );
+ void SetColMinimalAcceptableWidth( int width );
+ void SetRowMinimalAcceptableHeight( int width );
+ int GetColMinimalAcceptableWidth() const;
+ int GetRowMinimalAcceptableHeight() const;
+
void SetDefaultCellBackgroundColour( const wxColour& );
void SetCellBackgroundColour( int row, int col, const wxColour& );
void SetDefaultCellTextColour( const wxColour& );
diff --git a/wxPython/src/gtk/calendar.py b/wxPython/src/gtk/calendar.py
index 355ee1bfa5..6dab932b4d 100644
--- a/wxPython/src/gtk/calendar.py
+++ b/wxPython/src/gtk/calendar.py
@@ -42,71 +42,71 @@ class wxCalendarDateAttrPtr :
self.this = this
self.thisown = 0
def SetTextColour(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_SetTextColour,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_SetTextColour(self, *_args, **_kwargs)
return val
def SetBackgroundColour(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_SetBackgroundColour,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_SetBackgroundColour(self, *_args, **_kwargs)
return val
def SetBorderColour(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_SetBorderColour,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_SetBorderColour(self, *_args, **_kwargs)
return val
def SetFont(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_SetFont,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_SetFont(self, *_args, **_kwargs)
return val
def SetBorder(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_SetBorder,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_SetBorder(self, *_args, **_kwargs)
return val
def SetHoliday(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_SetHoliday,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_SetHoliday(self, *_args, **_kwargs)
return val
def HasTextColour(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_HasTextColour,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_HasTextColour(self, *_args, **_kwargs)
return val
def HasBackgroundColour(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_HasBackgroundColour,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_HasBackgroundColour(self, *_args, **_kwargs)
return val
def HasBorderColour(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_HasBorderColour,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_HasBorderColour(self, *_args, **_kwargs)
return val
def HasFont(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_HasFont,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_HasFont(self, *_args, **_kwargs)
return val
def HasBorder(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_HasBorder,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_HasBorder(self, *_args, **_kwargs)
return val
def IsHoliday(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_IsHoliday,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_IsHoliday(self, *_args, **_kwargs)
return val
def GetTextColour(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_GetTextColour,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_GetTextColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetBackgroundColour(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_GetBackgroundColour,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_GetBackgroundColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetBorderColour(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_GetBorderColour,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_GetBorderColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetFont(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_GetFont,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_GetFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def GetBorder(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarDateAttr_GetBorder,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarDateAttr_GetBorder(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxCalendarDateAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxCalendarDateAttr(wxCalendarDateAttrPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(calendarc.new_wxCalendarDateAttr,_args,_kwargs)
+ self.this = calendarc.new_wxCalendarDateAttr(*_args,**_kwargs)
self.thisown = 1
def wxCalendarDateAttrBorder(*_args,**_kwargs):
- val = wxCalendarDateAttrPtr(apply(calendarc.new_wxCalendarDateAttrBorder,_args,_kwargs))
+ val = wxCalendarDateAttrPtr(calendarc.new_wxCalendarDateAttrBorder(*_args,**_kwargs))
val.thisown = 1
return val
@@ -116,17 +116,17 @@ class wxCalendarEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def GetDate(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarEvent_GetDate,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarEvent_GetDate(self, *_args, **_kwargs)
if val: val = wxDateTimePtr(val)
return val
def GetWeekDay(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarEvent_GetWeekDay,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarEvent_GetWeekDay(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxCalendarEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxCalendarEvent(wxCalendarEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(calendarc.new_wxCalendarEvent,_args,_kwargs)
+ self.this = calendarc.new_wxCalendarEvent(*_args,**_kwargs)
self.thisown = 1
@@ -137,108 +137,108 @@ class wxCalendarCtrlPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_Create,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_Create(self, *_args, **_kwargs)
return val
def SetDate(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetDate,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_SetDate(self, *_args, **_kwargs)
return val
def GetDate(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetDate,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_GetDate(self, *_args, **_kwargs)
if val: val = wxDateTimePtr(val)
return val
def SetLowerDateLimit(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetLowerDateLimit,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_SetLowerDateLimit(self, *_args, **_kwargs)
return val
def GetLowerDateLimit(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetLowerDateLimit,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_GetLowerDateLimit(self, *_args, **_kwargs)
if val: val = wxDateTimePtr(val)
return val
def SetUpperDateLimit(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetUpperDateLimit,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_SetUpperDateLimit(self, *_args, **_kwargs)
return val
def GetUpperDateLimit(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetUpperDateLimit,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_GetUpperDateLimit(self, *_args, **_kwargs)
if val: val = wxDateTimePtr(val)
return val
def SetDateRange(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetDateRange,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_SetDateRange(self, *_args, **_kwargs)
return val
def EnableYearChange(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_EnableYearChange,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_EnableYearChange(self, *_args, **_kwargs)
return val
def EnableMonthChange(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_EnableMonthChange,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_EnableMonthChange(self, *_args, **_kwargs)
return val
def EnableHolidayDisplay(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_EnableHolidayDisplay,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_EnableHolidayDisplay(self, *_args, **_kwargs)
return val
def SetHeaderColours(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetHeaderColours,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_SetHeaderColours(self, *_args, **_kwargs)
return val
def GetHeaderColourFg(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetHeaderColourFg,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_GetHeaderColourFg(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetHeaderColourBg(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetHeaderColourBg,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_GetHeaderColourBg(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetHighlightColours(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetHighlightColours,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_SetHighlightColours(self, *_args, **_kwargs)
return val
def GetHighlightColourFg(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetHighlightColourFg,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_GetHighlightColourFg(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetHighlightColourBg(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetHighlightColourBg,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_GetHighlightColourBg(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetHolidayColours(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetHolidayColours,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_SetHolidayColours(self, *_args, **_kwargs)
return val
def GetHolidayColourFg(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetHolidayColourFg,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_GetHolidayColourFg(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetHolidayColourBg(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetHolidayColourBg,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_GetHolidayColourBg(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetAttr(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_GetAttr,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_GetAttr(self, *_args, **_kwargs)
if val: val = wxCalendarDateAttrPtr(val)
return val
def SetAttr(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetAttr,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_SetAttr(self, *_args, **_kwargs)
return val
def SetHoliday(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_SetHoliday,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_SetHoliday(self, *_args, **_kwargs)
return val
def ResetAttr(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_ResetAttr,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_ResetAttr(self, *_args, **_kwargs)
return val
def HitTest(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_HitTest,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_HitTest(self, *_args, **_kwargs)
return val
def Enable(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_Enable,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_Enable(self, *_args, **_kwargs)
return val
def Show(self, *_args, **_kwargs):
- val = apply(calendarc.wxCalendarCtrl_Show,(self,) + _args, _kwargs)
+ val = calendarc.wxCalendarCtrl_Show(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxCalendarCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxCalendarCtrl(wxCalendarCtrlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(calendarc.new_wxCalendarCtrl,_args,_kwargs)
+ self.this = calendarc.new_wxCalendarCtrl(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreCalendarCtrl(*_args,**_kwargs):
- val = wxCalendarCtrlPtr(apply(calendarc.new_wxPreCalendarCtrl,_args,_kwargs))
+ val = wxCalendarCtrlPtr(calendarc.new_wxPreCalendarCtrl(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
diff --git a/wxPython/src/gtk/clip_dnd.py b/wxPython/src/gtk/clip_dnd.py
index d77b5da68d..a6a828354c 100644
--- a/wxPython/src/gtk/clip_dnd.py
+++ b/wxPython/src/gtk/clip_dnd.py
@@ -18,22 +18,22 @@ class wxDataFormatPtr :
except:
pass
def SetType(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataFormat_SetType,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataFormat_SetType(self, *_args, **_kwargs)
return val
def GetType(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataFormat_GetType,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataFormat_GetType(self, *_args, **_kwargs)
return val
def GetId(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataFormat_GetId,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataFormat_GetId(self, *_args, **_kwargs)
return val
def SetId(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataFormat_SetId,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataFormat_SetId(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDataFormat instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDataFormat(wxDataFormatPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxDataFormat,_args,_kwargs)
+ self.this = clip_dndc.new_wxDataFormat(*_args,**_kwargs)
self.thisown = 1
@@ -53,29 +53,29 @@ class wxDataObjectPtr :
except:
pass
def GetPreferredFormat(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataObject_GetPreferredFormat,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataObject_GetPreferredFormat(self, *_args, **_kwargs)
if val: val = wxDataFormatPtr(val) ; val.thisown = 1
return val
def GetFormatCount(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataObject_GetFormatCount,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataObject_GetFormatCount(self, *_args, **_kwargs)
return val
def GetAllFormats(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataObject_GetAllFormats,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataObject_GetAllFormats(self, *_args, **_kwargs)
return val
def GetDataHere(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataObject_GetDataHere,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataObject_GetDataHere(self, *_args, **_kwargs)
return val
def GetDataSize(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataObject_GetDataSize,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataObject_GetDataSize(self, *_args, **_kwargs)
return val
def SetData(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataObject_SetData,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataObject_SetData(self, *_args, **_kwargs)
return val
def IsSupportedFormat(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataObject_IsSupportedFormat,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataObject_IsSupportedFormat(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDataObject(wxDataObjectPtr):
def __init__(self,this):
self.this = this
@@ -88,17 +88,17 @@ class wxDataObjectSimplePtr(wxDataObjectPtr):
self.this = this
self.thisown = 0
def GetFormat(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataObjectSimple_GetFormat,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataObjectSimple_GetFormat(self, *_args, **_kwargs)
if val: val = wxDataFormatPtr(val)
return val
def SetFormat(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataObjectSimple_SetFormat,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataObjectSimple_SetFormat(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDataObjectSimple(wxDataObjectSimplePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxDataObjectSimple,_args,_kwargs)
+ self.this = clip_dndc.new_wxDataObjectSimple(*_args,**_kwargs)
self.thisown = 1
@@ -109,13 +109,13 @@ class wxPyDataObjectSimplePtr(wxDataObjectSimplePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxPyDataObjectSimple__setCallbackInfo,(self,) + _args, _kwargs)
+ val = clip_dndc.wxPyDataObjectSimple__setCallbackInfo(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyDataObjectSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyDataObjectSimple(wxPyDataObjectSimplePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxPyDataObjectSimple,_args,_kwargs)
+ self.this = clip_dndc.new_wxPyDataObjectSimple(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyDataObjectSimple)
@@ -127,14 +127,14 @@ class wxDataObjectCompositePtr(wxDataObjectPtr):
self.this = this
self.thisown = 0
def Add(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDataObjectComposite_Add,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDataObjectComposite_Add(self, *_args, **_kwargs)
_args[0].thisown = 0
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDataObjectComposite instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDataObjectComposite(wxDataObjectCompositePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxDataObjectComposite,_args,_kwargs)
+ self.this = clip_dndc.new_wxDataObjectComposite(*_args,**_kwargs)
self.thisown = 1
@@ -145,19 +145,19 @@ class wxTextDataObjectPtr(wxDataObjectSimplePtr):
self.this = this
self.thisown = 0
def GetTextLength(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxTextDataObject_GetTextLength,(self,) + _args, _kwargs)
+ val = clip_dndc.wxTextDataObject_GetTextLength(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxTextDataObject_GetText,(self,) + _args, _kwargs)
+ val = clip_dndc.wxTextDataObject_GetText(self, *_args, **_kwargs)
return val
def SetText(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxTextDataObject_SetText,(self,) + _args, _kwargs)
+ val = clip_dndc.wxTextDataObject_SetText(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxTextDataObject(wxTextDataObjectPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxTextDataObject,_args,_kwargs)
+ self.this = clip_dndc.new_wxTextDataObject(*_args,**_kwargs)
self.thisown = 1
@@ -168,13 +168,13 @@ class wxPyTextDataObjectPtr(wxTextDataObjectPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxPyTextDataObject__setCallbackInfo,(self,) + _args, _kwargs)
+ val = clip_dndc.wxPyTextDataObject__setCallbackInfo(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyTextDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyTextDataObject(wxPyTextDataObjectPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxPyTextDataObject,_args,_kwargs)
+ self.this = clip_dndc.new_wxPyTextDataObject(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyTextDataObject)
@@ -186,17 +186,17 @@ class wxBitmapDataObjectPtr(wxDataObjectSimplePtr):
self.this = this
self.thisown = 0
def GetBitmap(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxBitmapDataObject_GetBitmap,(self,) + _args, _kwargs)
+ val = clip_dndc.wxBitmapDataObject_GetBitmap(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val) ; val.thisown = 1
return val
def SetBitmap(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxBitmapDataObject_SetBitmap,(self,) + _args, _kwargs)
+ val = clip_dndc.wxBitmapDataObject_SetBitmap(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxBitmapDataObject(wxBitmapDataObjectPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxBitmapDataObject,_args,_kwargs)
+ self.this = clip_dndc.new_wxBitmapDataObject(*_args,**_kwargs)
self.thisown = 1
@@ -207,13 +207,13 @@ class wxPyBitmapDataObjectPtr(wxBitmapDataObjectPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxPyBitmapDataObject__setCallbackInfo,(self,) + _args, _kwargs)
+ val = clip_dndc.wxPyBitmapDataObject__setCallbackInfo(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyBitmapDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyBitmapDataObject(wxPyBitmapDataObjectPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxPyBitmapDataObject,_args,_kwargs)
+ self.this = clip_dndc.new_wxPyBitmapDataObject(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyBitmapDataObject)
@@ -225,13 +225,13 @@ class wxFileDataObjectPtr(wxDataObjectSimplePtr):
self.this = this
self.thisown = 0
def GetFilenames(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxFileDataObject_GetFilenames,(self,) + _args, _kwargs)
+ val = clip_dndc.wxFileDataObject_GetFilenames(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFileDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFileDataObject(wxFileDataObjectPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxFileDataObject,_args,_kwargs)
+ self.this = clip_dndc.new_wxFileDataObject(*_args,**_kwargs)
self.thisown = 1
@@ -242,22 +242,22 @@ class wxCustomDataObjectPtr(wxDataObjectSimplePtr):
self.this = this
self.thisown = 0
def TakeData(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxCustomDataObject_TakeData,(self,) + _args, _kwargs)
+ val = clip_dndc.wxCustomDataObject_TakeData(self, *_args, **_kwargs)
return val
def SetData(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxCustomDataObject_SetData,(self,) + _args, _kwargs)
+ val = clip_dndc.wxCustomDataObject_SetData(self, *_args, **_kwargs)
return val
def GetSize(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxCustomDataObject_GetSize,(self,) + _args, _kwargs)
+ val = clip_dndc.wxCustomDataObject_GetSize(self, *_args, **_kwargs)
return val
def GetData(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxCustomDataObject_GetData,(self,) + _args, _kwargs)
+ val = clip_dndc.wxCustomDataObject_GetData(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxCustomDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxCustomDataObject(wxCustomDataObjectPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxCustomDataObject,_args,_kwargs)
+ self.this = clip_dndc.new_wxCustomDataObject(*_args,**_kwargs)
self.thisown = 1
@@ -268,16 +268,16 @@ class wxURLDataObjectPtr(wxDataObjectCompositePtr):
self.this = this
self.thisown = 0
def GetURL(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxURLDataObject_GetURL,(self,) + _args, _kwargs)
+ val = clip_dndc.wxURLDataObject_GetURL(self, *_args, **_kwargs)
return val
def SetURL(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxURLDataObject_SetURL,(self,) + _args, _kwargs)
+ val = clip_dndc.wxURLDataObject_SetURL(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxURLDataObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxURLDataObject(wxURLDataObjectPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxURLDataObject,_args,_kwargs)
+ self.this = clip_dndc.new_wxURLDataObject(*_args,**_kwargs)
self.thisown = 1
@@ -288,42 +288,42 @@ class wxClipboardPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def Open(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxClipboard_Open,(self,) + _args, _kwargs)
+ val = clip_dndc.wxClipboard_Open(self, *_args, **_kwargs)
return val
def Close(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxClipboard_Close,(self,) + _args, _kwargs)
+ val = clip_dndc.wxClipboard_Close(self, *_args, **_kwargs)
return val
def IsOpened(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxClipboard_IsOpened,(self,) + _args, _kwargs)
+ val = clip_dndc.wxClipboard_IsOpened(self, *_args, **_kwargs)
return val
def AddData(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxClipboard_AddData,(self,) + _args, _kwargs)
+ val = clip_dndc.wxClipboard_AddData(self, *_args, **_kwargs)
_args[0].thisown = 0
return val
def SetData(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxClipboard_SetData,(self,) + _args, _kwargs)
+ val = clip_dndc.wxClipboard_SetData(self, *_args, **_kwargs)
_args[0].thisown = 0
return val
def IsSupported(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxClipboard_IsSupported,(self,) + _args, _kwargs)
+ val = clip_dndc.wxClipboard_IsSupported(self, *_args, **_kwargs)
return val
def GetData(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxClipboard_GetData,(self,) + _args, _kwargs)
+ val = clip_dndc.wxClipboard_GetData(self, *_args, **_kwargs)
return val
def Clear(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxClipboard_Clear,(self,) + _args, _kwargs)
+ val = clip_dndc.wxClipboard_Clear(self, *_args, **_kwargs)
return val
def Flush(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxClipboard_Flush,(self,) + _args, _kwargs)
+ val = clip_dndc.wxClipboard_Flush(self, *_args, **_kwargs)
return val
def UsePrimarySelection(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxClipboard_UsePrimarySelection,(self,) + _args, _kwargs)
+ val = clip_dndc.wxClipboard_UsePrimarySelection(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxClipboard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxClipboard(wxClipboardPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxClipboard,_args,_kwargs)
+ self.this = clip_dndc.new_wxClipboard(*_args,**_kwargs)
self.thisown = 1
@@ -334,7 +334,7 @@ class wxDropSourcePtr :
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDropSource__setCallbackInfo,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDropSource__setCallbackInfo(self, *_args, **_kwargs)
return val
def __del__(self, delfunc=clip_dndc.delete_wxDropSource):
if self.thisown == 1:
@@ -343,26 +343,26 @@ class wxDropSourcePtr :
except:
pass
def SetData(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDropSource_SetData,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDropSource_SetData(self, *_args, **_kwargs)
return val
def GetDataObject(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDropSource_GetDataObject,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDropSource_GetDataObject(self, *_args, **_kwargs)
if val: val = wxDataObjectPtr(val)
return val
def SetCursor(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDropSource_SetCursor,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDropSource_SetCursor(self, *_args, **_kwargs)
return val
def DoDragDrop(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDropSource_DoDragDrop,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDropSource_DoDragDrop(self, *_args, **_kwargs)
return val
def base_GiveFeedback(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxDropSource_base_GiveFeedback,(self,) + _args, _kwargs)
+ val = clip_dndc.wxDropSource_base_GiveFeedback(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDropSource instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDropSource(wxDropSourcePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxDropSource,_args,_kwargs)
+ self.this = clip_dndc.new_wxDropSource(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxDropSource, 0)
@@ -374,7 +374,7 @@ class wxDropTargetPtr :
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDropTarget(wxDropTargetPtr):
def __init__(self,this):
self.this = this
@@ -387,7 +387,7 @@ class wxPyDropTargetPtr(wxDropTargetPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxPyDropTarget__setCallbackInfo,(self,) + _args, _kwargs)
+ val = clip_dndc.wxPyDropTarget__setCallbackInfo(self, *_args, **_kwargs)
return val
def __del__(self, delfunc=clip_dndc.delete_wxPyDropTarget):
if self.thisown == 1:
@@ -396,33 +396,33 @@ class wxPyDropTargetPtr(wxDropTargetPtr):
except:
pass
def GetDataObject(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxPyDropTarget_GetDataObject,(self,) + _args, _kwargs)
+ val = clip_dndc.wxPyDropTarget_GetDataObject(self, *_args, **_kwargs)
if val: val = wxDataObjectPtr(val)
return val
def SetDataObject(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxPyDropTarget_SetDataObject,(self,) + _args, _kwargs)
+ val = clip_dndc.wxPyDropTarget_SetDataObject(self, *_args, **_kwargs)
if _args:_args[0].thisown = 0
return val
def base_OnEnter(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxPyDropTarget_base_OnEnter,(self,) + _args, _kwargs)
+ val = clip_dndc.wxPyDropTarget_base_OnEnter(self, *_args, **_kwargs)
return val
def base_OnDragOver(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxPyDropTarget_base_OnDragOver,(self,) + _args, _kwargs)
+ val = clip_dndc.wxPyDropTarget_base_OnDragOver(self, *_args, **_kwargs)
return val
def base_OnLeave(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxPyDropTarget_base_OnLeave,(self,) + _args, _kwargs)
+ val = clip_dndc.wxPyDropTarget_base_OnLeave(self, *_args, **_kwargs)
return val
def base_OnDrop(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxPyDropTarget_base_OnDrop,(self,) + _args, _kwargs)
+ val = clip_dndc.wxPyDropTarget_base_OnDrop(self, *_args, **_kwargs)
return val
def GetData(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxPyDropTarget_GetData,(self,) + _args, _kwargs)
+ val = clip_dndc.wxPyDropTarget_GetData(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyDropTarget(wxPyDropTargetPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxPyDropTarget,_args,_kwargs)
+ self.this = clip_dndc.new_wxPyDropTarget(*_args,**_kwargs)
self.thisown = 1
if _args:_args[0].thisown = 0
self._setCallbackInfo(self, wxPyDropTarget)
@@ -435,28 +435,28 @@ class wxTextDropTargetPtr(wxPyDropTargetPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxTextDropTarget__setCallbackInfo,(self,) + _args, _kwargs)
+ val = clip_dndc.wxTextDropTarget__setCallbackInfo(self, *_args, **_kwargs)
return val
def base_OnEnter(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxTextDropTarget_base_OnEnter,(self,) + _args, _kwargs)
+ val = clip_dndc.wxTextDropTarget_base_OnEnter(self, *_args, **_kwargs)
return val
def base_OnDragOver(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxTextDropTarget_base_OnDragOver,(self,) + _args, _kwargs)
+ val = clip_dndc.wxTextDropTarget_base_OnDragOver(self, *_args, **_kwargs)
return val
def base_OnLeave(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxTextDropTarget_base_OnLeave,(self,) + _args, _kwargs)
+ val = clip_dndc.wxTextDropTarget_base_OnLeave(self, *_args, **_kwargs)
return val
def base_OnDrop(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxTextDropTarget_base_OnDrop,(self,) + _args, _kwargs)
+ val = clip_dndc.wxTextDropTarget_base_OnDrop(self, *_args, **_kwargs)
return val
def base_OnData(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxTextDropTarget_base_OnData,(self,) + _args, _kwargs)
+ val = clip_dndc.wxTextDropTarget_base_OnData(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTextDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxTextDropTarget(wxTextDropTargetPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxTextDropTarget,_args,_kwargs)
+ self.this = clip_dndc.new_wxTextDropTarget(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxTextDropTarget)
@@ -468,28 +468,28 @@ class wxFileDropTargetPtr(wxPyDropTargetPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxFileDropTarget__setCallbackInfo,(self,) + _args, _kwargs)
+ val = clip_dndc.wxFileDropTarget__setCallbackInfo(self, *_args, **_kwargs)
return val
def base_OnEnter(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxFileDropTarget_base_OnEnter,(self,) + _args, _kwargs)
+ val = clip_dndc.wxFileDropTarget_base_OnEnter(self, *_args, **_kwargs)
return val
def base_OnDragOver(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxFileDropTarget_base_OnDragOver,(self,) + _args, _kwargs)
+ val = clip_dndc.wxFileDropTarget_base_OnDragOver(self, *_args, **_kwargs)
return val
def base_OnLeave(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxFileDropTarget_base_OnLeave,(self,) + _args, _kwargs)
+ val = clip_dndc.wxFileDropTarget_base_OnLeave(self, *_args, **_kwargs)
return val
def base_OnDrop(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxFileDropTarget_base_OnDrop,(self,) + _args, _kwargs)
+ val = clip_dndc.wxFileDropTarget_base_OnDrop(self, *_args, **_kwargs)
return val
def base_OnData(self, *_args, **_kwargs):
- val = apply(clip_dndc.wxFileDropTarget_base_OnData,(self,) + _args, _kwargs)
+ val = clip_dndc.wxFileDropTarget_base_OnData(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFileDropTarget instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFileDropTarget(wxFileDropTargetPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(clip_dndc.new_wxFileDropTarget,_args,_kwargs)
+ self.this = clip_dndc.new_wxFileDropTarget(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxFileDropTarget)
@@ -501,7 +501,7 @@ class wxFileDropTarget(wxFileDropTargetPtr):
#-------------- FUNCTION WRAPPERS ------------------
def wxCustomDataFormat(*_args, **_kwargs):
- val = apply(clip_dndc.wxCustomDataFormat,_args,_kwargs)
+ val = clip_dndc.wxCustomDataFormat(*_args,**_kwargs)
if val: val = wxDataFormatPtr(val); val.thisown = 1
return val
diff --git a/wxPython/src/gtk/cmndlgs.py b/wxPython/src/gtk/cmndlgs.py
index 9555d3bc82..a0b448fa30 100644
--- a/wxPython/src/gtk/cmndlgs.py
+++ b/wxPython/src/gtk/cmndlgs.py
@@ -48,30 +48,30 @@ class wxColourDataPtr(wxObjectPtr):
except:
pass
def GetChooseFull(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxColourData_GetChooseFull,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxColourData_GetChooseFull(self, *_args, **_kwargs)
return val
def GetColour(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxColourData_GetColour,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxColourData_GetColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetCustomColour(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxColourData_GetCustomColour,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxColourData_GetCustomColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetChooseFull(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxColourData_SetChooseFull,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxColourData_SetChooseFull(self, *_args, **_kwargs)
return val
def SetColour(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxColourData_SetColour,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxColourData_SetColour(self, *_args, **_kwargs)
return val
def SetCustomColour(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxColourData_SetCustomColour,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxColourData_SetCustomColour(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxColourData(wxColourDataPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxColourData,_args,_kwargs)
+ self.this = cmndlgsc.new_wxColourData(*_args,**_kwargs)
self.thisown = 1
@@ -82,17 +82,17 @@ class wxColourDialogPtr(wxDialogPtr):
self.this = this
self.thisown = 0
def GetColourData(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxColourDialog_GetColourData,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxColourDialog_GetColourData(self, *_args, **_kwargs)
if val: val = wxColourDataPtr(val)
return val
def ShowModal(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxColourDialog_ShowModal,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxColourDialog_ShowModal(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxColourDialog(wxColourDialogPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxColourDialog,_args,_kwargs)
+ self.this = cmndlgsc.new_wxColourDialog(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -104,28 +104,28 @@ class wxDirDialogPtr(wxDialogPtr):
self.this = this
self.thisown = 0
def GetPath(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxDirDialog_GetPath,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxDirDialog_GetPath(self, *_args, **_kwargs)
return val
def GetMessage(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxDirDialog_GetMessage,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxDirDialog_GetMessage(self, *_args, **_kwargs)
return val
def GetStyle(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxDirDialog_GetStyle,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxDirDialog_GetStyle(self, *_args, **_kwargs)
return val
def SetMessage(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxDirDialog_SetMessage,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxDirDialog_SetMessage(self, *_args, **_kwargs)
return val
def SetPath(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxDirDialog_SetPath,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxDirDialog_SetPath(self, *_args, **_kwargs)
return val
def ShowModal(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxDirDialog_ShowModal,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxDirDialog_ShowModal(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDirDialog(wxDirDialogPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxDirDialog,_args,_kwargs)
+ self.this = cmndlgsc.new_wxDirDialog(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -137,61 +137,61 @@ class wxFileDialogPtr(wxDialogPtr):
self.this = this
self.thisown = 0
def GetDirectory(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_GetDirectory,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_GetDirectory(self, *_args, **_kwargs)
return val
def GetFilename(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_GetFilename,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_GetFilename(self, *_args, **_kwargs)
return val
def GetFilterIndex(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_GetFilterIndex,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_GetFilterIndex(self, *_args, **_kwargs)
return val
def GetMessage(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_GetMessage,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_GetMessage(self, *_args, **_kwargs)
return val
def GetPath(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_GetPath,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_GetPath(self, *_args, **_kwargs)
return val
def GetStyle(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_GetStyle,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_GetStyle(self, *_args, **_kwargs)
return val
def GetWildcard(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_GetWildcard,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_GetWildcard(self, *_args, **_kwargs)
return val
def SetDirectory(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_SetDirectory,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_SetDirectory(self, *_args, **_kwargs)
return val
def SetFilename(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_SetFilename,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_SetFilename(self, *_args, **_kwargs)
return val
def SetFilterIndex(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_SetFilterIndex,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_SetFilterIndex(self, *_args, **_kwargs)
return val
def SetMessage(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_SetMessage,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_SetMessage(self, *_args, **_kwargs)
return val
def SetPath(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_SetPath,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_SetPath(self, *_args, **_kwargs)
return val
def SetStyle(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_SetStyle,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_SetStyle(self, *_args, **_kwargs)
return val
def SetWildcard(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_SetWildcard,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_SetWildcard(self, *_args, **_kwargs)
return val
def ShowModal(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_ShowModal,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_ShowModal(self, *_args, **_kwargs)
return val
def GetFilenames(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_GetFilenames,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_GetFilenames(self, *_args, **_kwargs)
return val
def GetPaths(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFileDialog_GetPaths,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFileDialog_GetPaths(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFileDialog(wxFileDialogPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxFileDialog,_args,_kwargs)
+ self.this = cmndlgsc.new_wxFileDialog(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -203,16 +203,16 @@ class wxMultiChoiceDialogPtr(wxDialogPtr):
self.this = this
self.thisown = 0
def SetSelections(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxMultiChoiceDialog_SetSelections,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxMultiChoiceDialog_SetSelections(self, *_args, **_kwargs)
return val
def GetSelections(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxMultiChoiceDialog_GetSelections,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxMultiChoiceDialog_GetSelections(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMultiChoiceDialog(wxMultiChoiceDialogPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxMultiChoiceDialog,_args,_kwargs)
+ self.this = cmndlgsc.new_wxMultiChoiceDialog(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -224,22 +224,22 @@ class wxSingleChoiceDialogPtr(wxDialogPtr):
self.this = this
self.thisown = 0
def GetSelection(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxSingleChoiceDialog_GetSelection,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxSingleChoiceDialog_GetSelection(self, *_args, **_kwargs)
return val
def GetStringSelection(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxSingleChoiceDialog_GetStringSelection,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxSingleChoiceDialog_GetStringSelection(self, *_args, **_kwargs)
return val
def SetSelection(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxSingleChoiceDialog_SetSelection,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxSingleChoiceDialog_SetSelection(self, *_args, **_kwargs)
return val
def ShowModal(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxSingleChoiceDialog_ShowModal,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxSingleChoiceDialog_ShowModal(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxSingleChoiceDialog(wxSingleChoiceDialogPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,_args,_kwargs)
+ self.this = cmndlgsc.new_wxSingleChoiceDialog(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -251,19 +251,19 @@ class wxTextEntryDialogPtr(wxDialogPtr):
self.this = this
self.thisown = 0
def GetValue(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxTextEntryDialog_GetValue,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxTextEntryDialog_GetValue(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxTextEntryDialog_SetValue,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxTextEntryDialog_SetValue(self, *_args, **_kwargs)
return val
def ShowModal(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxTextEntryDialog_ShowModal,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxTextEntryDialog_ShowModal(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxTextEntryDialog(wxTextEntryDialogPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxTextEntryDialog,_args,_kwargs)
+ self.this = cmndlgsc.new_wxTextEntryDialog(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -281,52 +281,52 @@ class wxFontDataPtr(wxObjectPtr):
except:
pass
def EnableEffects(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_EnableEffects,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_EnableEffects(self, *_args, **_kwargs)
return val
def GetAllowSymbols(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_GetAllowSymbols,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_GetAllowSymbols(self, *_args, **_kwargs)
return val
def GetColour(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_GetColour,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_GetColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetChosenFont(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_GetChosenFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def GetEnableEffects(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_GetEnableEffects,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_GetEnableEffects(self, *_args, **_kwargs)
return val
def GetInitialFont(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_GetInitialFont,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_GetInitialFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def GetShowHelp(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_GetShowHelp,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_GetShowHelp(self, *_args, **_kwargs)
return val
def SetAllowSymbols(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_SetAllowSymbols,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_SetAllowSymbols(self, *_args, **_kwargs)
return val
def SetChosenFont(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_SetChosenFont,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_SetChosenFont(self, *_args, **_kwargs)
return val
def SetColour(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_SetColour,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_SetColour(self, *_args, **_kwargs)
return val
def SetInitialFont(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_SetInitialFont,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_SetInitialFont(self, *_args, **_kwargs)
return val
def SetRange(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_SetRange,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_SetRange(self, *_args, **_kwargs)
return val
def SetShowHelp(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontData_SetShowHelp,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontData_SetShowHelp(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFontData(wxFontDataPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxFontData,_args,_kwargs)
+ self.this = cmndlgsc.new_wxFontData(*_args,**_kwargs)
self.thisown = 1
@@ -337,17 +337,17 @@ class wxFontDialogPtr(wxDialogPtr):
self.this = this
self.thisown = 0
def GetFontData(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontDialog_GetFontData,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontDialog_GetFontData(self, *_args, **_kwargs)
if val: val = wxFontDataPtr(val)
return val
def ShowModal(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFontDialog_ShowModal,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFontDialog_ShowModal(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFontDialog(wxFontDialogPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxFontDialog,_args,_kwargs)
+ self.this = cmndlgsc.new_wxFontDialog(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -359,13 +359,13 @@ class wxMessageDialogPtr(wxDialogPtr):
self.this = this
self.thisown = 0
def ShowModal(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxMessageDialog_ShowModal,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxMessageDialog_ShowModal(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMessageDialog(wxMessageDialogPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxMessageDialog,_args,_kwargs)
+ self.this = cmndlgsc.new_wxMessageDialog(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -377,16 +377,16 @@ class wxProgressDialogPtr(wxFramePtr):
self.this = this
self.thisown = 0
def Update(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxProgressDialog_Update,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxProgressDialog_Update(self, *_args, **_kwargs)
return val
def Resume(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxProgressDialog_Resume,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxProgressDialog_Resume(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxProgressDialog(wxProgressDialogPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxProgressDialog,_args,_kwargs)
+ self.this = cmndlgsc.new_wxProgressDialog(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -398,32 +398,32 @@ class wxFindDialogEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def GetFlags(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindDialogEvent_GetFlags,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindDialogEvent_GetFlags(self, *_args, **_kwargs)
return val
def GetFindString(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindDialogEvent_GetFindString,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindDialogEvent_GetFindString(self, *_args, **_kwargs)
return val
def GetReplaceString(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindDialogEvent_GetReplaceString,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindDialogEvent_GetReplaceString(self, *_args, **_kwargs)
return val
def GetDialog(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindDialogEvent_GetDialog,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindDialogEvent_GetDialog(self, *_args, **_kwargs)
if val: val = wxFindReplaceDialogPtr(val)
return val
def SetFlags(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindDialogEvent_SetFlags,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindDialogEvent_SetFlags(self, *_args, **_kwargs)
return val
def SetFindString(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindDialogEvent_SetFindString,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindDialogEvent_SetFindString(self, *_args, **_kwargs)
return val
def SetReplaceString(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindDialogEvent_SetReplaceString,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindDialogEvent_SetReplaceString(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFindDialogEvent(wxFindDialogEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxFindDialogEvent,_args,_kwargs)
+ self.this = cmndlgsc.new_wxFindDialogEvent(*_args,**_kwargs)
self.thisown = 1
@@ -440,28 +440,28 @@ class wxFindReplaceDataPtr(wxObjectPtr):
except:
pass
def GetFindString(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindReplaceData_GetFindString,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindReplaceData_GetFindString(self, *_args, **_kwargs)
return val
def GetReplaceString(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindReplaceData_GetReplaceString,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindReplaceData_GetReplaceString(self, *_args, **_kwargs)
return val
def GetFlags(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindReplaceData_GetFlags,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindReplaceData_GetFlags(self, *_args, **_kwargs)
return val
def SetFlags(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindReplaceData_SetFlags,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindReplaceData_SetFlags(self, *_args, **_kwargs)
return val
def SetFindString(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindReplaceData_SetFindString,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindReplaceData_SetFindString(self, *_args, **_kwargs)
return val
def SetReplaceString(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindReplaceData_SetReplaceString,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindReplaceData_SetReplaceString(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFindReplaceData(wxFindReplaceDataPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxFindReplaceData,_args,_kwargs)
+ self.this = cmndlgsc.new_wxFindReplaceData(*_args,**_kwargs)
self.thisown = 1
@@ -472,27 +472,27 @@ class wxFindReplaceDialogPtr(wxDialogPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindReplaceDialog_Create,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindReplaceDialog_Create(self, *_args, **_kwargs)
return val
def GetData(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindReplaceDialog_GetData,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindReplaceDialog_GetData(self, *_args, **_kwargs)
if val: val = wxFindReplaceDataPtr(val)
return val
def SetData(self, *_args, **_kwargs):
- val = apply(cmndlgsc.wxFindReplaceDialog_SetData,(self,) + _args, _kwargs)
+ val = cmndlgsc.wxFindReplaceDialog_SetData(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFindReplaceDialog(wxFindReplaceDialogPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(cmndlgsc.new_wxFindReplaceDialog,_args,_kwargs)
+ self.this = cmndlgsc.new_wxFindReplaceDialog(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreFindReplaceDialog(*_args,**_kwargs):
- val = wxFindReplaceDialogPtr(apply(cmndlgsc.new_wxPreFindReplaceDialog,_args,_kwargs))
+ val = wxFindReplaceDialogPtr(cmndlgsc.new_wxPreFindReplaceDialog(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
diff --git a/wxPython/src/gtk/controls.cpp b/wxPython/src/gtk/controls.cpp
index 336a7ddb98..e3f2b5d553 100644
--- a/wxPython/src/gtk/controls.cpp
+++ b/wxPython/src/gtk/controls.cpp
@@ -1924,7 +1924,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;
@@ -2038,7 +2038,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))
@@ -11389,6 +11389,37 @@ static PyObject *_wrap_wxSpinCtrl_SetValue(PyObject *self, PyObject *args, PyObj
return _resultobj;
}
+static void wxSpinCtrl_SetSelection(wxSpinCtrl *self,long from,long to) {
+ }
+static PyObject *_wrap_wxSpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxSpinCtrl * _arg0;
+ long _arg1;
+ long _arg2;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","from","to", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxSpinCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSpinCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSpinCtrl_SetSelection. Expected _wxSpinCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxSpinCtrl_SetSelection(_arg0,_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
static void *SwigwxToggleButtonTowxControl(void *ptr) {
wxToggleButton *src;
wxControl *dest;
@@ -11726,6 +11757,7 @@ static PyMethodDef controlscMethods[] = {
{ "wxToggleButton_Create", (PyCFunction) _wrap_wxToggleButton_Create, METH_VARARGS | METH_KEYWORDS },
{ "new_wxPreToggleButton", (PyCFunction) _wrap_new_wxPreToggleButton, METH_VARARGS | METH_KEYWORDS },
{ "new_wxToggleButton", (PyCFunction) _wrap_new_wxToggleButton, METH_VARARGS | METH_KEYWORDS },
+ { "wxSpinCtrl_SetSelection", (PyCFunction) _wrap_wxSpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS },
{ "wxSpinCtrl_SetValue", (PyCFunction) _wrap_wxSpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
{ "wxSpinCtrl_SetRange", (PyCFunction) _wrap_wxSpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS },
{ "wxSpinCtrl_GetValue", (PyCFunction) _wrap_wxSpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
diff --git a/wxPython/src/gtk/controls.py b/wxPython/src/gtk/controls.py
index d1b3ccc1bc..d7cee29ee4 100644
--- a/wxPython/src/gtk/controls.py
+++ b/wxPython/src/gtk/controls.py
@@ -18,29 +18,29 @@ class wxControlPtr(wxWindowPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxControl_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxControl_Create(self, *_args, **_kwargs)
return val
def Command(self, *_args, **_kwargs):
- val = apply(controlsc.wxControl_Command,(self,) + _args, _kwargs)
+ val = controlsc.wxControl_Command(self, *_args, **_kwargs)
return val
def GetLabel(self, *_args, **_kwargs):
- val = apply(controlsc.wxControl_GetLabel,(self,) + _args, _kwargs)
+ val = controlsc.wxControl_GetLabel(self, *_args, **_kwargs)
return val
def SetLabel(self, *_args, **_kwargs):
- val = apply(controlsc.wxControl_SetLabel,(self,) + _args, _kwargs)
+ val = controlsc.wxControl_SetLabel(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxControl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxControl(wxControlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxControl,_args,_kwargs)
+ self.this = controlsc.new_wxControl(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreControl(*_args,**_kwargs):
- val = wxControlPtr(apply(controlsc.new_wxPreControl,_args,_kwargs))
+ val = wxControlPtr(controlsc.new_wxPreControl(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -51,43 +51,43 @@ class wxControlWithItemsPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Delete(self, *_args, **_kwargs):
- val = apply(controlsc.wxControlWithItems_Delete,(self,) + _args, _kwargs)
+ val = controlsc.wxControlWithItems_Delete(self, *_args, **_kwargs)
return val
def GetCount(self, *_args, **_kwargs):
- val = apply(controlsc.wxControlWithItems_GetCount,(self,) + _args, _kwargs)
+ val = controlsc.wxControlWithItems_GetCount(self, *_args, **_kwargs)
return val
def GetString(self, *_args, **_kwargs):
- val = apply(controlsc.wxControlWithItems_GetString,(self,) + _args, _kwargs)
+ val = controlsc.wxControlWithItems_GetString(self, *_args, **_kwargs)
return val
def SetString(self, *_args, **_kwargs):
- val = apply(controlsc.wxControlWithItems_SetString,(self,) + _args, _kwargs)
+ val = controlsc.wxControlWithItems_SetString(self, *_args, **_kwargs)
return val
def FindString(self, *_args, **_kwargs):
- val = apply(controlsc.wxControlWithItems_FindString,(self,) + _args, _kwargs)
+ val = controlsc.wxControlWithItems_FindString(self, *_args, **_kwargs)
return val
def Select(self, *_args, **_kwargs):
- val = apply(controlsc.wxControlWithItems_Select,(self,) + _args, _kwargs)
+ val = controlsc.wxControlWithItems_Select(self, *_args, **_kwargs)
return val
def GetSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxControlWithItems_GetSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxControlWithItems_GetSelection(self, *_args, **_kwargs)
return val
def GetStringSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxControlWithItems_GetStringSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxControlWithItems_GetStringSelection(self, *_args, **_kwargs)
return val
def Append(self, *_args, **_kwargs):
- val = apply(controlsc.wxControlWithItems_Append,(self,) + _args, _kwargs)
+ val = controlsc.wxControlWithItems_Append(self, *_args, **_kwargs)
return val
def GetClientData(self, *_args, **_kwargs):
- val = apply(controlsc.wxControlWithItems_GetClientData,(self,) + _args, _kwargs)
+ val = controlsc.wxControlWithItems_GetClientData(self, *_args, **_kwargs)
return val
def SetClientData(self, *_args, **_kwargs):
- val = apply(controlsc.wxControlWithItems_SetClientData,(self,) + _args, _kwargs)
+ val = controlsc.wxControlWithItems_SetClientData(self, *_args, **_kwargs)
return val
def AppendItems(self, *_args, **_kwargs):
- val = apply(controlsc.wxControlWithItems_AppendItems,(self,) + _args, _kwargs)
+ val = controlsc.wxControlWithItems_AppendItems(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxControlWithItems instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
Number = GetCount
class wxControlWithItems(wxControlWithItemsPtr):
def __init__(self,this):
@@ -101,29 +101,29 @@ class wxButtonPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxButton_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxButton_Create(self, *_args, **_kwargs)
return val
def SetDefault(self, *_args, **_kwargs):
- val = apply(controlsc.wxButton_SetDefault,(self,) + _args, _kwargs)
+ val = controlsc.wxButton_SetDefault(self, *_args, **_kwargs)
return val
def SetBackgroundColour(self, *_args, **_kwargs):
- val = apply(controlsc.wxButton_SetBackgroundColour,(self,) + _args, _kwargs)
+ val = controlsc.wxButton_SetBackgroundColour(self, *_args, **_kwargs)
return val
def SetForegroundColour(self, *_args, **_kwargs):
- val = apply(controlsc.wxButton_SetForegroundColour,(self,) + _args, _kwargs)
+ val = controlsc.wxButton_SetForegroundColour(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxButton(wxButtonPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxButton,_args,_kwargs)
+ self.this = controlsc.new_wxButton(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreButton(*_args,**_kwargs):
- val = wxButtonPtr(apply(controlsc.new_wxPreButton,_args,_kwargs))
+ val = wxButtonPtr(controlsc.new_wxPreButton(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -134,57 +134,57 @@ class wxBitmapButtonPtr(wxButtonPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxBitmapButton_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxBitmapButton_Create(self, *_args, **_kwargs)
return val
def GetBitmapLabel(self, *_args, **_kwargs):
- val = apply(controlsc.wxBitmapButton_GetBitmapLabel,(self,) + _args, _kwargs)
+ val = controlsc.wxBitmapButton_GetBitmapLabel(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val) ; val.thisown = 1
return val
def GetBitmapDisabled(self, *_args, **_kwargs):
- val = apply(controlsc.wxBitmapButton_GetBitmapDisabled,(self,) + _args, _kwargs)
+ val = controlsc.wxBitmapButton_GetBitmapDisabled(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val) ; val.thisown = 1
return val
def GetBitmapFocus(self, *_args, **_kwargs):
- val = apply(controlsc.wxBitmapButton_GetBitmapFocus,(self,) + _args, _kwargs)
+ val = controlsc.wxBitmapButton_GetBitmapFocus(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val) ; val.thisown = 1
return val
def GetBitmapSelected(self, *_args, **_kwargs):
- val = apply(controlsc.wxBitmapButton_GetBitmapSelected,(self,) + _args, _kwargs)
+ val = controlsc.wxBitmapButton_GetBitmapSelected(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val) ; val.thisown = 1
return val
def SetBitmapDisabled(self, *_args, **_kwargs):
- val = apply(controlsc.wxBitmapButton_SetBitmapDisabled,(self,) + _args, _kwargs)
+ val = controlsc.wxBitmapButton_SetBitmapDisabled(self, *_args, **_kwargs)
return val
def SetBitmapFocus(self, *_args, **_kwargs):
- val = apply(controlsc.wxBitmapButton_SetBitmapFocus,(self,) + _args, _kwargs)
+ val = controlsc.wxBitmapButton_SetBitmapFocus(self, *_args, **_kwargs)
return val
def SetBitmapSelected(self, *_args, **_kwargs):
- val = apply(controlsc.wxBitmapButton_SetBitmapSelected,(self,) + _args, _kwargs)
+ val = controlsc.wxBitmapButton_SetBitmapSelected(self, *_args, **_kwargs)
return val
def SetBitmapLabel(self, *_args, **_kwargs):
- val = apply(controlsc.wxBitmapButton_SetBitmapLabel,(self,) + _args, _kwargs)
+ val = controlsc.wxBitmapButton_SetBitmapLabel(self, *_args, **_kwargs)
return val
def SetMargins(self, *_args, **_kwargs):
- val = apply(controlsc.wxBitmapButton_SetMargins,(self,) + _args, _kwargs)
+ val = controlsc.wxBitmapButton_SetMargins(self, *_args, **_kwargs)
return val
def GetMarginX(self, *_args, **_kwargs):
- val = apply(controlsc.wxBitmapButton_GetMarginX,(self,) + _args, _kwargs)
+ val = controlsc.wxBitmapButton_GetMarginX(self, *_args, **_kwargs)
return val
def GetMarginY(self, *_args, **_kwargs):
- val = apply(controlsc.wxBitmapButton_GetMarginY,(self,) + _args, _kwargs)
+ val = controlsc.wxBitmapButton_GetMarginY(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxBitmapButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxBitmapButton(wxBitmapButtonPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxBitmapButton,_args,_kwargs)
+ self.this = controlsc.new_wxBitmapButton(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreBitmapButton(*_args,**_kwargs):
- val = wxBitmapButtonPtr(apply(controlsc.new_wxPreBitmapButton,_args,_kwargs))
+ val = wxBitmapButtonPtr(controlsc.new_wxPreBitmapButton(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -195,29 +195,29 @@ class wxCheckBoxPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxCheckBox_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxCheckBox_Create(self, *_args, **_kwargs)
return val
def GetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxCheckBox_GetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxCheckBox_GetValue(self, *_args, **_kwargs)
return val
def IsChecked(self, *_args, **_kwargs):
- val = apply(controlsc.wxCheckBox_IsChecked,(self,) + _args, _kwargs)
+ val = controlsc.wxCheckBox_IsChecked(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxCheckBox_SetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxCheckBox_SetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxCheckBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxCheckBox(wxCheckBoxPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxCheckBox,_args,_kwargs)
+ self.this = controlsc.new_wxCheckBox(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreCheckBox(*_args,**_kwargs):
- val = wxCheckBoxPtr(apply(controlsc.new_wxPreCheckBox,_args,_kwargs))
+ val = wxCheckBoxPtr(controlsc.new_wxPreCheckBox(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -228,41 +228,41 @@ class wxChoicePtr(wxControlWithItemsPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxChoice_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxChoice_Create(self, *_args, **_kwargs)
return val
def Clear(self, *_args, **_kwargs):
- val = apply(controlsc.wxChoice_Clear,(self,) + _args, _kwargs)
+ val = controlsc.wxChoice_Clear(self, *_args, **_kwargs)
return val
def GetColumns(self, *_args, **_kwargs):
- val = apply(controlsc.wxChoice_GetColumns,(self,) + _args, _kwargs)
+ val = controlsc.wxChoice_GetColumns(self, *_args, **_kwargs)
return val
def SetColumns(self, *_args, **_kwargs):
- val = apply(controlsc.wxChoice_SetColumns,(self,) + _args, _kwargs)
+ val = controlsc.wxChoice_SetColumns(self, *_args, **_kwargs)
return val
def SetSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxChoice_SetSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxChoice_SetSelection(self, *_args, **_kwargs)
return val
def SetStringSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxChoice_SetStringSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxChoice_SetStringSelection(self, *_args, **_kwargs)
return val
def SetString(self, *_args, **_kwargs):
- val = apply(controlsc.wxChoice_SetString,(self,) + _args, _kwargs)
+ val = controlsc.wxChoice_SetString(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxChoice instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
Select = SetSelection
class wxChoice(wxChoicePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxChoice,_args,_kwargs)
+ self.this = controlsc.new_wxChoice(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreChoice(*_args,**_kwargs):
- val = wxChoicePtr(apply(controlsc.new_wxPreChoice,_args,_kwargs))
+ val = wxChoicePtr(controlsc.new_wxPreChoice(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -273,94 +273,94 @@ class wxComboBoxPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_Create(self, *_args, **_kwargs)
return val
def Copy(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_Copy,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_Copy(self, *_args, **_kwargs)
return val
def Cut(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_Cut,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_Cut(self, *_args, **_kwargs)
return val
def GetInsertionPoint(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_GetInsertionPoint,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_GetInsertionPoint(self, *_args, **_kwargs)
return val
def GetLastPosition(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_GetLastPosition,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_GetLastPosition(self, *_args, **_kwargs)
return val
def GetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_GetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_GetValue(self, *_args, **_kwargs)
return val
def Paste(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_Paste,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_Paste(self, *_args, **_kwargs)
return val
def Replace(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_Replace,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_Replace(self, *_args, **_kwargs)
return val
def Remove(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_Remove,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_Remove(self, *_args, **_kwargs)
return val
def SetInsertionPoint(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_SetInsertionPoint,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_SetInsertionPoint(self, *_args, **_kwargs)
return val
def SetInsertionPointEnd(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_SetInsertionPointEnd,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_SetInsertionPointEnd(self, *_args, **_kwargs)
return val
def SetSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_SetSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_SetSelection(self, *_args, **_kwargs)
return val
def SetMark(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_SetMark,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_SetMark(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_SetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_SetValue(self, *_args, **_kwargs)
return val
def SetEditable(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_SetEditable,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_SetEditable(self, *_args, **_kwargs)
return val
def Clear(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_Clear,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_Clear(self, *_args, **_kwargs)
return val
def Delete(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_Delete,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_Delete(self, *_args, **_kwargs)
return val
def GetCount(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_GetCount,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_GetCount(self, *_args, **_kwargs)
return val
def GetString(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_GetString,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_GetString(self, *_args, **_kwargs)
return val
def FindString(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_FindString,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_FindString(self, *_args, **_kwargs)
return val
def GetSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_GetSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_GetSelection(self, *_args, **_kwargs)
return val
def GetStringSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_GetStringSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_GetStringSelection(self, *_args, **_kwargs)
return val
def Append(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_Append,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_Append(self, *_args, **_kwargs)
return val
def GetClientData(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_GetClientData,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_GetClientData(self, *_args, **_kwargs)
return val
def SetClientData(self, *_args, **_kwargs):
- val = apply(controlsc.wxComboBox_SetClientData,(self,) + _args, _kwargs)
+ val = controlsc.wxComboBox_SetClientData(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxComboBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
Number = GetCount
Select = SetSelection
class wxComboBox(wxComboBoxPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxComboBox,_args,_kwargs)
+ self.this = controlsc.new_wxComboBox(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreComboBox(*_args,**_kwargs):
- val = wxComboBoxPtr(apply(controlsc.new_wxPreComboBox,_args,_kwargs))
+ val = wxComboBoxPtr(controlsc.new_wxPreComboBox(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -371,44 +371,44 @@ class wxGaugePtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxGauge_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxGauge_Create(self, *_args, **_kwargs)
return val
def GetBezelFace(self, *_args, **_kwargs):
- val = apply(controlsc.wxGauge_GetBezelFace,(self,) + _args, _kwargs)
+ val = controlsc.wxGauge_GetBezelFace(self, *_args, **_kwargs)
return val
def GetRange(self, *_args, **_kwargs):
- val = apply(controlsc.wxGauge_GetRange,(self,) + _args, _kwargs)
+ val = controlsc.wxGauge_GetRange(self, *_args, **_kwargs)
return val
def GetShadowWidth(self, *_args, **_kwargs):
- val = apply(controlsc.wxGauge_GetShadowWidth,(self,) + _args, _kwargs)
+ val = controlsc.wxGauge_GetShadowWidth(self, *_args, **_kwargs)
return val
def GetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxGauge_GetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxGauge_GetValue(self, *_args, **_kwargs)
return val
def SetBezelFace(self, *_args, **_kwargs):
- val = apply(controlsc.wxGauge_SetBezelFace,(self,) + _args, _kwargs)
+ val = controlsc.wxGauge_SetBezelFace(self, *_args, **_kwargs)
return val
def SetRange(self, *_args, **_kwargs):
- val = apply(controlsc.wxGauge_SetRange,(self,) + _args, _kwargs)
+ val = controlsc.wxGauge_SetRange(self, *_args, **_kwargs)
return val
def SetShadowWidth(self, *_args, **_kwargs):
- val = apply(controlsc.wxGauge_SetShadowWidth,(self,) + _args, _kwargs)
+ val = controlsc.wxGauge_SetShadowWidth(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxGauge_SetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxGauge_SetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGauge instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGauge(wxGaugePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxGauge,_args,_kwargs)
+ self.this = controlsc.new_wxGauge(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreGauge(*_args,**_kwargs):
- val = wxGaugePtr(apply(controlsc.new_wxPreGauge,_args,_kwargs))
+ val = wxGaugePtr(controlsc.new_wxPreGauge(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -419,20 +419,20 @@ class wxStaticBoxPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxStaticBox_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxStaticBox_Create(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxStaticBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxStaticBox(wxStaticBoxPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxStaticBox,_args,_kwargs)
+ self.this = controlsc.new_wxStaticBox(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreStaticBox(*_args,**_kwargs):
- val = wxStaticBoxPtr(apply(controlsc.new_wxPreStaticBox,_args,_kwargs))
+ val = wxStaticBoxPtr(controlsc.new_wxPreStaticBox(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -443,20 +443,20 @@ class wxStaticLinePtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxStaticLine_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxStaticLine_Create(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxStaticLine instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxStaticLine(wxStaticLinePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxStaticLine,_args,_kwargs)
+ self.this = controlsc.new_wxStaticLine(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreStaticLine(*_args,**_kwargs):
- val = wxStaticLinePtr(apply(controlsc.new_wxPreStaticLine,_args,_kwargs))
+ val = wxStaticLinePtr(controlsc.new_wxPreStaticLine(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -467,26 +467,26 @@ class wxStaticTextPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxStaticText_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxStaticText_Create(self, *_args, **_kwargs)
return val
def GetLabel(self, *_args, **_kwargs):
- val = apply(controlsc.wxStaticText_GetLabel,(self,) + _args, _kwargs)
+ val = controlsc.wxStaticText_GetLabel(self, *_args, **_kwargs)
return val
def SetLabel(self, *_args, **_kwargs):
- val = apply(controlsc.wxStaticText_SetLabel,(self,) + _args, _kwargs)
+ val = controlsc.wxStaticText_SetLabel(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxStaticText instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxStaticText(wxStaticTextPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxStaticText,_args,_kwargs)
+ self.this = controlsc.new_wxStaticText(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreStaticText(*_args,**_kwargs):
- val = wxStaticTextPtr(apply(controlsc.new_wxPreStaticText,_args,_kwargs))
+ val = wxStaticTextPtr(controlsc.new_wxPreStaticText(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -497,56 +497,56 @@ class wxListBoxPtr(wxControlWithItemsPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_Create(self, *_args, **_kwargs)
return val
def Clear(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_Clear,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_Clear(self, *_args, **_kwargs)
return val
def Deselect(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_Deselect,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_Deselect(self, *_args, **_kwargs)
return val
def GetSelections(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_GetSelections,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_GetSelections(self, *_args, **_kwargs)
return val
def InsertItems(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_InsertItems,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_InsertItems(self, *_args, **_kwargs)
return val
def IsSelected(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_IsSelected,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_IsSelected(self, *_args, **_kwargs)
return val
def Selected(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_Selected,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_Selected(self, *_args, **_kwargs)
return val
def Set(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_Set,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_Set(self, *_args, **_kwargs)
return val
def SetFirstItem(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_SetFirstItem,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_SetFirstItem(self, *_args, **_kwargs)
return val
def SetFirstItemStr(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_SetFirstItemStr,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_SetFirstItemStr(self, *_args, **_kwargs)
return val
def SetSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_SetSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_SetSelection(self, *_args, **_kwargs)
return val
def SetString(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_SetString,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_SetString(self, *_args, **_kwargs)
return val
def SetStringSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxListBox_SetStringSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxListBox_SetStringSelection(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxListBox(wxListBoxPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxListBox,_args,_kwargs)
+ self.this = controlsc.new_wxListBox(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreListBox(*_args,**_kwargs):
- val = wxListBoxPtr(apply(controlsc.new_wxPreListBox,_args,_kwargs))
+ val = wxListBoxPtr(controlsc.new_wxPreListBox(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -557,38 +557,38 @@ class wxCheckListBoxPtr(wxListBoxPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxCheckListBox_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxCheckListBox_Create(self, *_args, **_kwargs)
return val
def IsChecked(self, *_args, **_kwargs):
- val = apply(controlsc.wxCheckListBox_IsChecked,(self,) + _args, _kwargs)
+ val = controlsc.wxCheckListBox_IsChecked(self, *_args, **_kwargs)
return val
def Check(self, *_args, **_kwargs):
- val = apply(controlsc.wxCheckListBox_Check,(self,) + _args, _kwargs)
+ val = controlsc.wxCheckListBox_Check(self, *_args, **_kwargs)
return val
def InsertItems(self, *_args, **_kwargs):
- val = apply(controlsc.wxCheckListBox_InsertItems,(self,) + _args, _kwargs)
+ val = controlsc.wxCheckListBox_InsertItems(self, *_args, **_kwargs)
return val
def GetItemHeight(self, *_args, **_kwargs):
- val = apply(controlsc.wxCheckListBox_GetItemHeight,(self,) + _args, _kwargs)
+ val = controlsc.wxCheckListBox_GetItemHeight(self, *_args, **_kwargs)
return val
def HitTest(self, *_args, **_kwargs):
- val = apply(controlsc.wxCheckListBox_HitTest,(self,) + _args, _kwargs)
+ val = controlsc.wxCheckListBox_HitTest(self, *_args, **_kwargs)
return val
def HitTestXY(self, *_args, **_kwargs):
- val = apply(controlsc.wxCheckListBox_HitTestXY,(self,) + _args, _kwargs)
+ val = controlsc.wxCheckListBox_HitTestXY(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxCheckListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxCheckListBox(wxCheckListBoxPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxCheckListBox,_args,_kwargs)
+ self.this = controlsc.new_wxCheckListBox(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreCheckListBox(*_args,**_kwargs):
- val = wxCheckListBoxPtr(apply(controlsc.new_wxPreCheckListBox,_args,_kwargs))
+ val = wxCheckListBoxPtr(controlsc.new_wxPreCheckListBox(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -605,43 +605,43 @@ class wxTextAttrPtr :
except:
pass
def SetTextColour(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextAttr_SetTextColour,(self,) + _args, _kwargs)
+ val = controlsc.wxTextAttr_SetTextColour(self, *_args, **_kwargs)
return val
def SetBackgroundColour(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextAttr_SetBackgroundColour,(self,) + _args, _kwargs)
+ val = controlsc.wxTextAttr_SetBackgroundColour(self, *_args, **_kwargs)
return val
def SetFont(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextAttr_SetFont,(self,) + _args, _kwargs)
+ val = controlsc.wxTextAttr_SetFont(self, *_args, **_kwargs)
return val
def HasTextColour(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextAttr_HasTextColour,(self,) + _args, _kwargs)
+ val = controlsc.wxTextAttr_HasTextColour(self, *_args, **_kwargs)
return val
def HasBackgroundColour(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextAttr_HasBackgroundColour,(self,) + _args, _kwargs)
+ val = controlsc.wxTextAttr_HasBackgroundColour(self, *_args, **_kwargs)
return val
def HasFont(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextAttr_HasFont,(self,) + _args, _kwargs)
+ val = controlsc.wxTextAttr_HasFont(self, *_args, **_kwargs)
return val
def GetTextColour(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextAttr_GetTextColour,(self,) + _args, _kwargs)
+ val = controlsc.wxTextAttr_GetTextColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetBackgroundColour(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextAttr_GetBackgroundColour,(self,) + _args, _kwargs)
+ val = controlsc.wxTextAttr_GetBackgroundColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetFont(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextAttr_GetFont,(self,) + _args, _kwargs)
+ val = controlsc.wxTextAttr_GetFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def IsDefault(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextAttr_IsDefault,(self,) + _args, _kwargs)
+ val = controlsc.wxTextAttr_IsDefault(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTextAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxTextAttr(wxTextAttrPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxTextAttr,_args,_kwargs)
+ self.this = controlsc.new_wxTextAttr(*_args,**_kwargs)
self.thisown = 1
@@ -652,162 +652,162 @@ class wxTextCtrlPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_Create(self, *_args, **_kwargs)
return val
def GetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_GetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_GetValue(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_SetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_SetValue(self, *_args, **_kwargs)
return val
def GetRange(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_GetRange,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_GetRange(self, *_args, **_kwargs)
return val
def GetLineLength(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_GetLineLength,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_GetLineLength(self, *_args, **_kwargs)
return val
def GetLineText(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_GetLineText,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_GetLineText(self, *_args, **_kwargs)
return val
def GetNumberOfLines(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_GetNumberOfLines,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_GetNumberOfLines(self, *_args, **_kwargs)
return val
def IsModified(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_IsModified,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_IsModified(self, *_args, **_kwargs)
return val
def IsEditable(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_IsEditable,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_IsEditable(self, *_args, **_kwargs)
return val
def GetSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_GetSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_GetSelection(self, *_args, **_kwargs)
return val
def GetStringSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_GetStringSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_GetStringSelection(self, *_args, **_kwargs)
return val
def Clear(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_Clear,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_Clear(self, *_args, **_kwargs)
return val
def Replace(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_Replace,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_Replace(self, *_args, **_kwargs)
return val
def Remove(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_Remove,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_Remove(self, *_args, **_kwargs)
return val
def LoadFile(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_LoadFile,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_LoadFile(self, *_args, **_kwargs)
return val
def SaveFile(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_SaveFile,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_SaveFile(self, *_args, **_kwargs)
return val
def DiscardEdits(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_DiscardEdits,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_DiscardEdits(self, *_args, **_kwargs)
return val
def SetMaxLength(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_SetMaxLength,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_SetMaxLength(self, *_args, **_kwargs)
return val
def WriteText(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_WriteText,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_WriteText(self, *_args, **_kwargs)
return val
def AppendText(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_AppendText,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_AppendText(self, *_args, **_kwargs)
return val
def EmulateKeyPress(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_EmulateKeyPress,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_EmulateKeyPress(self, *_args, **_kwargs)
return val
def SetStyle(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_SetStyle,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_SetStyle(self, *_args, **_kwargs)
return val
def SetDefaultStyle(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_SetDefaultStyle,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_SetDefaultStyle(self, *_args, **_kwargs)
return val
def GetDefaultStyle(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_GetDefaultStyle,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_GetDefaultStyle(self, *_args, **_kwargs)
if val: val = wxTextAttrPtr(val)
return val
def XYToPosition(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_XYToPosition,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_XYToPosition(self, *_args, **_kwargs)
return val
def PositionToXY(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_PositionToXY,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_PositionToXY(self, *_args, **_kwargs)
return val
def ShowPosition(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_ShowPosition,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_ShowPosition(self, *_args, **_kwargs)
return val
def Copy(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_Copy,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_Copy(self, *_args, **_kwargs)
return val
def Cut(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_Cut,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_Cut(self, *_args, **_kwargs)
return val
def Paste(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_Paste,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_Paste(self, *_args, **_kwargs)
return val
def CanCopy(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_CanCopy,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_CanCopy(self, *_args, **_kwargs)
return val
def CanCut(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_CanCut,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_CanCut(self, *_args, **_kwargs)
return val
def CanPaste(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_CanPaste,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_CanPaste(self, *_args, **_kwargs)
return val
def Undo(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_Undo,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_Undo(self, *_args, **_kwargs)
return val
def Redo(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_Redo,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_Redo(self, *_args, **_kwargs)
return val
def CanUndo(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_CanUndo,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_CanUndo(self, *_args, **_kwargs)
return val
def CanRedo(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_CanRedo,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_CanRedo(self, *_args, **_kwargs)
return val
def SetInsertionPoint(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_SetInsertionPoint,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_SetInsertionPoint(self, *_args, **_kwargs)
return val
def SetInsertionPointEnd(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_SetInsertionPointEnd,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_SetInsertionPointEnd(self, *_args, **_kwargs)
return val
def GetInsertionPoint(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_GetInsertionPoint,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_GetInsertionPoint(self, *_args, **_kwargs)
return val
def GetLastPosition(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_GetLastPosition,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_GetLastPosition(self, *_args, **_kwargs)
return val
def SetSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_SetSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_SetSelection(self, *_args, **_kwargs)
return val
def SelectAll(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_SelectAll,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_SelectAll(self, *_args, **_kwargs)
return val
def SetEditable(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_SetEditable,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_SetEditable(self, *_args, **_kwargs)
return val
def IsSingleLine(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_IsSingleLine,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_IsSingleLine(self, *_args, **_kwargs)
return val
def IsMultiLine(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_IsMultiLine,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_IsMultiLine(self, *_args, **_kwargs)
return val
def write(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_write,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_write(self, *_args, **_kwargs)
return val
def GetString(self, *_args, **_kwargs):
- val = apply(controlsc.wxTextCtrl_GetString,(self,) + _args, _kwargs)
+ val = controlsc.wxTextCtrl_GetString(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxTextCtrl(wxTextCtrlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxTextCtrl,_args,_kwargs)
+ self.this = controlsc.new_wxTextCtrl(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreTextCtrl(*_args,**_kwargs):
- val = wxTextCtrlPtr(apply(controlsc.new_wxPreTextCtrl,_args,_kwargs))
+ val = wxTextCtrlPtr(controlsc.new_wxPreTextCtrl(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -818,44 +818,44 @@ class wxScrollBarPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxScrollBar_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxScrollBar_Create(self, *_args, **_kwargs)
return val
def GetRange(self, *_args, **_kwargs):
- val = apply(controlsc.wxScrollBar_GetRange,(self,) + _args, _kwargs)
+ val = controlsc.wxScrollBar_GetRange(self, *_args, **_kwargs)
return val
def GetPageSize(self, *_args, **_kwargs):
- val = apply(controlsc.wxScrollBar_GetPageSize,(self,) + _args, _kwargs)
+ val = controlsc.wxScrollBar_GetPageSize(self, *_args, **_kwargs)
return val
def GetThumbPosition(self, *_args, **_kwargs):
- val = apply(controlsc.wxScrollBar_GetThumbPosition,(self,) + _args, _kwargs)
+ val = controlsc.wxScrollBar_GetThumbPosition(self, *_args, **_kwargs)
return val
def GetThumbSize(self, *_args, **_kwargs):
- val = apply(controlsc.wxScrollBar_GetThumbSize,(self,) + _args, _kwargs)
+ val = controlsc.wxScrollBar_GetThumbSize(self, *_args, **_kwargs)
return val
def GetThumbLength(self, *_args, **_kwargs):
- val = apply(controlsc.wxScrollBar_GetThumbLength,(self,) + _args, _kwargs)
+ val = controlsc.wxScrollBar_GetThumbLength(self, *_args, **_kwargs)
return val
def IsVertical(self, *_args, **_kwargs):
- val = apply(controlsc.wxScrollBar_IsVertical,(self,) + _args, _kwargs)
+ val = controlsc.wxScrollBar_IsVertical(self, *_args, **_kwargs)
return val
def SetThumbPosition(self, *_args, **_kwargs):
- val = apply(controlsc.wxScrollBar_SetThumbPosition,(self,) + _args, _kwargs)
+ val = controlsc.wxScrollBar_SetThumbPosition(self, *_args, **_kwargs)
return val
def SetScrollbar(self, *_args, **_kwargs):
- val = apply(controlsc.wxScrollBar_SetScrollbar,(self,) + _args, _kwargs)
+ val = controlsc.wxScrollBar_SetScrollbar(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxScrollBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxScrollBar(wxScrollBarPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxScrollBar,_args,_kwargs)
+ self.this = controlsc.new_wxScrollBar(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreScrollBar(*_args,**_kwargs):
- val = wxScrollBarPtr(apply(controlsc.new_wxPreScrollBar,_args,_kwargs))
+ val = wxScrollBarPtr(controlsc.new_wxPreScrollBar(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -866,35 +866,35 @@ class wxSpinButtonPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxSpinButton_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxSpinButton_Create(self, *_args, **_kwargs)
return val
def GetMax(self, *_args, **_kwargs):
- val = apply(controlsc.wxSpinButton_GetMax,(self,) + _args, _kwargs)
+ val = controlsc.wxSpinButton_GetMax(self, *_args, **_kwargs)
return val
def GetMin(self, *_args, **_kwargs):
- val = apply(controlsc.wxSpinButton_GetMin,(self,) + _args, _kwargs)
+ val = controlsc.wxSpinButton_GetMin(self, *_args, **_kwargs)
return val
def GetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxSpinButton_GetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxSpinButton_GetValue(self, *_args, **_kwargs)
return val
def SetRange(self, *_args, **_kwargs):
- val = apply(controlsc.wxSpinButton_SetRange,(self,) + _args, _kwargs)
+ val = controlsc.wxSpinButton_SetRange(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxSpinButton_SetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxSpinButton_SetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSpinButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxSpinButton(wxSpinButtonPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxSpinButton,_args,_kwargs)
+ self.this = controlsc.new_wxSpinButton(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreSpinButton(*_args,**_kwargs):
- val = wxSpinButtonPtr(apply(controlsc.new_wxPreSpinButton,_args,_kwargs))
+ val = wxSpinButtonPtr(controlsc.new_wxPreSpinButton(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -905,30 +905,30 @@ class wxStaticBitmapPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxStaticBitmap_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxStaticBitmap_Create(self, *_args, **_kwargs)
return val
def GetBitmap(self, *_args, **_kwargs):
- val = apply(controlsc.wxStaticBitmap_GetBitmap,(self,) + _args, _kwargs)
+ val = controlsc.wxStaticBitmap_GetBitmap(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val) ; val.thisown = 1
return val
def SetBitmap(self, *_args, **_kwargs):
- val = apply(controlsc.wxStaticBitmap_SetBitmap,(self,) + _args, _kwargs)
+ val = controlsc.wxStaticBitmap_SetBitmap(self, *_args, **_kwargs)
return val
def SetIcon(self, *_args, **_kwargs):
- val = apply(controlsc.wxStaticBitmap_SetIcon,(self,) + _args, _kwargs)
+ val = controlsc.wxStaticBitmap_SetIcon(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxStaticBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxStaticBitmap(wxStaticBitmapPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxStaticBitmap,_args,_kwargs)
+ self.this = controlsc.new_wxStaticBitmap(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreStaticBitmap(*_args,**_kwargs):
- val = wxStaticBitmapPtr(apply(controlsc.new_wxPreStaticBitmap,_args,_kwargs))
+ val = wxStaticBitmapPtr(controlsc.new_wxPreStaticBitmap(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -939,46 +939,46 @@ class wxRadioBoxPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_Create(self, *_args, **_kwargs)
return val
def Enable(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_Enable,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_Enable(self, *_args, **_kwargs)
return val
def EnableItem(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_EnableItem,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_EnableItem(self, *_args, **_kwargs)
return val
def FindString(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_FindString,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_FindString(self, *_args, **_kwargs)
return val
def GetString(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_GetString,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_GetString(self, *_args, **_kwargs)
return val
def SetString(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_SetString,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_SetString(self, *_args, **_kwargs)
return val
def GetSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_GetSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_GetSelection(self, *_args, **_kwargs)
return val
def GetStringSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_GetStringSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_GetStringSelection(self, *_args, **_kwargs)
return val
def GetCount(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_GetCount,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_GetCount(self, *_args, **_kwargs)
return val
def SetSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_SetSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_SetSelection(self, *_args, **_kwargs)
return val
def SetStringSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_SetStringSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_SetStringSelection(self, *_args, **_kwargs)
return val
def Show(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_Show,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_Show(self, *_args, **_kwargs)
return val
def ShowItem(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioBox_ShowItem,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioBox_ShowItem(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxRadioBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
GetItemLabel = GetString
SetItemLabel = SetString
@@ -986,14 +986,14 @@ class wxRadioBoxPtr(wxControlPtr):
Number = GetCount
class wxRadioBox(wxRadioBoxPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxRadioBox,_args,_kwargs)
+ self.this = controlsc.new_wxRadioBox(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreRadioBox(*_args,**_kwargs):
- val = wxRadioBoxPtr(apply(controlsc.new_wxPreRadioBox,_args,_kwargs))
+ val = wxRadioBoxPtr(controlsc.new_wxPreRadioBox(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -1004,26 +1004,26 @@ class wxRadioButtonPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioButton_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioButton_Create(self, *_args, **_kwargs)
return val
def GetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioButton_GetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioButton_GetValue(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxRadioButton_SetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxRadioButton_SetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxRadioButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxRadioButton(wxRadioButtonPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxRadioButton,_args,_kwargs)
+ self.this = controlsc.new_wxRadioButton(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreRadioButton(*_args,**_kwargs):
- val = wxRadioButtonPtr(apply(controlsc.new_wxPreRadioButton,_args,_kwargs))
+ val = wxRadioButtonPtr(controlsc.new_wxPreRadioButton(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -1034,77 +1034,77 @@ class wxSliderPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_Create(self, *_args, **_kwargs)
return val
def ClearSel(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_ClearSel,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_ClearSel(self, *_args, **_kwargs)
return val
def ClearTicks(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_ClearTicks,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_ClearTicks(self, *_args, **_kwargs)
return val
def GetLineSize(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_GetLineSize,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_GetLineSize(self, *_args, **_kwargs)
return val
def GetMax(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_GetMax,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_GetMax(self, *_args, **_kwargs)
return val
def GetMin(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_GetMin,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_GetMin(self, *_args, **_kwargs)
return val
def GetPageSize(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_GetPageSize,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_GetPageSize(self, *_args, **_kwargs)
return val
def GetSelEnd(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_GetSelEnd,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_GetSelEnd(self, *_args, **_kwargs)
return val
def GetSelStart(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_GetSelStart,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_GetSelStart(self, *_args, **_kwargs)
return val
def GetThumbLength(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_GetThumbLength,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_GetThumbLength(self, *_args, **_kwargs)
return val
def GetTickFreq(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_GetTickFreq,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_GetTickFreq(self, *_args, **_kwargs)
return val
def GetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_GetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_GetValue(self, *_args, **_kwargs)
return val
def SetRange(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_SetRange,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_SetRange(self, *_args, **_kwargs)
return val
def SetTickFreq(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_SetTickFreq,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_SetTickFreq(self, *_args, **_kwargs)
return val
def SetLineSize(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_SetLineSize,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_SetLineSize(self, *_args, **_kwargs)
return val
def SetPageSize(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_SetPageSize,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_SetPageSize(self, *_args, **_kwargs)
return val
def SetSelection(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_SetSelection,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_SetSelection(self, *_args, **_kwargs)
return val
def SetThumbLength(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_SetThumbLength,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_SetThumbLength(self, *_args, **_kwargs)
return val
def SetTick(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_SetTick,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_SetTick(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxSlider_SetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxSlider_SetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSlider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxSlider(wxSliderPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxSlider,_args,_kwargs)
+ self.this = controlsc.new_wxSlider(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreSlider(*_args,**_kwargs):
- val = wxSliderPtr(apply(controlsc.new_wxPreSlider,_args,_kwargs))
+ val = wxSliderPtr(controlsc.new_wxPreSlider(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -1115,35 +1115,38 @@ class wxSpinCtrlPtr(wxSpinButtonPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxSpinCtrl_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxSpinCtrl_Create(self, *_args, **_kwargs)
return val
def GetMax(self, *_args, **_kwargs):
- val = apply(controlsc.wxSpinCtrl_GetMax,(self,) + _args, _kwargs)
+ val = controlsc.wxSpinCtrl_GetMax(self, *_args, **_kwargs)
return val
def GetMin(self, *_args, **_kwargs):
- val = apply(controlsc.wxSpinCtrl_GetMin,(self,) + _args, _kwargs)
+ val = controlsc.wxSpinCtrl_GetMin(self, *_args, **_kwargs)
return val
def GetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxSpinCtrl_GetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxSpinCtrl_GetValue(self, *_args, **_kwargs)
return val
def SetRange(self, *_args, **_kwargs):
- val = apply(controlsc.wxSpinCtrl_SetRange,(self,) + _args, _kwargs)
+ val = controlsc.wxSpinCtrl_SetRange(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxSpinCtrl_SetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxSpinCtrl_SetValue(self, *_args, **_kwargs)
+ return val
+ def SetSelection(self, *_args, **_kwargs):
+ val = controlsc.wxSpinCtrl_SetSelection(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSpinCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxSpinCtrl(wxSpinCtrlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxSpinCtrl,_args,_kwargs)
+ self.this = controlsc.new_wxSpinCtrl(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreSpinCtrl(*_args,**_kwargs):
- val = wxSpinCtrlPtr(apply(controlsc.new_wxPreSpinCtrl,_args,_kwargs))
+ val = wxSpinCtrlPtr(controlsc.new_wxPreSpinCtrl(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -1154,29 +1157,29 @@ class wxToggleButtonPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controlsc.wxToggleButton_Create,(self,) + _args, _kwargs)
+ val = controlsc.wxToggleButton_Create(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxToggleButton_SetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxToggleButton_SetValue(self, *_args, **_kwargs)
return val
def GetValue(self, *_args, **_kwargs):
- val = apply(controlsc.wxToggleButton_GetValue,(self,) + _args, _kwargs)
+ val = controlsc.wxToggleButton_GetValue(self, *_args, **_kwargs)
return val
def SetLabel(self, *_args, **_kwargs):
- val = apply(controlsc.wxToggleButton_SetLabel,(self,) + _args, _kwargs)
+ val = controlsc.wxToggleButton_SetLabel(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxToggleButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxToggleButton(wxToggleButtonPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controlsc.new_wxToggleButton,_args,_kwargs)
+ self.this = controlsc.new_wxToggleButton(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreToggleButton(*_args,**_kwargs):
- val = wxToggleButtonPtr(apply(controlsc.new_wxPreToggleButton,_args,_kwargs))
+ val = wxToggleButtonPtr(controlsc.new_wxPreToggleButton(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -1187,12 +1190,12 @@ def wxPreToggleButton(*_args,**_kwargs):
#-------------- FUNCTION WRAPPERS ------------------
def wxButton_GetDefaultSize(*_args, **_kwargs):
- val = apply(controlsc.wxButton_GetDefaultSize,_args,_kwargs)
+ val = controlsc.wxButton_GetDefaultSize(*_args,**_kwargs)
if val: val = wxSizePtr(val); val.thisown = 1
return val
def wxTextAttr_Combine(*_args, **_kwargs):
- val = apply(controlsc.wxTextAttr_Combine,_args,_kwargs)
+ val = controlsc.wxTextAttr_Combine(*_args,**_kwargs)
if val: val = wxTextAttrPtr(val); val.thisown = 1
return val
diff --git a/wxPython/src/gtk/controls2.cpp b/wxPython/src/gtk/controls2.cpp
index a4f1913505..ed48036c07 100644
--- a/wxPython/src/gtk/controls2.cpp
+++ b/wxPython/src/gtk/controls2.cpp
@@ -63,6 +63,8 @@ extern PyObject *SWIG_newvarlink(void);
#include
#include
+#include "pytree.h"
+
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
PyObject* o2;
@@ -153,37 +155,6 @@ IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
return retval;
}
-
-class wxPyTreeItemData : public wxTreeItemData {
-public:
- wxPyTreeItemData(PyObject* obj = NULL) {
- if (obj == NULL)
- obj = Py_None;
- Py_INCREF(obj);
- m_obj = obj;
- }
-
- ~wxPyTreeItemData() {
- wxPyBeginBlockThreads();
- Py_DECREF(m_obj);
- wxPyEndBlockThreads();
- }
-
- PyObject* GetData() {
- Py_INCREF(m_obj);
- return m_obj;
- }
-
- void SetData(PyObject* obj) {
- wxPyBeginBlockThreads();
- Py_DECREF(m_obj);
- wxPyEndBlockThreads();
- m_obj = obj;
- Py_INCREF(obj);
- }
-
- PyObject* m_obj;
-};
// C++ version of Python aware wxTreeCtrl
class wxPyTreeCtrl : public wxTreeCtrl {
DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
@@ -6389,6 +6360,220 @@ static PyObject *_wrap_wxTreeEvent_IsEditCancelled(PyObject *self, PyObject *arg
return _resultobj;
}
+#define wxTreeEvent_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0))
+static PyObject *_wrap_wxTreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeEvent * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetItem",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetItem. Expected _wxTreeEvent_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeEvent_SetItem. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeEvent_SetItem(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeEvent_SetOldItem(_swigobj,_swigarg0) (_swigobj->SetOldItem(_swigarg0))
+static PyObject *_wrap_wxTreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeEvent * _arg0;
+ wxTreeItemId * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","item", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetOldItem",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetOldItem. Expected _wxTreeEvent_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeEvent_SetOldItem. Expected _wxTreeItemId_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeEvent_SetOldItem(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeEvent_SetPoint(_swigobj,_swigarg0) (_swigobj->SetPoint(_swigarg0))
+static PyObject *_wrap_wxTreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeEvent * _arg0;
+ wxPoint * _arg1;
+ PyObject * _argo0 = 0;
+ wxPoint temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","pt", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetPoint",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetPoint. Expected _wxTreeEvent_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxPoint_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeEvent_SetPoint(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeEvent_SetKeyEvent(_swigobj,_swigarg0) (_swigobj->SetKeyEvent(_swigarg0))
+static PyObject *_wrap_wxTreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeEvent * _arg0;
+ wxKeyEvent * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","evt", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetKeyEvent",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetKeyEvent. Expected _wxTreeEvent_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxKeyEvent_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeEvent_SetKeyEvent. Expected _wxKeyEvent_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeEvent_SetKeyEvent(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxTreeEvent_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
+static PyObject *_wrap_wxTreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeEvent * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","label", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetLabel",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetLabel. Expected _wxTreeEvent_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeEvent_SetLabel(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
+#define wxTreeEvent_SetEditCanceled(_swigobj,_swigarg0) (_swigobj->SetEditCanceled(_swigarg0))
+static PyObject *_wrap_wxTreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxTreeEvent * _arg0;
+ bool _arg1;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ char *_kwnames[] = { "self","editCancelled", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeEvent_SetEditCanceled",_kwnames,&_argo0,&tempbool1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetEditCanceled. Expected _wxTreeEvent_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTreeEvent_SetEditCanceled(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
static void *SwigwxPyTreeCtrlTowxControl(void *ptr) {
wxPyTreeCtrl *src;
wxControl *dest;
@@ -6429,7 +6614,7 @@ static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *
wxWindowID _arg1 = (wxWindowID ) -1;
wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
wxSize * _arg3 = (wxSize *) &wxDefaultSize;
- long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT);
+ long _arg4 = (long ) (wxTR_DEFAULT_STYLE);
wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
wxString * _arg6 = (wxString *) &wxPy_TreeCtrlNameStr;
PyObject * _argo0 = 0;
@@ -6531,7 +6716,7 @@ static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObjec
wxWindowID _arg2 = (wxWindowID ) -1;
wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
wxSize * _arg4 = (wxSize *) &wxDefaultSize;
- long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT);
+ long _arg5 = (long ) (wxTR_DEFAULT_STYLE);
wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
wxString * _arg7 = (wxString *) &wxPy_TreeCtrlNameStr;
PyObject * _argo0 = 0;
@@ -9282,7 +9467,7 @@ static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeIt
if (self->GetBoundingRect(item, rect, textOnly)) {
wxPyBeginBlockThreads();
wxRect* r = new wxRect(rect);
- PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"));
+ PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), 1);
wxPyEndBlockThreads();
return val;
}
@@ -10519,6 +10704,34 @@ static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObje
return _resultobj;
}
+#define wxGenericDirCtrl_ReCreateTree(_swigobj) (_swigobj->ReCreateTree())
+static PyObject *_wrap_wxGenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxGenericDirCtrl * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_ReCreateTree",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ReCreateTree. Expected _wxGenericDirCtrl_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxGenericDirCtrl_ReCreateTree(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) {
wxDirFilterListCtrl *src;
wxChoice *dest;
@@ -10750,6 +10963,7 @@ static PyMethodDef controls2cMethods[] = {
{ "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
{ "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
{ "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
+ { "wxGenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_wxGenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS },
{ "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
{ "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
{ "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
@@ -10853,6 +11067,12 @@ static PyMethodDef controls2cMethods[] = {
{ "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
{ "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
{ "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeEvent_SetEditCanceled", (PyCFunction) _wrap_wxTreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeEvent_SetLabel", (PyCFunction) _wrap_wxTreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeEvent_SetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeEvent_SetPoint", (PyCFunction) _wrap_wxTreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeEvent_SetOldItem", (PyCFunction) _wrap_wxTreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS },
+ { "wxTreeEvent_SetItem", (PyCFunction) _wrap_wxTreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS },
{ "wxTreeEvent_IsEditCancelled", (PyCFunction) _wrap_wxTreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS },
{ "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
{ "wxTreeEvent_GetKeyCode", (PyCFunction) _wrap_wxTreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
diff --git a/wxPython/src/gtk/controls2.py b/wxPython/src/gtk/controls2.py
index fcbe7ee362..d07fd0d97b 100644
--- a/wxPython/src/gtk/controls2.py
+++ b/wxPython/src/gtk/controls2.py
@@ -143,40 +143,40 @@ class wxListItemAttrPtr :
self.this = this
self.thisown = 0
def SetTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItemAttr_SetTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListItemAttr_SetTextColour(self, *_args, **_kwargs)
return val
def SetBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItemAttr_SetBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListItemAttr_SetBackgroundColour(self, *_args, **_kwargs)
return val
def SetFont(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItemAttr_SetFont,(self,) + _args, _kwargs)
+ val = controls2c.wxListItemAttr_SetFont(self, *_args, **_kwargs)
return val
def HasTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItemAttr_HasTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListItemAttr_HasTextColour(self, *_args, **_kwargs)
return val
def HasBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItemAttr_HasBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListItemAttr_HasBackgroundColour(self, *_args, **_kwargs)
return val
def HasFont(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItemAttr_HasFont,(self,) + _args, _kwargs)
+ val = controls2c.wxListItemAttr_HasFont(self, *_args, **_kwargs)
return val
def GetTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItemAttr_GetTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListItemAttr_GetTextColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItemAttr_GetBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListItemAttr_GetBackgroundColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetFont(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItemAttr_GetFont,(self,) + _args, _kwargs)
+ val = controls2c.wxListItemAttr_GetFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxListItemAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxListItemAttr(wxListItemAttrPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxListItemAttr,_args,_kwargs)
+ self.this = controls2c.new_wxListItemAttr(*_args,**_kwargs)
self.thisown = 1
@@ -193,94 +193,94 @@ class wxListItemPtr(wxObjectPtr):
except:
pass
def Clear(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_Clear,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_Clear(self, *_args, **_kwargs)
return val
def ClearAttributes(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_ClearAttributes,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_ClearAttributes(self, *_args, **_kwargs)
return val
def SetMask(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetMask,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetMask(self, *_args, **_kwargs)
return val
def SetId(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetId,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetId(self, *_args, **_kwargs)
return val
def SetColumn(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetColumn,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetColumn(self, *_args, **_kwargs)
return val
def SetState(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetState,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetState(self, *_args, **_kwargs)
return val
def SetStateMask(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetStateMask,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetStateMask(self, *_args, **_kwargs)
return val
def SetText(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetText,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetText(self, *_args, **_kwargs)
return val
def SetImage(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetImage,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetImage(self, *_args, **_kwargs)
return val
def SetData(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetData,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetData(self, *_args, **_kwargs)
return val
def SetWidth(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetWidth,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetWidth(self, *_args, **_kwargs)
return val
def SetAlign(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetAlign,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetAlign(self, *_args, **_kwargs)
return val
def SetTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetTextColour(self, *_args, **_kwargs)
return val
def SetBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetBackgroundColour(self, *_args, **_kwargs)
return val
def SetFont(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_SetFont,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_SetFont(self, *_args, **_kwargs)
return val
def GetMask(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetMask,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetMask(self, *_args, **_kwargs)
return val
def GetId(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetId,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetId(self, *_args, **_kwargs)
return val
def GetColumn(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetColumn,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetColumn(self, *_args, **_kwargs)
return val
def GetState(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetState,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetState(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetText,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetText(self, *_args, **_kwargs)
return val
def GetImage(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetImage,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetImage(self, *_args, **_kwargs)
return val
def GetData(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetData,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetData(self, *_args, **_kwargs)
return val
def GetWidth(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetWidth,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetWidth(self, *_args, **_kwargs)
return val
def GetAlign(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetAlign,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetAlign(self, *_args, **_kwargs)
return val
def GetAttributes(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetAttributes,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetAttributes(self, *_args, **_kwargs)
if val: val = wxListItemAttrPtr(val)
return val
def HasAttributes(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_HasAttributes,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_HasAttributes(self, *_args, **_kwargs)
return val
def GetTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetTextColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetBackgroundColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetFont(self, *_args, **_kwargs):
- val = apply(controls2c.wxListItem_GetFont,(self,) + _args, _kwargs)
+ val = controls2c.wxListItem_GetFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def __setattr__(self,name,value):
@@ -338,10 +338,10 @@ class wxListItemPtr(wxObjectPtr):
return controls2c.wxListItem_m_width_get(self)
raise AttributeError,name
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxListItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxListItem(wxListItemPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxListItem,_args,_kwargs)
+ self.this = controls2c.new_wxListItem(*_args,**_kwargs)
self.thisown = 1
@@ -352,41 +352,41 @@ class wxListEventPtr(wxNotifyEventPtr):
self.this = this
self.thisown = 0
def GetKeyCode(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetKeyCode,(self,) + _args, _kwargs)
+ val = controls2c.wxListEvent_GetKeyCode(self, *_args, **_kwargs)
return val
def GetIndex(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetIndex,(self,) + _args, _kwargs)
+ val = controls2c.wxListEvent_GetIndex(self, *_args, **_kwargs)
return val
def GetColumn(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetColumn,(self,) + _args, _kwargs)
+ val = controls2c.wxListEvent_GetColumn(self, *_args, **_kwargs)
return val
def GetPoint(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetPoint,(self,) + _args, _kwargs)
+ val = controls2c.wxListEvent_GetPoint(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def GetLabel(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetLabel,(self,) + _args, _kwargs)
+ val = controls2c.wxListEvent_GetLabel(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetText,(self,) + _args, _kwargs)
+ val = controls2c.wxListEvent_GetText(self, *_args, **_kwargs)
return val
def GetImage(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetImage,(self,) + _args, _kwargs)
+ val = controls2c.wxListEvent_GetImage(self, *_args, **_kwargs)
return val
def GetData(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetData,(self,) + _args, _kwargs)
+ val = controls2c.wxListEvent_GetData(self, *_args, **_kwargs)
return val
def GetMask(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetMask,(self,) + _args, _kwargs)
+ val = controls2c.wxListEvent_GetMask(self, *_args, **_kwargs)
return val
def GetItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListEvent_GetItem(self, *_args, **_kwargs)
return val
def GetCacheFrom(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetCacheFrom,(self,) + _args, _kwargs)
+ val = controls2c.wxListEvent_GetCacheFrom(self, *_args, **_kwargs)
return val
def GetCacheTo(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetCacheTo,(self,) + _args, _kwargs)
+ val = controls2c.wxListEvent_GetCacheTo(self, *_args, **_kwargs)
return val
def __setattr__(self,name,value):
if name == "m_code" :
@@ -423,11 +423,11 @@ class wxListEventPtr(wxNotifyEventPtr):
return wxListItemPtr(controls2c.wxListEvent_m_item_get(self))
raise AttributeError,name
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxListEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
GetCode = GetKeyCode
class wxListEvent(wxListEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxListEvent,_args,_kwargs)
+ self.this = controls2c.new_wxListEvent(*_args,**_kwargs)
self.thisown = 1
@@ -438,217 +438,217 @@ class wxListCtrlPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_Create,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_Create(self, *_args, **_kwargs)
return val
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl__setCallbackInfo,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl__setCallbackInfo(self, *_args, **_kwargs)
return val
def SetForegroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetForegroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetForegroundColour(self, *_args, **_kwargs)
return val
def SetBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetBackgroundColour(self, *_args, **_kwargs)
return val
def GetColumn(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetColumn,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetColumn(self, *_args, **_kwargs)
return val
def SetColumn(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetColumn,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetColumn(self, *_args, **_kwargs)
return val
def GetColumnWidth(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetColumnWidth,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetColumnWidth(self, *_args, **_kwargs)
return val
def SetColumnWidth(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetColumnWidth,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetColumnWidth(self, *_args, **_kwargs)
return val
def GetCountPerPage(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetCountPerPage,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetCountPerPage(self, *_args, **_kwargs)
return val
def GetItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetItem(self, *_args, **_kwargs)
return val
def SetItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetItem(self, *_args, **_kwargs)
return val
def SetStringItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetStringItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetStringItem(self, *_args, **_kwargs)
return val
def GetItemState(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetItemState,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetItemState(self, *_args, **_kwargs)
return val
def SetItemState(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetItemState,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetItemState(self, *_args, **_kwargs)
return val
def SetItemImage(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetItemImage,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetItemImage(self, *_args, **_kwargs)
return val
def GetItemText(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetItemText,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetItemText(self, *_args, **_kwargs)
return val
def SetItemText(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetItemText,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetItemText(self, *_args, **_kwargs)
return val
def GetItemData(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetItemData,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetItemData(self, *_args, **_kwargs)
return val
def SetItemData(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetItemData,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetItemData(self, *_args, **_kwargs)
return val
def GetItemPosition(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetItemPosition,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetItemPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def GetItemRect(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetItemRect,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetItemRect(self, *_args, **_kwargs)
if val: val = wxRectPtr(val) ; val.thisown = 1
return val
def SetItemPosition(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetItemPosition,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetItemPosition(self, *_args, **_kwargs)
return val
def GetItemCount(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetItemCount,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetItemCount(self, *_args, **_kwargs)
return val
def GetColumnCount(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetColumnCount,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetColumnCount(self, *_args, **_kwargs)
return val
def GetItemSpacing(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetItemSpacing,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetItemSpacing(self, *_args, **_kwargs)
return val
def SetItemSpacing(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetItemSpacing,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetItemSpacing(self, *_args, **_kwargs)
return val
def GetSelectedItemCount(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetSelectedItemCount,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetSelectedItemCount(self, *_args, **_kwargs)
return val
def GetTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetTextColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetTextColour(self, *_args, **_kwargs)
return val
def GetTopItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetTopItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetTopItem(self, *_args, **_kwargs)
return val
def SetSingleStyle(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetSingleStyle,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetSingleStyle(self, *_args, **_kwargs)
return val
def SetWindowStyleFlag(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetWindowStyleFlag,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetWindowStyleFlag(self, *_args, **_kwargs)
return val
def GetNextItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetNextItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetNextItem(self, *_args, **_kwargs)
return val
def GetImageList(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetImageList,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetImageList(self, *_args, **_kwargs)
return val
def SetImageList(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetImageList,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetImageList(self, *_args, **_kwargs)
return val
def AssignImageList(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_AssignImageList,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_AssignImageList(self, *_args, **_kwargs)
_args[0].thisown = 0
return val
def IsVirtual(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_IsVirtual,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_IsVirtual(self, *_args, **_kwargs)
return val
def RefreshItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_RefreshItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_RefreshItem(self, *_args, **_kwargs)
return val
def RefreshItems(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_RefreshItems,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_RefreshItems(self, *_args, **_kwargs)
return val
def Arrange(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_Arrange,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_Arrange(self, *_args, **_kwargs)
return val
def DeleteItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_DeleteItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_DeleteItem(self, *_args, **_kwargs)
return val
def DeleteAllItems(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_DeleteAllItems,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_DeleteAllItems(self, *_args, **_kwargs)
return val
def DeleteColumn(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_DeleteColumn,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_DeleteColumn(self, *_args, **_kwargs)
return val
def DeleteAllColumns(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_DeleteAllColumns,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_DeleteAllColumns(self, *_args, **_kwargs)
return val
def ClearAll(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_ClearAll,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_ClearAll(self, *_args, **_kwargs)
return val
def EditLabel(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_EditLabel,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_EditLabel(self, *_args, **_kwargs)
return val
def EnsureVisible(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_EnsureVisible,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_EnsureVisible(self, *_args, **_kwargs)
return val
def FindItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_FindItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_FindItem(self, *_args, **_kwargs)
return val
def FindItemData(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_FindItemData,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_FindItemData(self, *_args, **_kwargs)
return val
def FindItemAtPos(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_FindItemAtPos,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_FindItemAtPos(self, *_args, **_kwargs)
return val
def HitTest(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_HitTest,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_HitTest(self, *_args, **_kwargs)
return val
def InsertItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_InsertItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_InsertItem(self, *_args, **_kwargs)
return val
def InsertStringItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_InsertStringItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_InsertStringItem(self, *_args, **_kwargs)
return val
def InsertImageItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_InsertImageItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_InsertImageItem(self, *_args, **_kwargs)
return val
def InsertImageStringItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_InsertImageStringItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_InsertImageStringItem(self, *_args, **_kwargs)
return val
def InsertColumnInfo(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_InsertColumnInfo,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_InsertColumnInfo(self, *_args, **_kwargs)
return val
def InsertColumn(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_InsertColumn,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_InsertColumn(self, *_args, **_kwargs)
return val
def SetItemCount(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetItemCount,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetItemCount(self, *_args, **_kwargs)
return val
def ScrollList(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_ScrollList,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_ScrollList(self, *_args, **_kwargs)
return val
def SetItemTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetItemTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetItemTextColour(self, *_args, **_kwargs)
return val
def GetItemTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetItemTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetItemTextColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetItemBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SetItemBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SetItemBackgroundColour(self, *_args, **_kwargs)
return val
def GetItemBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetItemBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetItemBackgroundColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SortItems(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_SortItems,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_SortItems(self, *_args, **_kwargs)
return val
def GetMainWindow(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetMainWindow,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetMainWindow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
def GetColumn(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetColumn,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetColumn(self, *_args, **_kwargs)
if val is not None: val.thisown = 1
return val
def GetItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListCtrl_GetItem(self, *_args, **_kwargs)
if val is not None: val.thisown = 1
return val
@@ -707,7 +707,7 @@ class wxListCtrlPtr(wxControlPtr):
class wxListCtrl(wxListCtrlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxListCtrl,_args,_kwargs)
+ self.this = controls2c.new_wxListCtrl(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxListCtrl)
self._setOORInfo(self)
@@ -715,7 +715,7 @@ class wxListCtrl(wxListCtrlPtr):
def wxPreListCtrl(*_args,**_kwargs):
- val = wxListCtrlPtr(apply(controls2c.new_wxPreListCtrl,_args,_kwargs))
+ val = wxListCtrlPtr(controls2c.new_wxPreListCtrl(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -726,44 +726,44 @@ class wxListViewPtr(wxListCtrlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controls2c.wxListView_Create,(self,) + _args, _kwargs)
+ val = controls2c.wxListView_Create(self, *_args, **_kwargs)
return val
def Select(self, *_args, **_kwargs):
- val = apply(controls2c.wxListView_Select,(self,) + _args, _kwargs)
+ val = controls2c.wxListView_Select(self, *_args, **_kwargs)
return val
def Focus(self, *_args, **_kwargs):
- val = apply(controls2c.wxListView_Focus,(self,) + _args, _kwargs)
+ val = controls2c.wxListView_Focus(self, *_args, **_kwargs)
return val
def GetFocusedItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxListView_GetFocusedItem,(self,) + _args, _kwargs)
+ val = controls2c.wxListView_GetFocusedItem(self, *_args, **_kwargs)
return val
def GetNextSelected(self, *_args, **_kwargs):
- val = apply(controls2c.wxListView_GetNextSelected,(self,) + _args, _kwargs)
+ val = controls2c.wxListView_GetNextSelected(self, *_args, **_kwargs)
return val
def GetFirstSelected(self, *_args, **_kwargs):
- val = apply(controls2c.wxListView_GetFirstSelected,(self,) + _args, _kwargs)
+ val = controls2c.wxListView_GetFirstSelected(self, *_args, **_kwargs)
return val
def IsSelected(self, *_args, **_kwargs):
- val = apply(controls2c.wxListView_IsSelected,(self,) + _args, _kwargs)
+ val = controls2c.wxListView_IsSelected(self, *_args, **_kwargs)
return val
def SetColumnImage(self, *_args, **_kwargs):
- val = apply(controls2c.wxListView_SetColumnImage,(self,) + _args, _kwargs)
+ val = controls2c.wxListView_SetColumnImage(self, *_args, **_kwargs)
return val
def ClearColumnImage(self, *_args, **_kwargs):
- val = apply(controls2c.wxListView_ClearColumnImage,(self,) + _args, _kwargs)
+ val = controls2c.wxListView_ClearColumnImage(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxListView instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxListView(wxListViewPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxListView,_args,_kwargs)
+ self.this = controls2c.new_wxListView(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreListView(*_args,**_kwargs):
- val = wxListViewPtr(apply(controls2c.new_wxPreListView,_args,_kwargs))
+ val = wxListViewPtr(controls2c.new_wxPreListView(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -774,40 +774,40 @@ class wxTreeItemAttrPtr :
self.this = this
self.thisown = 0
def SetTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemAttr_SetTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemAttr_SetTextColour(self, *_args, **_kwargs)
return val
def SetBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemAttr_SetBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemAttr_SetBackgroundColour(self, *_args, **_kwargs)
return val
def SetFont(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemAttr_SetFont,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemAttr_SetFont(self, *_args, **_kwargs)
return val
def HasTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemAttr_HasTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemAttr_HasTextColour(self, *_args, **_kwargs)
return val
def HasBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemAttr_HasBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemAttr_HasBackgroundColour(self, *_args, **_kwargs)
return val
def HasFont(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemAttr_HasFont,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemAttr_HasFont(self, *_args, **_kwargs)
return val
def GetTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemAttr_GetTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemAttr_GetTextColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemAttr_GetBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemAttr_GetBackgroundColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetFont(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemAttr_GetFont,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemAttr_GetFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTreeItemAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxTreeItemAttr(wxTreeItemAttrPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxTreeItemAttr,_args,_kwargs)
+ self.this = controls2c.new_wxTreeItemAttr(*_args,**_kwargs)
self.thisown = 1
@@ -824,17 +824,21 @@ class wxTreeItemIdPtr :
except:
pass
def IsOk(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemId_IsOk,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemId_IsOk(self, *_args, **_kwargs)
return val
def __cmp__(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemId___cmp__,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemId___cmp__(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTreeItemId instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+
Ok = IsOk
+ def __nonzero__(self):
+ return self.IsOk()
+
class wxTreeItemId(wxTreeItemIdPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxTreeItemId,_args,_kwargs)
+ self.this = controls2c.new_wxTreeItemId(*_args,**_kwargs)
self.thisown = 1
@@ -845,23 +849,23 @@ class wxTreeItemDataPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def GetData(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemData_GetData,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemData_GetData(self, *_args, **_kwargs)
return val
def SetData(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemData_SetData,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemData_SetData(self, *_args, **_kwargs)
return val
def GetId(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemData_GetId,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemData_GetId(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val)
return val
def SetId(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeItemData_SetId,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeItemData_SetId(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTreeItemData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxTreeItemData(wxTreeItemDataPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxTreeItemData,_args,_kwargs)
+ self.this = controls2c.new_wxTreeItemData(*_args,**_kwargs)
self.thisown = 1
@@ -872,36 +876,54 @@ class wxTreeEventPtr(wxNotifyEventPtr):
self.this = this
self.thisown = 0
def GetItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeEvent_GetItem,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeEvent_GetItem(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def GetOldItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeEvent_GetOldItem,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeEvent_GetOldItem(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def GetPoint(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeEvent_GetPoint,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeEvent_GetPoint(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def GetKeyEvent(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeEvent_GetKeyEvent,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeEvent_GetKeyEvent(self, *_args, **_kwargs)
if val: val = wxKeyEventPtr(val)
return val
def GetKeyCode(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeEvent_GetKeyCode,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeEvent_GetKeyCode(self, *_args, **_kwargs)
return val
def GetLabel(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeEvent_GetLabel,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeEvent_GetLabel(self, *_args, **_kwargs)
return val
def IsEditCancelled(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeEvent_IsEditCancelled,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeEvent_IsEditCancelled(self, *_args, **_kwargs)
+ return val
+ def SetItem(self, *_args, **_kwargs):
+ val = controls2c.wxTreeEvent_SetItem(self, *_args, **_kwargs)
+ return val
+ def SetOldItem(self, *_args, **_kwargs):
+ val = controls2c.wxTreeEvent_SetOldItem(self, *_args, **_kwargs)
+ return val
+ def SetPoint(self, *_args, **_kwargs):
+ val = controls2c.wxTreeEvent_SetPoint(self, *_args, **_kwargs)
+ return val
+ def SetKeyEvent(self, *_args, **_kwargs):
+ val = controls2c.wxTreeEvent_SetKeyEvent(self, *_args, **_kwargs)
+ return val
+ def SetLabel(self, *_args, **_kwargs):
+ val = controls2c.wxTreeEvent_SetLabel(self, *_args, **_kwargs)
+ return val
+ def SetEditCanceled(self, *_args, **_kwargs):
+ val = controls2c.wxTreeEvent_SetEditCanceled(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTreeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
GetCode = GetKeyCode
class wxTreeEvent(wxTreeEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxTreeEvent,_args,_kwargs)
+ self.this = controls2c.new_wxTreeEvent(*_args,**_kwargs)
self.thisown = 1
@@ -912,261 +934,261 @@ class wxTreeCtrlPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_Create,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_Create(self, *_args, **_kwargs)
return val
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl__setCallbackInfo,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl__setCallbackInfo(self, *_args, **_kwargs)
return val
def GetCount(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetCount,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetCount(self, *_args, **_kwargs)
return val
def GetIndent(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetIndent,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetIndent(self, *_args, **_kwargs)
return val
def SetIndent(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetIndent,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetIndent(self, *_args, **_kwargs)
return val
def GetImageList(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetImageList,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetImageList(self, *_args, **_kwargs)
return val
def GetStateImageList(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetStateImageList,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetStateImageList(self, *_args, **_kwargs)
return val
def SetImageList(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetImageList,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetImageList(self, *_args, **_kwargs)
return val
def SetStateImageList(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetStateImageList,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetStateImageList(self, *_args, **_kwargs)
return val
def AssignImageList(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_AssignImageList,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_AssignImageList(self, *_args, **_kwargs)
_args[0].thisown = 0
return val
def AssignStateImageList(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_AssignStateImageList,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_AssignStateImageList(self, *_args, **_kwargs)
_args[0].thisown = 0
return val
def GetSpacing(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetSpacing,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetSpacing(self, *_args, **_kwargs)
return val
def SetSpacing(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetSpacing,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetSpacing(self, *_args, **_kwargs)
return val
def GetItemText(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetItemText,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetItemText(self, *_args, **_kwargs)
return val
def GetItemImage(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetItemImage,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetItemImage(self, *_args, **_kwargs)
return val
def GetItemSelectedImage(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetItemSelectedImage,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetItemSelectedImage(self, *_args, **_kwargs)
return val
def SetItemText(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetItemText,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetItemText(self, *_args, **_kwargs)
return val
def SetItemImage(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetItemImage,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetItemImage(self, *_args, **_kwargs)
return val
def SetItemSelectedImage(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetItemSelectedImage,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetItemSelectedImage(self, *_args, **_kwargs)
return val
def SetItemHasChildren(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetItemHasChildren(self, *_args, **_kwargs)
return val
def GetItemData(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetItemData,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetItemData(self, *_args, **_kwargs)
if val: val = wxTreeItemDataPtr(val)
return val
def SetItemData(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetItemData,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetItemData(self, *_args, **_kwargs)
return val
def GetPyData(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetPyData,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetPyData(self, *_args, **_kwargs)
return val
def SetPyData(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetPyData,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetPyData(self, *_args, **_kwargs)
return val
def GetItemTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetItemTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetItemTextColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetItemBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetItemBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetItemBackgroundColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetItemFont(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetItemFont,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetItemFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def IsVisible(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_IsVisible,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_IsVisible(self, *_args, **_kwargs)
return val
def ItemHasChildren(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_ItemHasChildren,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_ItemHasChildren(self, *_args, **_kwargs)
return val
def IsExpanded(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_IsExpanded,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_IsExpanded(self, *_args, **_kwargs)
return val
def IsSelected(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_IsSelected,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_IsSelected(self, *_args, **_kwargs)
return val
def GetRootItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetRootItem,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetRootItem(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def GetSelection(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetSelection,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetSelection(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def GetItemParent(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetItemParent,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetItemParent(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def GetSelections(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetSelections,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetSelections(self, *_args, **_kwargs)
return val
def GetChildrenCount(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetChildrenCount,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetChildrenCount(self, *_args, **_kwargs)
return val
def GetFirstChild(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetFirstChild,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetFirstChild(self, *_args, **_kwargs)
return val
def GetNextChild(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetNextChild,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetNextChild(self, *_args, **_kwargs)
return val
def GetNextSibling(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetNextSibling,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetNextSibling(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def GetPrevSibling(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetPrevSibling,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetPrevSibling(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def GetFirstVisibleItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetFirstVisibleItem,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetFirstVisibleItem(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def GetNextVisible(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetNextVisible,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetNextVisible(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def GetPrevVisible(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetPrevVisible,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetPrevVisible(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def GetLastChild(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetLastChild,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetLastChild(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def AddRoot(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_AddRoot,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_AddRoot(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def PrependItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_PrependItem,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_PrependItem(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def InsertItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_InsertItem,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_InsertItem(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def InsertItemBefore(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_InsertItemBefore,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_InsertItemBefore(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def AppendItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_AppendItem,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_AppendItem(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def Delete(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_Delete,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_Delete(self, *_args, **_kwargs)
return val
def DeleteChildren(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_DeleteChildren,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_DeleteChildren(self, *_args, **_kwargs)
return val
def DeleteAllItems(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_DeleteAllItems,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_DeleteAllItems(self, *_args, **_kwargs)
return val
def Expand(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_Expand,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_Expand(self, *_args, **_kwargs)
return val
def Collapse(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_Collapse,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_Collapse(self, *_args, **_kwargs)
return val
def CollapseAndReset(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_CollapseAndReset,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_CollapseAndReset(self, *_args, **_kwargs)
return val
def Toggle(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_Toggle,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_Toggle(self, *_args, **_kwargs)
return val
def Unselect(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_Unselect,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_Unselect(self, *_args, **_kwargs)
return val
def UnselectAll(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_UnselectAll,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_UnselectAll(self, *_args, **_kwargs)
return val
def SelectItem(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SelectItem,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SelectItem(self, *_args, **_kwargs)
return val
def EnsureVisible(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_EnsureVisible,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_EnsureVisible(self, *_args, **_kwargs)
return val
def ScrollTo(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_ScrollTo,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_ScrollTo(self, *_args, **_kwargs)
return val
def GetEditControl(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetEditControl,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetEditControl(self, *_args, **_kwargs)
return val
def EditLabel(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_EditLabel,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_EditLabel(self, *_args, **_kwargs)
return val
def SortChildren(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SortChildren,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SortChildren(self, *_args, **_kwargs)
return val
def SetItemBold(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetItemBold,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetItemBold(self, *_args, **_kwargs)
return val
def IsBold(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_IsBold,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_IsBold(self, *_args, **_kwargs)
return val
def HitTest(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_HitTest(self, *_args, **_kwargs)
return val
def SetItemTextColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetItemTextColour,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetItemTextColour(self, *_args, **_kwargs)
return val
def SetItemBackgroundColour(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetItemBackgroundColour,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetItemBackgroundColour(self, *_args, **_kwargs)
return val
def SetItemFont(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_SetItemFont,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_SetItemFont(self, *_args, **_kwargs)
return val
def GetBoundingRect(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeCtrl_GetBoundingRect,(self,) + _args, _kwargs)
+ val = controls2c.wxTreeCtrl_GetBoundingRect(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTreeCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
# Redefine some methods that SWIG gets a bit confused on...
def GetFirstChild(self, *_args, **_kwargs):
- val1,val2 = apply(controls2c.wxTreeCtrl_GetFirstChild,(self,) + _args, _kwargs)
+ val1,val2 = controls2c.wxTreeCtrl_GetFirstChild(self, *_args, **_kwargs)
val1 = wxTreeItemIdPtr(val1)
val1.thisown = 1
return (val1,val2)
def GetNextChild(self, *_args, **_kwargs):
- val1,val2 = apply(controls2c.wxTreeCtrl_GetNextChild,(self,) + _args, _kwargs)
+ val1,val2 = controls2c.wxTreeCtrl_GetNextChild(self, *_args, **_kwargs)
val1 = wxTreeItemIdPtr(val1)
val1.thisown = 1
return (val1,val2)
def HitTest(self, *_args, **_kwargs):
- val1, val2 = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs)
+ val1, val2 = controls2c.wxTreeCtrl_HitTest(self, *_args, **_kwargs)
val1 = wxTreeItemIdPtr(val1)
val1.thisown = 1
return (val1,val2)
class wxTreeCtrl(wxTreeCtrlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxTreeCtrl,_args,_kwargs)
+ self.this = controls2c.new_wxTreeCtrl(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxTreeCtrl)
self._setOORInfo(self)
@@ -1174,7 +1196,7 @@ class wxTreeCtrl(wxTreeCtrlPtr):
def wxPreTreeCtrl(*_args,**_kwargs):
- val = wxTreeCtrlPtr(apply(controls2c.new_wxPreTreeCtrl,_args,_kwargs))
+ val = wxTreeCtrlPtr(controls2c.new_wxPreTreeCtrl(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -1185,7 +1207,7 @@ class wxDirItemDataPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def SetNewDirName(self, *_args, **_kwargs):
- val = apply(controls2c.wxDirItemData_SetNewDirName,(self,) + _args, _kwargs)
+ val = controls2c.wxDirItemData_SetNewDirName(self, *_args, **_kwargs)
return val
def __setattr__(self,name,value):
if name == "m_path" :
@@ -1217,10 +1239,10 @@ class wxDirItemDataPtr(wxObjectPtr):
return controls2c.wxDirItemData_m_isDir_get(self)
raise AttributeError,name
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDirItemData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDirItemData(wxDirItemDataPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxDirItemData,_args,_kwargs)
+ self.this = controls2c.new_wxDirItemData(*_args,**_kwargs)
self.thisown = 1
@@ -1231,67 +1253,70 @@ class wxGenericDirCtrlPtr(wxControlPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_Create,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_Create(self, *_args, **_kwargs)
return val
def ExpandPath(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_ExpandPath,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_ExpandPath(self, *_args, **_kwargs)
return val
def GetDefaultPath(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_GetDefaultPath,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_GetDefaultPath(self, *_args, **_kwargs)
return val
def SetDefaultPath(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_SetDefaultPath,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_SetDefaultPath(self, *_args, **_kwargs)
return val
def GetPath(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_GetPath,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_GetPath(self, *_args, **_kwargs)
return val
def GetFilePath(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_GetFilePath,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_GetFilePath(self, *_args, **_kwargs)
return val
def SetPath(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_SetPath,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_SetPath(self, *_args, **_kwargs)
return val
def ShowHidden(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_ShowHidden,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_ShowHidden(self, *_args, **_kwargs)
return val
def GetShowHidden(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_GetShowHidden,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_GetShowHidden(self, *_args, **_kwargs)
return val
def GetFilter(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_GetFilter,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_GetFilter(self, *_args, **_kwargs)
return val
def SetFilter(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_SetFilter,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_SetFilter(self, *_args, **_kwargs)
return val
def GetFilterIndex(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_GetFilterIndex,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_GetFilterIndex(self, *_args, **_kwargs)
return val
def SetFilterIndex(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_SetFilterIndex,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_SetFilterIndex(self, *_args, **_kwargs)
return val
def GetRootId(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_GetRootId,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_GetRootId(self, *_args, **_kwargs)
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
return val
def GetTreeCtrl(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_GetTreeCtrl,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_GetTreeCtrl(self, *_args, **_kwargs)
return val
def GetFilterListCtrl(self, *_args, **_kwargs):
- val = apply(controls2c.wxGenericDirCtrl_GetFilterListCtrl,(self,) + _args, _kwargs)
+ val = controls2c.wxGenericDirCtrl_GetFilterListCtrl(self, *_args, **_kwargs)
if val: val = wxDirFilterListCtrlPtr(val)
return val
+ def ReCreateTree(self, *_args, **_kwargs):
+ val = controls2c.wxGenericDirCtrl_ReCreateTree(self, *_args, **_kwargs)
+ return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGenericDirCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGenericDirCtrl(wxGenericDirCtrlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxGenericDirCtrl,_args,_kwargs)
+ self.this = controls2c.new_wxGenericDirCtrl(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreGenericDirCtrl(*_args,**_kwargs):
- val = wxGenericDirCtrlPtr(apply(controls2c.new_wxPreGenericDirCtrl,_args,_kwargs))
+ val = wxGenericDirCtrlPtr(controls2c.new_wxPreGenericDirCtrl(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -1302,23 +1327,23 @@ class wxDirFilterListCtrlPtr(wxChoicePtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(controls2c.wxDirFilterListCtrl_Create,(self,) + _args, _kwargs)
+ val = controls2c.wxDirFilterListCtrl_Create(self, *_args, **_kwargs)
return val
def FillFilterList(self, *_args, **_kwargs):
- val = apply(controls2c.wxDirFilterListCtrl_FillFilterList,(self,) + _args, _kwargs)
+ val = controls2c.wxDirFilterListCtrl_FillFilterList(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDirFilterListCtrl(wxDirFilterListCtrlPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(controls2c.new_wxDirFilterListCtrl,_args,_kwargs)
+ self.this = controls2c.new_wxDirFilterListCtrl(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreDirFilterListCtrl(*_args,**_kwargs):
- val = wxDirFilterListCtrlPtr(apply(controls2c.new_wxPreDirFilterListCtrl,_args,_kwargs))
+ val = wxDirFilterListCtrlPtr(controls2c.new_wxPreDirFilterListCtrl(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
diff --git a/wxPython/src/gtk/events.py b/wxPython/src/gtk/events.py
index 3f52c08034..2d5de7f5b7 100644
--- a/wxPython/src/gtk/events.py
+++ b/wxPython/src/gtk/events.py
@@ -17,41 +17,41 @@ class wxEventPtr(wxObjectPtr):
except:
pass
def GetEventObject(self, *_args, **_kwargs):
- val = apply(eventsc.wxEvent_GetEventObject,(self,) + _args, _kwargs)
+ val = eventsc.wxEvent_GetEventObject(self, *_args, **_kwargs)
return val
def GetEventType(self, *_args, **_kwargs):
- val = apply(eventsc.wxEvent_GetEventType,(self,) + _args, _kwargs)
+ val = eventsc.wxEvent_GetEventType(self, *_args, **_kwargs)
return val
def GetId(self, *_args, **_kwargs):
- val = apply(eventsc.wxEvent_GetId,(self,) + _args, _kwargs)
+ val = eventsc.wxEvent_GetId(self, *_args, **_kwargs)
return val
def GetSkipped(self, *_args, **_kwargs):
- val = apply(eventsc.wxEvent_GetSkipped,(self,) + _args, _kwargs)
+ val = eventsc.wxEvent_GetSkipped(self, *_args, **_kwargs)
return val
def GetTimestamp(self, *_args, **_kwargs):
- val = apply(eventsc.wxEvent_GetTimestamp,(self,) + _args, _kwargs)
+ val = eventsc.wxEvent_GetTimestamp(self, *_args, **_kwargs)
return val
def SetEventObject(self, *_args, **_kwargs):
- val = apply(eventsc.wxEvent_SetEventObject,(self,) + _args, _kwargs)
+ val = eventsc.wxEvent_SetEventObject(self, *_args, **_kwargs)
return val
def SetEventType(self, *_args, **_kwargs):
- val = apply(eventsc.wxEvent_SetEventType,(self,) + _args, _kwargs)
+ val = eventsc.wxEvent_SetEventType(self, *_args, **_kwargs)
return val
def SetId(self, *_args, **_kwargs):
- val = apply(eventsc.wxEvent_SetId,(self,) + _args, _kwargs)
+ val = eventsc.wxEvent_SetId(self, *_args, **_kwargs)
return val
def SetTimestamp(self, *_args, **_kwargs):
- val = apply(eventsc.wxEvent_SetTimestamp,(self,) + _args, _kwargs)
+ val = eventsc.wxEvent_SetTimestamp(self, *_args, **_kwargs)
return val
def Skip(self, *_args, **_kwargs):
- val = apply(eventsc.wxEvent_Skip,(self,) + _args, _kwargs)
+ val = eventsc.wxEvent_Skip(self, *_args, **_kwargs)
return val
def Clone(self, *_args, **_kwargs):
- val = apply(eventsc.wxEvent_Clone,(self,) + _args, _kwargs)
+ val = eventsc.wxEvent_Clone(self, *_args, **_kwargs)
if val: val = wxEventPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxEvent(wxEventPtr):
def __init__(self,this):
self.this = this
@@ -64,14 +64,14 @@ class wxSizeEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetSize(self, *_args, **_kwargs):
- val = apply(eventsc.wxSizeEvent_GetSize,(self,) + _args, _kwargs)
+ val = eventsc.wxSizeEvent_GetSize(self, *_args, **_kwargs)
if val: val = wxSizePtr(val) ; val.thisown = 1
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxSizeEvent(wxSizeEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxSizeEvent,_args,_kwargs)
+ self.this = eventsc.new_wxSizeEvent(*_args,**_kwargs)
self.thisown = 1
@@ -82,28 +82,28 @@ class wxCloseEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def SetLoggingOff(self, *_args, **_kwargs):
- val = apply(eventsc.wxCloseEvent_SetLoggingOff,(self,) + _args, _kwargs)
+ val = eventsc.wxCloseEvent_SetLoggingOff(self, *_args, **_kwargs)
return val
def GetLoggingOff(self, *_args, **_kwargs):
- val = apply(eventsc.wxCloseEvent_GetLoggingOff,(self,) + _args, _kwargs)
+ val = eventsc.wxCloseEvent_GetLoggingOff(self, *_args, **_kwargs)
return val
def Veto(self, *_args, **_kwargs):
- val = apply(eventsc.wxCloseEvent_Veto,(self,) + _args, _kwargs)
+ val = eventsc.wxCloseEvent_Veto(self, *_args, **_kwargs)
return val
def CanVeto(self, *_args, **_kwargs):
- val = apply(eventsc.wxCloseEvent_CanVeto,(self,) + _args, _kwargs)
+ val = eventsc.wxCloseEvent_CanVeto(self, *_args, **_kwargs)
return val
def GetVeto(self, *_args, **_kwargs):
- val = apply(eventsc.wxCloseEvent_GetVeto,(self,) + _args, _kwargs)
+ val = eventsc.wxCloseEvent_GetVeto(self, *_args, **_kwargs)
return val
def SetCanVeto(self, *_args, **_kwargs):
- val = apply(eventsc.wxCloseEvent_SetCanVeto,(self,) + _args, _kwargs)
+ val = eventsc.wxCloseEvent_SetCanVeto(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxCloseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxCloseEvent(wxCloseEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxCloseEvent,_args,_kwargs)
+ self.this = eventsc.new_wxCloseEvent(*_args,**_kwargs)
self.thisown = 1
@@ -114,43 +114,43 @@ class wxCommandEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def IsChecked(self, *_args, **_kwargs):
- val = apply(eventsc.wxCommandEvent_IsChecked,(self,) + _args, _kwargs)
+ val = eventsc.wxCommandEvent_IsChecked(self, *_args, **_kwargs)
return val
def Checked(self, *_args, **_kwargs):
- val = apply(eventsc.wxCommandEvent_Checked,(self,) + _args, _kwargs)
+ val = eventsc.wxCommandEvent_Checked(self, *_args, **_kwargs)
return val
def GetExtraLong(self, *_args, **_kwargs):
- val = apply(eventsc.wxCommandEvent_GetExtraLong,(self,) + _args, _kwargs)
+ val = eventsc.wxCommandEvent_GetExtraLong(self, *_args, **_kwargs)
return val
def GetInt(self, *_args, **_kwargs):
- val = apply(eventsc.wxCommandEvent_GetInt,(self,) + _args, _kwargs)
+ val = eventsc.wxCommandEvent_GetInt(self, *_args, **_kwargs)
return val
def GetSelection(self, *_args, **_kwargs):
- val = apply(eventsc.wxCommandEvent_GetSelection,(self,) + _args, _kwargs)
+ val = eventsc.wxCommandEvent_GetSelection(self, *_args, **_kwargs)
return val
def GetString(self, *_args, **_kwargs):
- val = apply(eventsc.wxCommandEvent_GetString,(self,) + _args, _kwargs)
+ val = eventsc.wxCommandEvent_GetString(self, *_args, **_kwargs)
return val
def IsSelection(self, *_args, **_kwargs):
- val = apply(eventsc.wxCommandEvent_IsSelection,(self,) + _args, _kwargs)
+ val = eventsc.wxCommandEvent_IsSelection(self, *_args, **_kwargs)
return val
def SetString(self, *_args, **_kwargs):
- val = apply(eventsc.wxCommandEvent_SetString,(self,) + _args, _kwargs)
+ val = eventsc.wxCommandEvent_SetString(self, *_args, **_kwargs)
return val
def SetExtraLong(self, *_args, **_kwargs):
- val = apply(eventsc.wxCommandEvent_SetExtraLong,(self,) + _args, _kwargs)
+ val = eventsc.wxCommandEvent_SetExtraLong(self, *_args, **_kwargs)
return val
def SetInt(self, *_args, **_kwargs):
- val = apply(eventsc.wxCommandEvent_SetInt,(self,) + _args, _kwargs)
+ val = eventsc.wxCommandEvent_SetInt(self, *_args, **_kwargs)
return val
def GetClientData(self, *_args, **_kwargs):
- val = apply(eventsc.wxCommandEvent_GetClientData,(self,) + _args, _kwargs)
+ val = eventsc.wxCommandEvent_GetClientData(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxCommandEvent(wxCommandEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxCommandEvent,_args,_kwargs)
+ self.this = eventsc.new_wxCommandEvent(*_args,**_kwargs)
self.thisown = 1
@@ -161,16 +161,16 @@ class wxScrollEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def GetOrientation(self, *_args, **_kwargs):
- val = apply(eventsc.wxScrollEvent_GetOrientation,(self,) + _args, _kwargs)
+ val = eventsc.wxScrollEvent_GetOrientation(self, *_args, **_kwargs)
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxScrollEvent_GetPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxScrollEvent_GetPosition(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxScrollEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxScrollEvent(wxScrollEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxScrollEvent,_args,_kwargs)
+ self.this = eventsc.new_wxScrollEvent(*_args,**_kwargs)
self.thisown = 1
@@ -181,16 +181,16 @@ class wxScrollWinEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetOrientation(self, *_args, **_kwargs):
- val = apply(eventsc.wxScrollWinEvent_GetOrientation,(self,) + _args, _kwargs)
+ val = eventsc.wxScrollWinEvent_GetOrientation(self, *_args, **_kwargs)
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxScrollWinEvent_GetPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxScrollWinEvent_GetPosition(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxScrollWinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxScrollWinEvent(wxScrollWinEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxScrollWinEvent,_args,_kwargs)
+ self.this = eventsc.new_wxScrollWinEvent(*_args,**_kwargs)
self.thisown = 1
@@ -201,10 +201,10 @@ class wxSpinEventPtr(wxScrollEventPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSpinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxSpinEvent(wxSpinEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxSpinEvent,_args,_kwargs)
+ self.this = eventsc.new_wxSpinEvent(*_args,**_kwargs)
self.thisown = 1
@@ -215,108 +215,108 @@ class wxMouseEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def IsButton(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_IsButton,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_IsButton(self, *_args, **_kwargs)
return val
def ButtonDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_ButtonDown,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_ButtonDown(self, *_args, **_kwargs)
return val
def ButtonDClick(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_ButtonDClick,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_ButtonDClick(self, *_args, **_kwargs)
return val
def ButtonUp(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_ButtonUp,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_ButtonUp(self, *_args, **_kwargs)
return val
def Button(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_Button,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_Button(self, *_args, **_kwargs)
return val
def ButtonIsDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_ButtonIsDown,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_ButtonIsDown(self, *_args, **_kwargs)
return val
def ControlDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_ControlDown,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_ControlDown(self, *_args, **_kwargs)
return val
def MetaDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_MetaDown,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_MetaDown(self, *_args, **_kwargs)
return val
def AltDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_AltDown,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_AltDown(self, *_args, **_kwargs)
return val
def ShiftDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_ShiftDown,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_ShiftDown(self, *_args, **_kwargs)
return val
def LeftDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_LeftDown,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_LeftDown(self, *_args, **_kwargs)
return val
def MiddleDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_MiddleDown,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_MiddleDown(self, *_args, **_kwargs)
return val
def RightDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_RightDown,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_RightDown(self, *_args, **_kwargs)
return val
def LeftUp(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_LeftUp,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_LeftUp(self, *_args, **_kwargs)
return val
def MiddleUp(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_MiddleUp,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_MiddleUp(self, *_args, **_kwargs)
return val
def RightUp(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_RightUp,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_RightUp(self, *_args, **_kwargs)
return val
def LeftDClick(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_LeftDClick,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_LeftDClick(self, *_args, **_kwargs)
return val
def MiddleDClick(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_MiddleDClick,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_MiddleDClick(self, *_args, **_kwargs)
return val
def RightDClick(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_RightDClick,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_RightDClick(self, *_args, **_kwargs)
return val
def LeftIsDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_LeftIsDown,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_LeftIsDown(self, *_args, **_kwargs)
return val
def MiddleIsDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_MiddleIsDown,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_MiddleIsDown(self, *_args, **_kwargs)
return val
def RightIsDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_RightIsDown,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_RightIsDown(self, *_args, **_kwargs)
return val
def Dragging(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_Dragging,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_Dragging(self, *_args, **_kwargs)
return val
def Moving(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_Moving,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_Moving(self, *_args, **_kwargs)
return val
def Entering(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_Entering,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_Entering(self, *_args, **_kwargs)
return val
def Leaving(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_Leaving,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_Leaving(self, *_args, **_kwargs)
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_GetPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_GetPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def GetPositionTuple(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_GetPositionTuple,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_GetPositionTuple(self, *_args, **_kwargs)
return val
def GetLogicalPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_GetLogicalPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_GetLogicalPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def GetX(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_GetX,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_GetX(self, *_args, **_kwargs)
return val
def GetY(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_GetY,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_GetY(self, *_args, **_kwargs)
return val
def GetWheelRotation(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_GetWheelRotation,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_GetWheelRotation(self, *_args, **_kwargs)
return val
def GetWheelDelta(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_GetWheelDelta,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_GetWheelDelta(self, *_args, **_kwargs)
return val
def GetLinesPerAction(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseEvent_GetLinesPerAction,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseEvent_GetLinesPerAction(self, *_args, **_kwargs)
return val
def __setattr__(self,name,value):
if name == "m_x" :
@@ -383,10 +383,10 @@ class wxMouseEventPtr(wxEventPtr):
return eventsc.wxMouseEvent_m_linesPerAction_get(self)
raise AttributeError,name
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMouseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMouseEvent(wxMouseEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxMouseEvent,_args,_kwargs)
+ self.this = eventsc.new_wxMouseEvent(*_args,**_kwargs)
self.thisown = 1
@@ -397,13 +397,13 @@ class wxMouseCaptureChangedEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetCapturedWindow(self, *_args, **_kwargs):
- val = apply(eventsc.wxMouseCaptureChangedEvent_GetCapturedWindow,(self,) + _args, _kwargs)
+ val = eventsc.wxMouseCaptureChangedEvent_GetCapturedWindow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMouseCaptureChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMouseCaptureChangedEvent(wxMouseCaptureChangedEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxMouseCaptureChangedEvent,_args,_kwargs)
+ self.this = eventsc.new_wxMouseCaptureChangedEvent(*_args,**_kwargs)
self.thisown = 1
@@ -414,26 +414,26 @@ class wxSetCursorEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetX(self, *_args, **_kwargs):
- val = apply(eventsc.wxSetCursorEvent_GetX,(self,) + _args, _kwargs)
+ val = eventsc.wxSetCursorEvent_GetX(self, *_args, **_kwargs)
return val
def GetY(self, *_args, **_kwargs):
- val = apply(eventsc.wxSetCursorEvent_GetY,(self,) + _args, _kwargs)
+ val = eventsc.wxSetCursorEvent_GetY(self, *_args, **_kwargs)
return val
def SetCursor(self, *_args, **_kwargs):
- val = apply(eventsc.wxSetCursorEvent_SetCursor,(self,) + _args, _kwargs)
+ val = eventsc.wxSetCursorEvent_SetCursor(self, *_args, **_kwargs)
return val
def GetCursor(self, *_args, **_kwargs):
- val = apply(eventsc.wxSetCursorEvent_GetCursor,(self,) + _args, _kwargs)
+ val = eventsc.wxSetCursorEvent_GetCursor(self, *_args, **_kwargs)
if val: val = wxCursorPtr(val)
return val
def HasCursor(self, *_args, **_kwargs):
- val = apply(eventsc.wxSetCursorEvent_HasCursor,(self,) + _args, _kwargs)
+ val = eventsc.wxSetCursorEvent_HasCursor(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSetCursorEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxSetCursorEvent(wxSetCursorEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxSetCursorEvent,_args,_kwargs)
+ self.this = eventsc.new_wxSetCursorEvent(*_args,**_kwargs)
self.thisown = 1
@@ -444,41 +444,41 @@ class wxKeyEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def ControlDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxKeyEvent_ControlDown,(self,) + _args, _kwargs)
+ val = eventsc.wxKeyEvent_ControlDown(self, *_args, **_kwargs)
return val
def MetaDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxKeyEvent_MetaDown,(self,) + _args, _kwargs)
+ val = eventsc.wxKeyEvent_MetaDown(self, *_args, **_kwargs)
return val
def AltDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxKeyEvent_AltDown,(self,) + _args, _kwargs)
+ val = eventsc.wxKeyEvent_AltDown(self, *_args, **_kwargs)
return val
def ShiftDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxKeyEvent_ShiftDown,(self,) + _args, _kwargs)
+ val = eventsc.wxKeyEvent_ShiftDown(self, *_args, **_kwargs)
return val
def GetKeyCode(self, *_args, **_kwargs):
- val = apply(eventsc.wxKeyEvent_GetKeyCode,(self,) + _args, _kwargs)
+ val = eventsc.wxKeyEvent_GetKeyCode(self, *_args, **_kwargs)
return val
def HasModifiers(self, *_args, **_kwargs):
- val = apply(eventsc.wxKeyEvent_HasModifiers,(self,) + _args, _kwargs)
+ val = eventsc.wxKeyEvent_HasModifiers(self, *_args, **_kwargs)
return val
def GetRawKeyCode(self, *_args, **_kwargs):
- val = apply(eventsc.wxKeyEvent_GetRawKeyCode,(self,) + _args, _kwargs)
+ val = eventsc.wxKeyEvent_GetRawKeyCode(self, *_args, **_kwargs)
return val
def GetRawKeyFlags(self, *_args, **_kwargs):
- val = apply(eventsc.wxKeyEvent_GetRawKeyFlags,(self,) + _args, _kwargs)
+ val = eventsc.wxKeyEvent_GetRawKeyFlags(self, *_args, **_kwargs)
return val
def GetX(self, *_args, **_kwargs):
- val = apply(eventsc.wxKeyEvent_GetX,(self,) + _args, _kwargs)
+ val = eventsc.wxKeyEvent_GetX(self, *_args, **_kwargs)
return val
def GetY(self, *_args, **_kwargs):
- val = apply(eventsc.wxKeyEvent_GetY,(self,) + _args, _kwargs)
+ val = eventsc.wxKeyEvent_GetY(self, *_args, **_kwargs)
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxKeyEvent_GetPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxKeyEvent_GetPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def GetPositionTuple(self, *_args, **_kwargs):
- val = apply(eventsc.wxKeyEvent_GetPositionTuple,(self,) + _args, _kwargs)
+ val = eventsc.wxKeyEvent_GetPositionTuple(self, *_args, **_kwargs)
return val
def __setattr__(self,name,value):
if name == "m_x" :
@@ -535,11 +535,11 @@ class wxKeyEventPtr(wxEventPtr):
return eventsc.wxKeyEvent_m_rawFlags_get(self)
raise AttributeError,name
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
KeyCode = GetKeyCode
class wxKeyEvent(wxKeyEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxKeyEvent,_args,_kwargs)
+ self.this = eventsc.new_wxKeyEvent(*_args,**_kwargs)
self.thisown = 1
@@ -550,28 +550,28 @@ class wxNavigationKeyEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetDirection(self, *_args, **_kwargs):
- val = apply(eventsc.wxNavigationKeyEvent_GetDirection,(self,) + _args, _kwargs)
+ val = eventsc.wxNavigationKeyEvent_GetDirection(self, *_args, **_kwargs)
return val
def SetDirection(self, *_args, **_kwargs):
- val = apply(eventsc.wxNavigationKeyEvent_SetDirection,(self,) + _args, _kwargs)
+ val = eventsc.wxNavigationKeyEvent_SetDirection(self, *_args, **_kwargs)
return val
def IsWindowChange(self, *_args, **_kwargs):
- val = apply(eventsc.wxNavigationKeyEvent_IsWindowChange,(self,) + _args, _kwargs)
+ val = eventsc.wxNavigationKeyEvent_IsWindowChange(self, *_args, **_kwargs)
return val
def SetWindowChange(self, *_args, **_kwargs):
- val = apply(eventsc.wxNavigationKeyEvent_SetWindowChange,(self,) + _args, _kwargs)
+ val = eventsc.wxNavigationKeyEvent_SetWindowChange(self, *_args, **_kwargs)
return val
def GetCurrentFocus(self, *_args, **_kwargs):
- val = apply(eventsc.wxNavigationKeyEvent_GetCurrentFocus,(self,) + _args, _kwargs)
+ val = eventsc.wxNavigationKeyEvent_GetCurrentFocus(self, *_args, **_kwargs)
return val
def SetCurrentFocus(self, *_args, **_kwargs):
- val = apply(eventsc.wxNavigationKeyEvent_SetCurrentFocus,(self,) + _args, _kwargs)
+ val = eventsc.wxNavigationKeyEvent_SetCurrentFocus(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxNavigationKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxNavigationKeyEvent(wxNavigationKeyEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxNavigationKeyEvent,_args,_kwargs)
+ self.this = eventsc.new_wxNavigationKeyEvent(*_args,**_kwargs)
self.thisown = 1
@@ -582,14 +582,14 @@ class wxMoveEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxMoveEvent_GetPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxMoveEvent_GetPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMoveEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMoveEvent(wxMoveEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxMoveEvent,_args,_kwargs)
+ self.this = eventsc.new_wxMoveEvent(*_args,**_kwargs)
self.thisown = 1
@@ -600,10 +600,10 @@ class wxPaintEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPaintEvent(wxPaintEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxPaintEvent,_args,_kwargs)
+ self.this = eventsc.new_wxPaintEvent(*_args,**_kwargs)
self.thisown = 1
@@ -614,13 +614,13 @@ class wxEraseEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetDC(self, *_args, **_kwargs):
- val = apply(eventsc.wxEraseEvent_GetDC,(self,) + _args, _kwargs)
+ val = eventsc.wxEraseEvent_GetDC(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxEraseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxEraseEvent(wxEraseEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxEraseEvent,_args,_kwargs)
+ self.this = eventsc.new_wxEraseEvent(*_args,**_kwargs)
self.thisown = 1
@@ -631,10 +631,10 @@ class wxFocusEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFocusEvent(wxFocusEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxFocusEvent,_args,_kwargs)
+ self.this = eventsc.new_wxFocusEvent(*_args,**_kwargs)
self.thisown = 1
@@ -645,13 +645,13 @@ class wxChildFocusEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def GetWindow(self, *_args, **_kwargs):
- val = apply(eventsc.wxChildFocusEvent_GetWindow,(self,) + _args, _kwargs)
+ val = eventsc.wxChildFocusEvent_GetWindow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxChildFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxChildFocusEvent(wxChildFocusEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxChildFocusEvent,_args,_kwargs)
+ self.this = eventsc.new_wxChildFocusEvent(*_args,**_kwargs)
self.thisown = 1
@@ -662,13 +662,13 @@ class wxActivateEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetActive(self, *_args, **_kwargs):
- val = apply(eventsc.wxActivateEvent_GetActive,(self,) + _args, _kwargs)
+ val = eventsc.wxActivateEvent_GetActive(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxActivateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxActivateEvent(wxActivateEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxActivateEvent,_args,_kwargs)
+ self.this = eventsc.new_wxActivateEvent(*_args,**_kwargs)
self.thisown = 1
@@ -679,10 +679,10 @@ class wxInitDialogEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxInitDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxInitDialogEvent(wxInitDialogEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxInitDialogEvent,_args,_kwargs)
+ self.this = eventsc.new_wxInitDialogEvent(*_args,**_kwargs)
self.thisown = 1
@@ -693,16 +693,16 @@ class wxMenuEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetMenuId(self, *_args, **_kwargs):
- val = apply(eventsc.wxMenuEvent_GetMenuId,(self,) + _args, _kwargs)
+ val = eventsc.wxMenuEvent_GetMenuId(self, *_args, **_kwargs)
return val
def IsPopup(self, *_args, **_kwargs):
- val = apply(eventsc.wxMenuEvent_IsPopup,(self,) + _args, _kwargs)
+ val = eventsc.wxMenuEvent_IsPopup(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMenuEvent(wxMenuEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxMenuEvent,_args,_kwargs)
+ self.this = eventsc.new_wxMenuEvent(*_args,**_kwargs)
self.thisown = 1
@@ -713,16 +713,16 @@ class wxShowEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def SetShow(self, *_args, **_kwargs):
- val = apply(eventsc.wxShowEvent_SetShow,(self,) + _args, _kwargs)
+ val = eventsc.wxShowEvent_SetShow(self, *_args, **_kwargs)
return val
def GetShow(self, *_args, **_kwargs):
- val = apply(eventsc.wxShowEvent_GetShow,(self,) + _args, _kwargs)
+ val = eventsc.wxShowEvent_GetShow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxShowEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxShowEvent(wxShowEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxShowEvent,_args,_kwargs)
+ self.this = eventsc.new_wxShowEvent(*_args,**_kwargs)
self.thisown = 1
@@ -733,13 +733,13 @@ class wxIconizeEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def Iconized(self, *_args, **_kwargs):
- val = apply(eventsc.wxIconizeEvent_Iconized,(self,) + _args, _kwargs)
+ val = eventsc.wxIconizeEvent_Iconized(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxIconizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxIconizeEvent(wxIconizeEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxIconizeEvent,_args,_kwargs)
+ self.this = eventsc.new_wxIconizeEvent(*_args,**_kwargs)
self.thisown = 1
@@ -750,10 +750,10 @@ class wxMaximizeEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMaximizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMaximizeEvent(wxMaximizeEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxMaximizeEvent,_args,_kwargs)
+ self.this = eventsc.new_wxMaximizeEvent(*_args,**_kwargs)
self.thisown = 1
@@ -764,59 +764,59 @@ class wxJoystickEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_GetPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_GetPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def GetZPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_GetZPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_GetZPosition(self, *_args, **_kwargs)
return val
def GetButtonState(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_GetButtonState,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_GetButtonState(self, *_args, **_kwargs)
return val
def GetButtonChange(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_GetButtonChange,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_GetButtonChange(self, *_args, **_kwargs)
return val
def GetJoystick(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_GetJoystick,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_GetJoystick(self, *_args, **_kwargs)
return val
def SetJoystick(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_SetJoystick,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_SetJoystick(self, *_args, **_kwargs)
return val
def SetButtonState(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_SetButtonState,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_SetButtonState(self, *_args, **_kwargs)
return val
def SetButtonChange(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_SetButtonChange,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_SetButtonChange(self, *_args, **_kwargs)
return val
def SetPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_SetPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_SetPosition(self, *_args, **_kwargs)
return val
def SetZPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_SetZPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_SetZPosition(self, *_args, **_kwargs)
return val
def IsButton(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_IsButton,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_IsButton(self, *_args, **_kwargs)
return val
def IsMove(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_IsMove,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_IsMove(self, *_args, **_kwargs)
return val
def IsZMove(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_IsZMove,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_IsZMove(self, *_args, **_kwargs)
return val
def ButtonDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_ButtonDown,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_ButtonDown(self, *_args, **_kwargs)
return val
def ButtonUp(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_ButtonUp,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_ButtonUp(self, *_args, **_kwargs)
return val
def ButtonIsDown(self, *_args, **_kwargs):
- val = apply(eventsc.wxJoystickEvent_ButtonIsDown,(self,) + _args, _kwargs)
+ val = eventsc.wxJoystickEvent_ButtonIsDown(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxJoystickEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxJoystickEvent(wxJoystickEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxJoystickEvent,_args,_kwargs)
+ self.this = eventsc.new_wxJoystickEvent(*_args,**_kwargs)
self.thisown = 1
@@ -827,17 +827,17 @@ class wxDropFilesEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxDropFilesEvent_GetPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxDropFilesEvent_GetPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def GetNumberOfFiles(self, *_args, **_kwargs):
- val = apply(eventsc.wxDropFilesEvent_GetNumberOfFiles,(self,) + _args, _kwargs)
+ val = eventsc.wxDropFilesEvent_GetNumberOfFiles(self, *_args, **_kwargs)
return val
def GetFiles(self, *_args, **_kwargs):
- val = apply(eventsc.wxDropFilesEvent_GetFiles,(self,) + _args, _kwargs)
+ val = eventsc.wxDropFilesEvent_GetFiles(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDropFilesEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDropFilesEvent(wxDropFilesEventPtr):
def __init__(self,this):
self.this = this
@@ -850,16 +850,16 @@ class wxIdleEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def RequestMore(self, *_args, **_kwargs):
- val = apply(eventsc.wxIdleEvent_RequestMore,(self,) + _args, _kwargs)
+ val = eventsc.wxIdleEvent_RequestMore(self, *_args, **_kwargs)
return val
def MoreRequested(self, *_args, **_kwargs):
- val = apply(eventsc.wxIdleEvent_MoreRequested,(self,) + _args, _kwargs)
+ val = eventsc.wxIdleEvent_MoreRequested(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxIdleEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxIdleEvent(wxIdleEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxIdleEvent,_args,_kwargs)
+ self.this = eventsc.new_wxIdleEvent(*_args,**_kwargs)
self.thisown = 1
@@ -870,37 +870,37 @@ class wxUpdateUIEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetChecked(self, *_args, **_kwargs):
- val = apply(eventsc.wxUpdateUIEvent_GetChecked,(self,) + _args, _kwargs)
+ val = eventsc.wxUpdateUIEvent_GetChecked(self, *_args, **_kwargs)
return val
def GetEnabled(self, *_args, **_kwargs):
- val = apply(eventsc.wxUpdateUIEvent_GetEnabled,(self,) + _args, _kwargs)
+ val = eventsc.wxUpdateUIEvent_GetEnabled(self, *_args, **_kwargs)
return val
def GetText(self, *_args, **_kwargs):
- val = apply(eventsc.wxUpdateUIEvent_GetText,(self,) + _args, _kwargs)
+ val = eventsc.wxUpdateUIEvent_GetText(self, *_args, **_kwargs)
return val
def GetSetText(self, *_args, **_kwargs):
- val = apply(eventsc.wxUpdateUIEvent_GetSetText,(self,) + _args, _kwargs)
+ val = eventsc.wxUpdateUIEvent_GetSetText(self, *_args, **_kwargs)
return val
def GetSetChecked(self, *_args, **_kwargs):
- val = apply(eventsc.wxUpdateUIEvent_GetSetChecked,(self,) + _args, _kwargs)
+ val = eventsc.wxUpdateUIEvent_GetSetChecked(self, *_args, **_kwargs)
return val
def GetSetEnabled(self, *_args, **_kwargs):
- val = apply(eventsc.wxUpdateUIEvent_GetSetEnabled,(self,) + _args, _kwargs)
+ val = eventsc.wxUpdateUIEvent_GetSetEnabled(self, *_args, **_kwargs)
return val
def Check(self, *_args, **_kwargs):
- val = apply(eventsc.wxUpdateUIEvent_Check,(self,) + _args, _kwargs)
+ val = eventsc.wxUpdateUIEvent_Check(self, *_args, **_kwargs)
return val
def Enable(self, *_args, **_kwargs):
- val = apply(eventsc.wxUpdateUIEvent_Enable,(self,) + _args, _kwargs)
+ val = eventsc.wxUpdateUIEvent_Enable(self, *_args, **_kwargs)
return val
def SetText(self, *_args, **_kwargs):
- val = apply(eventsc.wxUpdateUIEvent_SetText,(self,) + _args, _kwargs)
+ val = eventsc.wxUpdateUIEvent_SetText(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxUpdateUIEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxUpdateUIEvent(wxUpdateUIEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxUpdateUIEvent,_args,_kwargs)
+ self.this = eventsc.new_wxUpdateUIEvent(*_args,**_kwargs)
self.thisown = 1
@@ -911,10 +911,10 @@ class wxSysColourChangedEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSysColourChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxSysColourChangedEvent(wxSysColourChangedEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxSysColourChangedEvent,_args,_kwargs)
+ self.this = eventsc.new_wxSysColourChangedEvent(*_args,**_kwargs)
self.thisown = 1
@@ -925,19 +925,19 @@ class wxNotifyEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def IsAllowed(self, *_args, **_kwargs):
- val = apply(eventsc.wxNotifyEvent_IsAllowed,(self,) + _args, _kwargs)
+ val = eventsc.wxNotifyEvent_IsAllowed(self, *_args, **_kwargs)
return val
def Allow(self, *_args, **_kwargs):
- val = apply(eventsc.wxNotifyEvent_Allow,(self,) + _args, _kwargs)
+ val = eventsc.wxNotifyEvent_Allow(self, *_args, **_kwargs)
return val
def Veto(self, *_args, **_kwargs):
- val = apply(eventsc.wxNotifyEvent_Veto,(self,) + _args, _kwargs)
+ val = eventsc.wxNotifyEvent_Veto(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxNotifyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxNotifyEvent(wxNotifyEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxNotifyEvent,_args,_kwargs)
+ self.this = eventsc.new_wxNotifyEvent(*_args,**_kwargs)
self.thisown = 1
@@ -948,10 +948,10 @@ class wxDisplayChangedEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDisplayChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDisplayChangedEvent(wxDisplayChangedEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxDisplayChangedEvent,_args,_kwargs)
+ self.this = eventsc.new_wxDisplayChangedEvent(*_args,**_kwargs)
self.thisown = 1
@@ -962,16 +962,16 @@ class wxPaletteChangedEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def SetChangedWindow(self, *_args, **_kwargs):
- val = apply(eventsc.wxPaletteChangedEvent_SetChangedWindow,(self,) + _args, _kwargs)
+ val = eventsc.wxPaletteChangedEvent_SetChangedWindow(self, *_args, **_kwargs)
return val
def GetChangedWindow(self, *_args, **_kwargs):
- val = apply(eventsc.wxPaletteChangedEvent_GetChangedWindow,(self,) + _args, _kwargs)
+ val = eventsc.wxPaletteChangedEvent_GetChangedWindow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPaletteChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPaletteChangedEvent(wxPaletteChangedEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxPaletteChangedEvent,_args,_kwargs)
+ self.this = eventsc.new_wxPaletteChangedEvent(*_args,**_kwargs)
self.thisown = 1
@@ -982,16 +982,16 @@ class wxQueryNewPaletteEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def SetPaletteRealized(self, *_args, **_kwargs):
- val = apply(eventsc.wxQueryNewPaletteEvent_SetPaletteRealized,(self,) + _args, _kwargs)
+ val = eventsc.wxQueryNewPaletteEvent_SetPaletteRealized(self, *_args, **_kwargs)
return val
def GetPaletteRealized(self, *_args, **_kwargs):
- val = apply(eventsc.wxQueryNewPaletteEvent_GetPaletteRealized,(self,) + _args, _kwargs)
+ val = eventsc.wxQueryNewPaletteEvent_GetPaletteRealized(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxQueryNewPaletteEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxQueryNewPaletteEvent(wxQueryNewPaletteEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxQueryNewPaletteEvent,_args,_kwargs)
+ self.this = eventsc.new_wxQueryNewPaletteEvent(*_args,**_kwargs)
self.thisown = 1
@@ -1002,13 +1002,13 @@ class wxWindowCreateEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def GetWindow(self, *_args, **_kwargs):
- val = apply(eventsc.wxWindowCreateEvent_GetWindow,(self,) + _args, _kwargs)
+ val = eventsc.wxWindowCreateEvent_GetWindow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxWindowCreateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxWindowCreateEvent(wxWindowCreateEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxWindowCreateEvent,_args,_kwargs)
+ self.this = eventsc.new_wxWindowCreateEvent(*_args,**_kwargs)
self.thisown = 1
@@ -1019,13 +1019,13 @@ class wxWindowDestroyEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def GetWindow(self, *_args, **_kwargs):
- val = apply(eventsc.wxWindowDestroyEvent_GetWindow,(self,) + _args, _kwargs)
+ val = eventsc.wxWindowDestroyEvent_GetWindow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxWindowDestroyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxWindowDestroyEvent(wxWindowDestroyEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxWindowDestroyEvent,_args,_kwargs)
+ self.this = eventsc.new_wxWindowDestroyEvent(*_args,**_kwargs)
self.thisown = 1
@@ -1036,17 +1036,17 @@ class wxContextMenuEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def GetPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxContextMenuEvent_GetPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxContextMenuEvent_GetPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val)
return val
def SetPosition(self, *_args, **_kwargs):
- val = apply(eventsc.wxContextMenuEvent_SetPosition,(self,) + _args, _kwargs)
+ val = eventsc.wxContextMenuEvent_SetPosition(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxContextMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxContextMenuEvent(wxContextMenuEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxContextMenuEvent,_args,_kwargs)
+ self.this = eventsc.new_wxContextMenuEvent(*_args,**_kwargs)
self.thisown = 1
@@ -1057,13 +1057,13 @@ class wxTimerEventPtr(wxEventPtr):
self.this = this
self.thisown = 0
def GetInterval(self, *_args, **_kwargs):
- val = apply(eventsc.wxTimerEvent_GetInterval,(self,) + _args, _kwargs)
+ val = eventsc.wxTimerEvent_GetInterval(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTimerEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxTimerEvent(wxTimerEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxTimerEvent,_args,_kwargs)
+ self.this = eventsc.new_wxTimerEvent(*_args,**_kwargs)
self.thisown = 1
@@ -1074,19 +1074,19 @@ class wxTextUrlEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def GetMouseEvent(self, *_args, **_kwargs):
- val = apply(eventsc.wxTextUrlEvent_GetMouseEvent,(self,) + _args, _kwargs)
+ val = eventsc.wxTextUrlEvent_GetMouseEvent(self, *_args, **_kwargs)
return val
def GetURLStart(self, *_args, **_kwargs):
- val = apply(eventsc.wxTextUrlEvent_GetURLStart,(self,) + _args, _kwargs)
+ val = eventsc.wxTextUrlEvent_GetURLStart(self, *_args, **_kwargs)
return val
def GetURLEnd(self, *_args, **_kwargs):
- val = apply(eventsc.wxTextUrlEvent_GetURLEnd,(self,) + _args, _kwargs)
+ val = eventsc.wxTextUrlEvent_GetURLEnd(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTextUrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxTextUrlEvent(wxTextUrlEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxTextUrlEvent,_args,_kwargs)
+ self.this = eventsc.new_wxTextUrlEvent(*_args,**_kwargs)
self.thisown = 1
@@ -1103,16 +1103,16 @@ class wxPyEventPtr(wxEventPtr):
except:
pass
def SetSelf(self, *_args, **_kwargs):
- val = apply(eventsc.wxPyEvent_SetSelf,(self,) + _args, _kwargs)
+ val = eventsc.wxPyEvent_SetSelf(self, *_args, **_kwargs)
return val
def GetSelf(self, *_args, **_kwargs):
- val = apply(eventsc.wxPyEvent_GetSelf,(self,) + _args, _kwargs)
+ val = eventsc.wxPyEvent_GetSelf(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyEvent(wxPyEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxPyEvent,_args,_kwargs)
+ self.this = eventsc.new_wxPyEvent(*_args,**_kwargs)
self.thisown = 1
self.SetSelf(self)
@@ -1130,16 +1130,16 @@ class wxPyCommandEventPtr(wxCommandEventPtr):
except:
pass
def SetSelf(self, *_args, **_kwargs):
- val = apply(eventsc.wxPyCommandEvent_SetSelf,(self,) + _args, _kwargs)
+ val = eventsc.wxPyCommandEvent_SetSelf(self, *_args, **_kwargs)
return val
def GetSelf(self, *_args, **_kwargs):
- val = apply(eventsc.wxPyCommandEvent_GetSelf,(self,) + _args, _kwargs)
+ val = eventsc.wxPyCommandEvent_GetSelf(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyCommandEvent(wxPyCommandEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxPyCommandEvent,_args,_kwargs)
+ self.this = eventsc.new_wxPyCommandEvent(*_args,**_kwargs)
self.thisown = 1
self.SetSelf(self)
diff --git a/wxPython/src/gtk/filesys.py b/wxPython/src/gtk/filesys.py
index 8950e6059b..9605ded1e0 100644
--- a/wxPython/src/gtk/filesys.py
+++ b/wxPython/src/gtk/filesys.py
@@ -30,26 +30,26 @@ class wxFSFilePtr(wxObjectPtr):
self.this = this
self.thisown = 0
def GetStream(self, *_args, **_kwargs):
- val = apply(filesysc.wxFSFile_GetStream,(self,) + _args, _kwargs)
+ val = filesysc.wxFSFile_GetStream(self, *_args, **_kwargs)
return val
def GetMimeType(self, *_args, **_kwargs):
- val = apply(filesysc.wxFSFile_GetMimeType,(self,) + _args, _kwargs)
+ val = filesysc.wxFSFile_GetMimeType(self, *_args, **_kwargs)
return val
def GetLocation(self, *_args, **_kwargs):
- val = apply(filesysc.wxFSFile_GetLocation,(self,) + _args, _kwargs)
+ val = filesysc.wxFSFile_GetLocation(self, *_args, **_kwargs)
return val
def GetAnchor(self, *_args, **_kwargs):
- val = apply(filesysc.wxFSFile_GetAnchor,(self,) + _args, _kwargs)
+ val = filesysc.wxFSFile_GetAnchor(self, *_args, **_kwargs)
return val
def GetModificationTime(self, *_args, **_kwargs):
- val = apply(filesysc.wxFSFile_GetModificationTime,(self,) + _args, _kwargs)
+ val = filesysc.wxFSFile_GetModificationTime(self, *_args, **_kwargs)
if val: val = wxDateTimePtr(val) ; val.thisown = 1
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFSFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFSFile(wxFSFilePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(filesysc.new_wxFSFile,_args,_kwargs)
+ self.this = filesysc.new_wxFSFile(*_args,**_kwargs)
self.thisown = 1
@@ -60,7 +60,7 @@ class wxCPPFileSystemHandlerPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxCPPFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxCPPFileSystemHandler(wxCPPFileSystemHandlerPtr):
def __init__(self,this):
self.this = this
@@ -73,40 +73,40 @@ class wxFileSystemHandlerPtr(wxCPPFileSystemHandlerPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystemHandler__setCallbackInfo,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystemHandler__setCallbackInfo(self, *_args, **_kwargs)
return val
def CanOpen(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystemHandler_CanOpen,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystemHandler_CanOpen(self, *_args, **_kwargs)
return val
def OpenFile(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystemHandler_OpenFile,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystemHandler_OpenFile(self, *_args, **_kwargs)
return val
def FindFirst(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystemHandler_FindFirst,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystemHandler_FindFirst(self, *_args, **_kwargs)
return val
def FindNext(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystemHandler_FindNext,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystemHandler_FindNext(self, *_args, **_kwargs)
return val
def GetProtocol(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystemHandler_GetProtocol,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystemHandler_GetProtocol(self, *_args, **_kwargs)
return val
def GetLeftLocation(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystemHandler_GetLeftLocation,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystemHandler_GetLeftLocation(self, *_args, **_kwargs)
return val
def GetAnchor(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystemHandler_GetAnchor,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystemHandler_GetAnchor(self, *_args, **_kwargs)
return val
def GetRightLocation(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystemHandler_GetRightLocation,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystemHandler_GetRightLocation(self, *_args, **_kwargs)
return val
def GetMimeTypeFromExt(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystemHandler_GetMimeTypeFromExt,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystemHandler_GetMimeTypeFromExt(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFileSystemHandler(wxFileSystemHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(filesysc.new_wxFileSystemHandler,_args,_kwargs)
+ self.this = filesysc.new_wxFileSystemHandler(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxFileSystemHandler)
@@ -118,25 +118,25 @@ class wxFileSystemPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def ChangePathTo(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystem_ChangePathTo,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystem_ChangePathTo(self, *_args, **_kwargs)
return val
def GetPath(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystem_GetPath,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystem_GetPath(self, *_args, **_kwargs)
return val
def OpenFile(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystem_OpenFile,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystem_OpenFile(self, *_args, **_kwargs)
return val
def FindFirst(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystem_FindFirst,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystem_FindFirst(self, *_args, **_kwargs)
return val
def FindNext(self, *_args, **_kwargs):
- val = apply(filesysc.wxFileSystem_FindNext,(self,) + _args, _kwargs)
+ val = filesysc.wxFileSystem_FindNext(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFileSystem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFileSystem(wxFileSystemPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(filesysc.new_wxFileSystem,_args,_kwargs)
+ self.this = filesysc.new_wxFileSystem(*_args,**_kwargs)
self.thisown = 1
@@ -147,16 +147,16 @@ class wxInternetFSHandlerPtr(wxCPPFileSystemHandlerPtr):
self.this = this
self.thisown = 0
def CanOpen(self, *_args, **_kwargs):
- val = apply(filesysc.wxInternetFSHandler_CanOpen,(self,) + _args, _kwargs)
+ val = filesysc.wxInternetFSHandler_CanOpen(self, *_args, **_kwargs)
return val
def OpenFile(self, *_args, **_kwargs):
- val = apply(filesysc.wxInternetFSHandler_OpenFile,(self,) + _args, _kwargs)
+ val = filesysc.wxInternetFSHandler_OpenFile(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxInternetFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxInternetFSHandler(wxInternetFSHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(filesysc.new_wxInternetFSHandler,_args,_kwargs)
+ self.this = filesysc.new_wxInternetFSHandler(*_args,**_kwargs)
self.thisown = 1
@@ -167,22 +167,22 @@ class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr):
self.this = this
self.thisown = 0
def CanOpen(self, *_args, **_kwargs):
- val = apply(filesysc.wxZipFSHandler_CanOpen,(self,) + _args, _kwargs)
+ val = filesysc.wxZipFSHandler_CanOpen(self, *_args, **_kwargs)
return val
def OpenFile(self, *_args, **_kwargs):
- val = apply(filesysc.wxZipFSHandler_OpenFile,(self,) + _args, _kwargs)
+ val = filesysc.wxZipFSHandler_OpenFile(self, *_args, **_kwargs)
return val
def FindFirst(self, *_args, **_kwargs):
- val = apply(filesysc.wxZipFSHandler_FindFirst,(self,) + _args, _kwargs)
+ val = filesysc.wxZipFSHandler_FindFirst(self, *_args, **_kwargs)
return val
def FindNext(self, *_args, **_kwargs):
- val = apply(filesysc.wxZipFSHandler_FindNext,(self,) + _args, _kwargs)
+ val = filesysc.wxZipFSHandler_FindNext(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxZipFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxZipFSHandler(wxZipFSHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(filesysc.new_wxZipFSHandler,_args,_kwargs)
+ self.this = filesysc.new_wxZipFSHandler(*_args,**_kwargs)
self.thisown = 1
@@ -193,22 +193,22 @@ class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr):
self.this = this
self.thisown = 0
def CanOpen(self, *_args, **_kwargs):
- val = apply(filesysc.wxMemoryFSHandler_CanOpen,(self,) + _args, _kwargs)
+ val = filesysc.wxMemoryFSHandler_CanOpen(self, *_args, **_kwargs)
return val
def OpenFile(self, *_args, **_kwargs):
- val = apply(filesysc.wxMemoryFSHandler_OpenFile,(self,) + _args, _kwargs)
+ val = filesysc.wxMemoryFSHandler_OpenFile(self, *_args, **_kwargs)
return val
def FindFirst(self, *_args, **_kwargs):
- val = apply(filesysc.wxMemoryFSHandler_FindFirst,(self,) + _args, _kwargs)
+ val = filesysc.wxMemoryFSHandler_FindFirst(self, *_args, **_kwargs)
return val
def FindNext(self, *_args, **_kwargs):
- val = apply(filesysc.wxMemoryFSHandler_FindNext,(self,) + _args, _kwargs)
+ val = filesysc.wxMemoryFSHandler_FindNext(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMemoryFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMemoryFSHandler(wxMemoryFSHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(filesysc.new_wxMemoryFSHandler,_args,_kwargs)
+ self.this = filesysc.new_wxMemoryFSHandler(*_args,**_kwargs)
self.thisown = 1
diff --git a/wxPython/src/gtk/fonts.py b/wxPython/src/gtk/fonts.py
index 2b3782ef93..82c50f821c 100644
--- a/wxPython/src/gtk/fonts.py
+++ b/wxPython/src/gtk/fonts.py
@@ -7,70 +7,70 @@ class wxNativeFontInfoPtr :
self.this = this
self.thisown = 0
def Init(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_Init,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_Init(self, *_args, **_kwargs)
return val
def GetPointSize(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_GetPointSize,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_GetPointSize(self, *_args, **_kwargs)
return val
def GetStyle(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_GetStyle,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_GetStyle(self, *_args, **_kwargs)
return val
def GetWeight(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_GetWeight,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_GetWeight(self, *_args, **_kwargs)
return val
def GetUnderlined(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_GetUnderlined,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_GetUnderlined(self, *_args, **_kwargs)
return val
def GetFaceName(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_GetFaceName,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_GetFaceName(self, *_args, **_kwargs)
return val
def GetFamily(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_GetFamily,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_GetFamily(self, *_args, **_kwargs)
return val
def GetEncoding(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_GetEncoding,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_GetEncoding(self, *_args, **_kwargs)
return val
def SetPointSize(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_SetPointSize,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_SetPointSize(self, *_args, **_kwargs)
return val
def SetStyle(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_SetStyle,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_SetStyle(self, *_args, **_kwargs)
return val
def SetWeight(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_SetWeight,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_SetWeight(self, *_args, **_kwargs)
return val
def SetUnderlined(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_SetUnderlined,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_SetUnderlined(self, *_args, **_kwargs)
return val
def SetFaceName(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_SetFaceName,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_SetFaceName(self, *_args, **_kwargs)
return val
def SetFamily(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_SetFamily,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_SetFamily(self, *_args, **_kwargs)
return val
def SetEncoding(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_SetEncoding,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_SetEncoding(self, *_args, **_kwargs)
return val
def FromString(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_FromString,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_FromString(self, *_args, **_kwargs)
return val
def ToString(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_ToString,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_ToString(self, *_args, **_kwargs)
return val
def __str__(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo___str__,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo___str__(self, *_args, **_kwargs)
return val
def FromUserString(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_FromUserString,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_FromUserString(self, *_args, **_kwargs)
return val
def ToUserString(self, *_args, **_kwargs):
- val = apply(fontsc.wxNativeFontInfo_ToUserString,(self,) + _args, _kwargs)
+ val = fontsc.wxNativeFontInfo_ToUserString(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxNativeFontInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxNativeFontInfo(wxNativeFontInfoPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(fontsc.new_wxNativeFontInfo,_args,_kwargs)
+ self.this = fontsc.new_wxNativeFontInfo(*_args,**_kwargs)
self.thisown = 1
@@ -87,31 +87,31 @@ class wxFontMapperPtr :
except:
pass
def GetAltForEncoding(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontMapper_GetAltForEncoding,(self,) + _args, _kwargs)
+ val = fontsc.wxFontMapper_GetAltForEncoding(self, *_args, **_kwargs)
return val
def IsEncodingAvailable(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontMapper_IsEncodingAvailable,(self,) + _args, _kwargs)
+ val = fontsc.wxFontMapper_IsEncodingAvailable(self, *_args, **_kwargs)
return val
def CharsetToEncoding(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontMapper_CharsetToEncoding,(self,) + _args, _kwargs)
+ val = fontsc.wxFontMapper_CharsetToEncoding(self, *_args, **_kwargs)
return val
def SetDialogParent(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontMapper_SetDialogParent,(self,) + _args, _kwargs)
+ val = fontsc.wxFontMapper_SetDialogParent(self, *_args, **_kwargs)
return val
def SetDialogTitle(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontMapper_SetDialogTitle,(self,) + _args, _kwargs)
+ val = fontsc.wxFontMapper_SetDialogTitle(self, *_args, **_kwargs)
return val
def SetConfig(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontMapper_SetConfig,(self,) + _args, _kwargs)
+ val = fontsc.wxFontMapper_SetConfig(self, *_args, **_kwargs)
return val
def SetConfigPath(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontMapper_SetConfigPath,(self,) + _args, _kwargs)
+ val = fontsc.wxFontMapper_SetConfigPath(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFontMapper instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFontMapper(wxFontMapperPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(fontsc.new_wxFontMapper,_args,_kwargs)
+ self.this = fontsc.new_wxFontMapper(*_args,**_kwargs)
self.thisown = 1
@@ -122,7 +122,7 @@ class wxFontPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def wxFontFromNativeInfoString(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_wxFontFromNativeInfoString,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_wxFontFromNativeInfoString(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def __del__(self, delfunc=fontsc.delete_wxFont):
@@ -132,95 +132,96 @@ class wxFontPtr(wxObjectPtr):
except:
pass
def Ok(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_Ok,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_Ok(self, *_args, **_kwargs)
return val
def GetPointSize(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetPointSize,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetPointSize(self, *_args, **_kwargs)
return val
def GetFamily(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetFamily,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetFamily(self, *_args, **_kwargs)
return val
def GetStyle(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetStyle,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetStyle(self, *_args, **_kwargs)
return val
def GetWeight(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetWeight,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetWeight(self, *_args, **_kwargs)
return val
def GetUnderlined(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetUnderlined,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetUnderlined(self, *_args, **_kwargs)
return val
def GetFaceName(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetFaceName,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetFaceName(self, *_args, **_kwargs)
return val
def GetEncoding(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetEncoding,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetEncoding(self, *_args, **_kwargs)
return val
def IsFixedWidth(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_IsFixedWidth,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_IsFixedWidth(self, *_args, **_kwargs)
return val
def GetNativeFontInfo(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetNativeFontInfo,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetNativeFontInfo(self, *_args, **_kwargs)
if val: val = wxNativeFontInfoPtr(val)
return val
def GetNativeFontInfoDesc(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetNativeFontInfoDesc,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetNativeFontInfoDesc(self, *_args, **_kwargs)
return val
def GetNativeFontInfoUserDesc(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetNativeFontInfoUserDesc,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetNativeFontInfoUserDesc(self, *_args, **_kwargs)
return val
def SetPointSize(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_SetPointSize,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_SetPointSize(self, *_args, **_kwargs)
return val
def SetFamily(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_SetFamily,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_SetFamily(self, *_args, **_kwargs)
return val
def SetStyle(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_SetStyle,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_SetStyle(self, *_args, **_kwargs)
return val
def SetWeight(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_SetWeight,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_SetWeight(self, *_args, **_kwargs)
return val
def SetFaceName(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_SetFaceName,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_SetFaceName(self, *_args, **_kwargs)
return val
def SetUnderlined(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_SetUnderlined,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_SetUnderlined(self, *_args, **_kwargs)
return val
def SetEncoding(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_SetEncoding,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_SetEncoding(self, *_args, **_kwargs)
return val
def SetNativeFontInfo(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_SetNativeFontInfo,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_SetNativeFontInfo(self, *_args, **_kwargs)
return val
def SetNativeFontInfoUserDesc(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_SetNativeFontInfoUserDesc,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_SetNativeFontInfoUserDesc(self, *_args, **_kwargs)
return val
def GetFamilyString(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetFamilyString,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetFamilyString(self, *_args, **_kwargs)
return val
def GetStyleString(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetStyleString,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetStyleString(self, *_args, **_kwargs)
return val
def GetWeightString(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetWeightString,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetWeightString(self, *_args, **_kwargs)
return val
def SetNoAntiAliasing(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_SetNoAntiAliasing,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_SetNoAntiAliasing(self, *_args, **_kwargs)
return val
def GetNoAntiAliasing(self, *_args, **_kwargs):
- val = apply(fontsc.wxFont_GetNoAntiAliasing,(self,) + _args, _kwargs)
+ val = fontsc.wxFont_GetNoAntiAliasing(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFont instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+ def __nonzero__(self): return self.Ok()
class wxFont(wxFontPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(fontsc.new_wxFont,_args,_kwargs)
+ self.this = fontsc.new_wxFont(*_args,**_kwargs)
self.thisown = 1
def wxFontFromNativeInfo(*_args,**_kwargs):
- val = wxFontPtr(apply(fontsc.new_wxFontFromNativeInfo,_args,_kwargs))
+ val = wxFontPtr(fontsc.new_wxFontFromNativeInfo(*_args,**_kwargs))
val.thisown = 1
return val
@@ -230,20 +231,20 @@ class wxFontListPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def AddFont(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontList_AddFont,(self,) + _args, _kwargs)
+ val = fontsc.wxFontList_AddFont(self, *_args, **_kwargs)
return val
def FindOrCreateFont(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontList_FindOrCreateFont,(self,) + _args, _kwargs)
+ val = fontsc.wxFontList_FindOrCreateFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val)
return val
def RemoveFont(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontList_RemoveFont,(self,) + _args, _kwargs)
+ val = fontsc.wxFontList_RemoveFont(self, *_args, **_kwargs)
return val
def GetCount(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontList_GetCount,(self,) + _args, _kwargs)
+ val = fontsc.wxFontList_GetCount(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFontList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFontList(wxFontListPtr):
def __init__(self,this):
self.this = this
@@ -262,25 +263,25 @@ class wxFontEnumeratorPtr :
except:
pass
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontEnumerator__setCallbackInfo,(self,) + _args, _kwargs)
+ val = fontsc.wxFontEnumerator__setCallbackInfo(self, *_args, **_kwargs)
return val
def EnumerateFacenames(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontEnumerator_EnumerateFacenames,(self,) + _args, _kwargs)
+ val = fontsc.wxFontEnumerator_EnumerateFacenames(self, *_args, **_kwargs)
return val
def EnumerateEncodings(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontEnumerator_EnumerateEncodings,(self,) + _args, _kwargs)
+ val = fontsc.wxFontEnumerator_EnumerateEncodings(self, *_args, **_kwargs)
return val
def GetEncodings(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontEnumerator_GetEncodings,(self,) + _args, _kwargs)
+ val = fontsc.wxFontEnumerator_GetEncodings(self, *_args, **_kwargs)
return val
def GetFacenames(self, *_args, **_kwargs):
- val = apply(fontsc.wxFontEnumerator_GetFacenames,(self,) + _args, _kwargs)
+ val = fontsc.wxFontEnumerator_GetFacenames(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFontEnumerator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxFontEnumerator(wxFontEnumeratorPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(fontsc.new_wxFontEnumerator,_args,_kwargs)
+ self.this = fontsc.new_wxFontEnumerator(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxFontEnumerator, 0)
@@ -311,7 +312,7 @@ class wxLanguageInfoPtr :
return fontsc.wxLanguageInfo_Description_get(self)
raise AttributeError,name
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxLanguageInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxLanguageInfo(wxLanguageInfoPtr):
def __init__(self,this):
self.this = this
@@ -330,51 +331,51 @@ class wxLocalePtr :
except:
pass
def Init1(self, *_args, **_kwargs):
- val = apply(fontsc.wxLocale_Init1,(self,) + _args, _kwargs)
+ val = fontsc.wxLocale_Init1(self, *_args, **_kwargs)
return val
def Init2(self, *_args, **_kwargs):
- val = apply(fontsc.wxLocale_Init2,(self,) + _args, _kwargs)
+ val = fontsc.wxLocale_Init2(self, *_args, **_kwargs)
return val
def IsOk(self, *_args, **_kwargs):
- val = apply(fontsc.wxLocale_IsOk,(self,) + _args, _kwargs)
+ val = fontsc.wxLocale_IsOk(self, *_args, **_kwargs)
return val
def GetLocale(self, *_args, **_kwargs):
- val = apply(fontsc.wxLocale_GetLocale,(self,) + _args, _kwargs)
+ val = fontsc.wxLocale_GetLocale(self, *_args, **_kwargs)
return val
def GetLanguage(self, *_args, **_kwargs):
- val = apply(fontsc.wxLocale_GetLanguage,(self,) + _args, _kwargs)
+ val = fontsc.wxLocale_GetLanguage(self, *_args, **_kwargs)
return val
def GetSysName(self, *_args, **_kwargs):
- val = apply(fontsc.wxLocale_GetSysName,(self,) + _args, _kwargs)
+ val = fontsc.wxLocale_GetSysName(self, *_args, **_kwargs)
return val
def GetCanonicalName(self, *_args, **_kwargs):
- val = apply(fontsc.wxLocale_GetCanonicalName,(self,) + _args, _kwargs)
+ val = fontsc.wxLocale_GetCanonicalName(self, *_args, **_kwargs)
return val
def AddCatalog(self, *_args, **_kwargs):
- val = apply(fontsc.wxLocale_AddCatalog,(self,) + _args, _kwargs)
+ val = fontsc.wxLocale_AddCatalog(self, *_args, **_kwargs)
return val
def IsLoaded(self, *_args, **_kwargs):
- val = apply(fontsc.wxLocale_IsLoaded,(self,) + _args, _kwargs)
+ val = fontsc.wxLocale_IsLoaded(self, *_args, **_kwargs)
return val
def GetString(self, *_args, **_kwargs):
- val = apply(fontsc.wxLocale_GetString,(self,) + _args, _kwargs)
+ val = fontsc.wxLocale_GetString(self, *_args, **_kwargs)
return val
def GetName(self, *_args, **_kwargs):
- val = apply(fontsc.wxLocale_GetName,(self,) + _args, _kwargs)
+ val = fontsc.wxLocale_GetName(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxLocale instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
def Init(self, *_args, **_kwargs):
if type(_args[0]) in [type(''), type(u'')]:
- val = apply(self.Init1, _args, _kwargs)
+ val = self.Init1(*_args, **_kwargs)
else:
- val = apply(self.Init2, _args, _kwargs)
+ val = self.Init2(*_args, **_kwargs)
return val
class wxLocale(wxLocalePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(fontsc.new_wxLocale,_args,_kwargs)
+ self.this = fontsc.new_wxLocale(*_args,**_kwargs)
self.thisown = 1
@@ -391,16 +392,17 @@ class wxEncodingConverterPtr(wxObjectPtr):
except:
pass
def Init(self, *_args, **_kwargs):
- val = apply(fontsc.wxEncodingConverter_Init,(self,) + _args, _kwargs)
+ val = fontsc.wxEncodingConverter_Init(self, *_args, **_kwargs)
return val
def Convert(self, *_args, **_kwargs):
- val = apply(fontsc.wxEncodingConverter_Convert,(self,) + _args, _kwargs)
+ val = fontsc.wxEncodingConverter_Convert(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxEncodingConverter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+ def __nonzero__(self): return self.IsOk()
class wxEncodingConverter(wxEncodingConverterPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(fontsc.new_wxEncodingConverter,_args,_kwargs)
+ self.this = fontsc.new_wxEncodingConverter(*_args,**_kwargs)
self.thisown = 1
@@ -411,19 +413,19 @@ class wxEncodingConverter(wxEncodingConverterPtr):
#-------------- FUNCTION WRAPPERS ------------------
def wxGetLocale(*_args, **_kwargs):
- val = apply(fontsc.wxGetLocale,_args,_kwargs)
+ val = fontsc.wxGetLocale(*_args,**_kwargs)
if val: val = wxLocalePtr(val)
return val
wxGetTranslation = fontsc.wxGetTranslation
def wxFontMapper_Get(*_args, **_kwargs):
- val = apply(fontsc.wxFontMapper_Get,_args,_kwargs)
+ val = fontsc.wxFontMapper_Get(*_args,**_kwargs)
if val: val = wxFontMapperPtr(val)
return val
def wxFontMapper_Set(*_args, **_kwargs):
- val = apply(fontsc.wxFontMapper_Set,_args,_kwargs)
+ val = fontsc.wxFontMapper_Set(*_args,**_kwargs)
if val: val = wxFontMapperPtr(val)
return val
@@ -446,12 +448,12 @@ wxLocale_GetSystemEncodingName = fontsc.wxLocale_GetSystemEncodingName
wxLocale_AddCatalogLookupPathPrefix = fontsc.wxLocale_AddCatalogLookupPathPrefix
def wxLocale_GetLanguageInfo(*_args, **_kwargs):
- val = apply(fontsc.wxLocale_GetLanguageInfo,_args,_kwargs)
+ val = fontsc.wxLocale_GetLanguageInfo(*_args,**_kwargs)
if val: val = wxLanguageInfoPtr(val)
return val
def wxLocale_FindLanguageInfo(*_args, **_kwargs):
- val = apply(fontsc.wxLocale_FindLanguageInfo,_args,_kwargs)
+ val = fontsc.wxLocale_FindLanguageInfo(*_args,**_kwargs)
if val: val = wxLanguageInfoPtr(val)
return val
diff --git a/wxPython/src/gtk/frames.cpp b/wxPython/src/gtk/frames.cpp
index 4ed6489256..21ba3ecad6 100644
--- a/wxPython/src/gtk/frames.cpp
+++ b/wxPython/src/gtk/frames.cpp
@@ -685,6 +685,42 @@ static PyObject *_wrap_wxTopLevelWindow_GetTitle(PyObject *self, PyObject *args,
return _resultobj;
}
+#define wxTopLevelWindow_SetShape(_swigobj,_swigarg0) (_swigobj->SetShape(_swigarg0))
+static PyObject *_wrap_wxTopLevelWindow_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxTopLevelWindow * _arg0;
+ wxRegion * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","region", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTopLevelWindow_SetShape",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_SetShape. Expected _wxTopLevelWindow_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTopLevelWindow_SetShape. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxTopLevelWindow_SetShape(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
static void *SwigwxFrameTowxTopLevelWindow(void *ptr) {
wxFrame *src;
wxTopLevelWindow *dest;
@@ -2634,6 +2670,7 @@ static PyMethodDef framescMethods[] = {
{ "wxFrame_Create", (PyCFunction) _wrap_wxFrame_Create, METH_VARARGS | METH_KEYWORDS },
{ "new_wxPreFrame", (PyCFunction) _wrap_new_wxPreFrame, METH_VARARGS | METH_KEYWORDS },
{ "new_wxFrame", (PyCFunction) _wrap_new_wxFrame, METH_VARARGS | METH_KEYWORDS },
+ { "wxTopLevelWindow_SetShape", (PyCFunction) _wrap_wxTopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS },
{ "wxTopLevelWindow_GetTitle", (PyCFunction) _wrap_wxTopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS },
{ "wxTopLevelWindow_SetTitle", (PyCFunction) _wrap_wxTopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
{ "wxTopLevelWindow_IsFullScreen", (PyCFunction) _wrap_wxTopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS },
diff --git a/wxPython/src/gtk/frames.py b/wxPython/src/gtk/frames.py
index 0fae1a5d20..77aa341cba 100644
--- a/wxPython/src/gtk/frames.py
+++ b/wxPython/src/gtk/frames.py
@@ -22,57 +22,60 @@ class wxTopLevelWindowPtr(wxWindowPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_Create,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_Create(self, *_args, **_kwargs)
return val
def Maximize(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_Maximize,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_Maximize(self, *_args, **_kwargs)
return val
def Restore(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_Restore,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_Restore(self, *_args, **_kwargs)
return val
def Iconize(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_Iconize,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_Iconize(self, *_args, **_kwargs)
return val
def IsMaximized(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_IsMaximized,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_IsMaximized(self, *_args, **_kwargs)
return val
def IsIconized(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_IsIconized,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_IsIconized(self, *_args, **_kwargs)
return val
def GetIcon(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_GetIcon,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_GetIcon(self, *_args, **_kwargs)
if val: val = wxIconPtr(val) ; val.thisown = 1
return val
def SetIcon(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_SetIcon,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_SetIcon(self, *_args, **_kwargs)
return val
def SetIcons(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_SetIcons,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_SetIcons(self, *_args, **_kwargs)
return val
def ShowFullScreen(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_ShowFullScreen,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_ShowFullScreen(self, *_args, **_kwargs)
return val
def IsFullScreen(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_IsFullScreen,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_IsFullScreen(self, *_args, **_kwargs)
return val
def SetTitle(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_SetTitle,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_SetTitle(self, *_args, **_kwargs)
return val
def GetTitle(self, *_args, **_kwargs):
- val = apply(framesc.wxTopLevelWindow_GetTitle,(self,) + _args, _kwargs)
+ val = framesc.wxTopLevelWindow_GetTitle(self, *_args, **_kwargs)
+ return val
+ def SetShape(self, *_args, **_kwargs):
+ val = framesc.wxTopLevelWindow_SetShape(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxTopLevelWindow(wxTopLevelWindowPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(framesc.new_wxTopLevelWindow,_args,_kwargs)
+ self.this = framesc.new_wxTopLevelWindow(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreTopLevelWindow(*_args,**_kwargs):
- val = wxTopLevelWindowPtr(apply(framesc.new_wxPreTopLevelWindow,_args,_kwargs))
+ val = wxTopLevelWindowPtr(framesc.new_wxPreTopLevelWindow(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -83,76 +86,76 @@ class wxFramePtr(wxTopLevelWindowPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_Create,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_Create(self, *_args, **_kwargs)
return val
def GetClientAreaOrigin(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_GetClientAreaOrigin,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_GetClientAreaOrigin(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def SetMenuBar(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_SetMenuBar,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_SetMenuBar(self, *_args, **_kwargs)
return val
def GetMenuBar(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_GetMenuBar,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_GetMenuBar(self, *_args, **_kwargs)
return val
def ProcessCommand(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_ProcessCommand,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_ProcessCommand(self, *_args, **_kwargs)
return val
def CreateStatusBar(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_CreateStatusBar,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_CreateStatusBar(self, *_args, **_kwargs)
return val
def GetStatusBar(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_GetStatusBar,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_GetStatusBar(self, *_args, **_kwargs)
return val
def SetStatusBar(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_SetStatusBar,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_SetStatusBar(self, *_args, **_kwargs)
return val
def SetStatusText(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_SetStatusText,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_SetStatusText(self, *_args, **_kwargs)
return val
def SetStatusWidths(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_SetStatusWidths,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_SetStatusWidths(self, *_args, **_kwargs)
return val
def PushStatusText(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_PushStatusText,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_PushStatusText(self, *_args, **_kwargs)
return val
def PopStatusText(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_PopStatusText,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_PopStatusText(self, *_args, **_kwargs)
return val
def DoGiveHelp(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_DoGiveHelp,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_DoGiveHelp(self, *_args, **_kwargs)
return val
def SetStatusBarPane(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_SetStatusBarPane,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_SetStatusBarPane(self, *_args, **_kwargs)
return val
def GetStatusBarPane(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_GetStatusBarPane,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_GetStatusBarPane(self, *_args, **_kwargs)
return val
def CreateToolBar(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_CreateToolBar,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_CreateToolBar(self, *_args, **_kwargs)
return val
def GetToolBar(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_GetToolBar,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_GetToolBar(self, *_args, **_kwargs)
return val
def SetToolBar(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_SetToolBar,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_SetToolBar(self, *_args, **_kwargs)
return val
def SendSizeEvent(self, *_args, **_kwargs):
- val = apply(framesc.wxFrame_SendSizeEvent,(self,) + _args, _kwargs)
+ val = framesc.wxFrame_SendSizeEvent(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
Command = ProcessCommand
class wxFrame(wxFramePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(framesc.new_wxFrame,_args,_kwargs)
+ self.this = framesc.new_wxFrame(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreFrame(*_args,**_kwargs):
- val = wxFramePtr(apply(framesc.new_wxPreFrame,_args,_kwargs))
+ val = wxFramePtr(framesc.new_wxPreFrame(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -163,47 +166,47 @@ class wxDialogPtr(wxTopLevelWindowPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(framesc.wxDialog_Create,(self,) + _args, _kwargs)
+ val = framesc.wxDialog_Create(self, *_args, **_kwargs)
return val
def Centre(self, *_args, **_kwargs):
- val = apply(framesc.wxDialog_Centre,(self,) + _args, _kwargs)
+ val = framesc.wxDialog_Centre(self, *_args, **_kwargs)
return val
def EndModal(self, *_args, **_kwargs):
- val = apply(framesc.wxDialog_EndModal,(self,) + _args, _kwargs)
+ val = framesc.wxDialog_EndModal(self, *_args, **_kwargs)
return val
def SetModal(self, *_args, **_kwargs):
- val = apply(framesc.wxDialog_SetModal,(self,) + _args, _kwargs)
+ val = framesc.wxDialog_SetModal(self, *_args, **_kwargs)
return val
def IsModal(self, *_args, **_kwargs):
- val = apply(framesc.wxDialog_IsModal,(self,) + _args, _kwargs)
+ val = framesc.wxDialog_IsModal(self, *_args, **_kwargs)
return val
def ShowModal(self, *_args, **_kwargs):
- val = apply(framesc.wxDialog_ShowModal,(self,) + _args, _kwargs)
+ val = framesc.wxDialog_ShowModal(self, *_args, **_kwargs)
return val
def GetReturnCode(self, *_args, **_kwargs):
- val = apply(framesc.wxDialog_GetReturnCode,(self,) + _args, _kwargs)
+ val = framesc.wxDialog_GetReturnCode(self, *_args, **_kwargs)
return val
def SetReturnCode(self, *_args, **_kwargs):
- val = apply(framesc.wxDialog_SetReturnCode,(self,) + _args, _kwargs)
+ val = framesc.wxDialog_SetReturnCode(self, *_args, **_kwargs)
return val
def CreateTextSizer(self, *_args, **_kwargs):
- val = apply(framesc.wxDialog_CreateTextSizer,(self,) + _args, _kwargs)
+ val = framesc.wxDialog_CreateTextSizer(self, *_args, **_kwargs)
return val
def CreateButtonSizer(self, *_args, **_kwargs):
- val = apply(framesc.wxDialog_CreateButtonSizer,(self,) + _args, _kwargs)
+ val = framesc.wxDialog_CreateButtonSizer(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxDialog(wxDialogPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(framesc.new_wxDialog,_args,_kwargs)
+ self.this = framesc.new_wxDialog(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreDialog(*_args,**_kwargs):
- val = wxDialogPtr(apply(framesc.new_wxPreDialog,_args,_kwargs))
+ val = wxDialogPtr(framesc.new_wxPreDialog(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -214,20 +217,20 @@ class wxMiniFramePtr(wxFramePtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(framesc.wxMiniFrame_Create,(self,) + _args, _kwargs)
+ val = framesc.wxMiniFrame_Create(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMiniFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMiniFrame(wxMiniFramePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(framesc.new_wxMiniFrame,_args,_kwargs)
+ self.this = framesc.new_wxMiniFrame(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreMiniFrame(*_args,**_kwargs):
- val = wxMiniFramePtr(apply(framesc.new_wxPreMiniFrame,_args,_kwargs))
+ val = wxMiniFramePtr(framesc.new_wxPreMiniFrame(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -238,17 +241,17 @@ class wxSplashScreenWindowPtr(wxWindowPtr):
self.this = this
self.thisown = 0
def SetBitmap(self, *_args, **_kwargs):
- val = apply(framesc.wxSplashScreenWindow_SetBitmap,(self,) + _args, _kwargs)
+ val = framesc.wxSplashScreenWindow_SetBitmap(self, *_args, **_kwargs)
return val
def GetBitmap(self, *_args, **_kwargs):
- val = apply(framesc.wxSplashScreenWindow_GetBitmap,(self,) + _args, _kwargs)
+ val = framesc.wxSplashScreenWindow_GetBitmap(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxSplashScreenWindow(wxSplashScreenWindowPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(framesc.new_wxSplashScreenWindow,_args,_kwargs)
+ self.this = framesc.new_wxSplashScreenWindow(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -260,20 +263,20 @@ class wxSplashScreenPtr(wxFramePtr):
self.this = this
self.thisown = 0
def GetSplashStyle(self, *_args, **_kwargs):
- val = apply(framesc.wxSplashScreen_GetSplashStyle,(self,) + _args, _kwargs)
+ val = framesc.wxSplashScreen_GetSplashStyle(self, *_args, **_kwargs)
return val
def GetSplashWindow(self, *_args, **_kwargs):
- val = apply(framesc.wxSplashScreen_GetSplashWindow,(self,) + _args, _kwargs)
+ val = framesc.wxSplashScreen_GetSplashWindow(self, *_args, **_kwargs)
if val: val = wxSplashScreenWindowPtr(val)
return val
def GetTimeout(self, *_args, **_kwargs):
- val = apply(framesc.wxSplashScreen_GetTimeout,(self,) + _args, _kwargs)
+ val = framesc.wxSplashScreen_GetTimeout(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSplashScreen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxSplashScreen(wxSplashScreenPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(framesc.new_wxSplashScreen,_args,_kwargs)
+ self.this = framesc.new_wxSplashScreen(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
diff --git a/wxPython/src/gtk/gdi.cpp b/wxPython/src/gtk/gdi.cpp
index c4e48dacdf..5060a2d0f0 100644
--- a/wxPython/src/gtk/gdi.cpp
+++ b/wxPython/src/gtk/gdi.cpp
@@ -179,17 +179,25 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
icon->CopyFromBitmap(bmp);
return icon;
}
- // Alternate 'constructor'
+
wxCursor* wxPyStockCursor(int id) {
return new wxCursor(id);
}
wxCursor* wxCursorFromImage(const wxImage& image) {
- #ifndef __WXMAC__
return new wxCursor(image);
- #else
- return NULL;
- #endif
+ }
+
+ wxCursor* wxCursorFromBits(PyObject* bits, int width, int height,
+ int hotSpotX=-1, int hotSpotY=-1,
+ PyObject* maskBits=0) {
+ char* bitsbuf;
+ char* maskbuf = NULL;
+ int length;
+ PyString_AsStringAndSize(bits, &bitsbuf, &length);
+ if (maskBits)
+ PyString_AsStringAndSize(maskBits, &maskbuf, &length);
+ return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
}
// Alternate 'constructor'
wxColour* wxNamedColour(const wxString& colorName) {
@@ -595,6 +603,46 @@ static PyObject *_wrap_wxCursorFromImage(PyObject *self, PyObject *args, PyObjec
return _resultobj;
}
+static PyObject *_wrap_wxCursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxCursor * _result;
+ PyObject * _arg0;
+ int _arg1;
+ int _arg2;
+ int _arg3 = (int ) -1;
+ int _arg4 = (int ) -1;
+ PyObject * _arg5 = (PyObject *) 0;
+ PyObject * _obj0 = 0;
+ PyObject * _obj5 = 0;
+ char *_kwnames[] = { "bits","width","height","hotSpotX","hotSpotY","maskBits", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiO:wxCursorFromBits",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5))
+ return NULL;
+{
+ _arg0 = _obj0;
+}
+ if (_obj5)
+{
+ _arg5 = _obj5;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxCursor *)wxCursorFromBits(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxColour * _result;
@@ -2746,6 +2794,54 @@ static void *SwigwxCursorTowxObject(void *ptr) {
return (void *) dest;
}
+static wxCursor *new_wxCursor(const wxString *cursorName,long flags,int hotSpotX,int hotSpotY) {
+#ifdef __WXGTK__
+ wxCHECK_MSG(FALSE, NULL,
+ wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
+#else
+ return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
+#endif
+ }
+
+static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxCursor * _result;
+ wxString * _arg0;
+ long _arg1;
+ int _arg2 = (int ) 0;
+ int _arg3 = (int ) 0;
+ PyObject * _obj0 = 0;
+ char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
+ return NULL;
+{
+ _arg0 = wxString_in_helper(_obj0);
+ if (_arg0 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxCursor *)new_wxCursor(_arg0,_arg1,_arg2,_arg3);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+{
+ if (_obj0)
+ delete _arg0;
+}
+ return _resultobj;
+}
+
#define delete_wxCursor(_swigobj) (delete _swigobj)
static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -9408,6 +9504,50 @@ static PyObject *_wrap_new_wxRegionFromPoints(PyObject *self, PyObject *args, Py
return _resultobj;
}
+#define new_wxRegionFromBitmap(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2))
+static PyObject *_wrap_new_wxRegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRegion * _result;
+ wxBitmap * _arg0;
+ wxColour * _arg1 = (wxColour *) &wxNullColour;
+ int _arg2 = (int ) 0;
+ PyObject * _argo0 = 0;
+ wxColour temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "bmp","transColour","tolerance", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:new_wxRegionFromBitmap",_kwnames,&_argo0,&_obj1,&_arg2))
+ return NULL;
+ if (_argo0) {
+ if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionFromBitmap. Expected _wxBitmap_p.");
+ return NULL;
+ }
+ }
+ if (_obj1)
+{
+ _arg1 = &temp;
+ if (! wxColour_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxRegion *)new_wxRegionFromBitmap(*_arg0,*_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
#define delete_wxRegion(_swigobj) (delete _swigobj)
static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -10102,6 +10242,82 @@ static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObje
return _resultobj;
}
+#define wxRegion_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
+static PyObject *_wrap_wxRegion_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxBitmap * _result;
+ wxRegion * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_ConvertToBitmap",_kwnames,&_argo0))
+ 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_ConvertToBitmap. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxBitmap (wxRegion_ConvertToBitmap(_arg0));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxRegion_UnionBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2))
+static PyObject *_wrap_wxRegion_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ wxBitmap * _arg1;
+ wxColour * _arg2 = (wxColour *) &wxNullColour;
+ int _arg3 = (int ) 0;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ wxColour temp;
+ PyObject * _obj2 = 0;
+ char *_kwnames[] = { "self","bmp","transColour","tolerance", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|Oi:wxRegion_UnionBitmap",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3))
+ 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_UnionBitmap. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionBitmap. Expected _wxBitmap_p.");
+ return NULL;
+ }
+ }
+ if (_obj2)
+{
+ _arg2 = &temp;
+ if (! wxColour_helper(_obj2, &_arg2))
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxRegion_UnionBitmap(_arg0,*_arg1,*_arg2,_arg3);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
static void *SwigwxRegionIteratorTowxObject(void *ptr) {
wxRegionIterator *src;
wxObject *dest;
@@ -10469,6 +10685,8 @@ static PyMethodDef gdicMethods[] = {
{ "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
{ "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
{ "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_UnionBitmap", (PyCFunction) _wrap_wxRegion_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_ConvertToBitmap", (PyCFunction) _wrap_wxRegion_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
{ "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
{ "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
{ "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
@@ -10490,6 +10708,7 @@ static PyMethodDef gdicMethods[] = {
{ "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_wxRegionFromBitmap", (PyCFunction) _wrap_new_wxRegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
{ "new_wxRegionFromPoints", (PyCFunction) _wrap_new_wxRegionFromPoints, METH_VARARGS | METH_KEYWORDS },
{ "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
{ "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
@@ -10669,6 +10888,7 @@ static PyMethodDef gdicMethods[] = {
{ "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
{ "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
{ "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS },
{ "wxIconBundle_GetIcon", (PyCFunction) _wrap_wxIconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
{ "wxIconBundle_AddIconFromFile", (PyCFunction) _wrap_wxIconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
{ "wxIconBundle_AddIcon", (PyCFunction) _wrap_wxIconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
@@ -10712,6 +10932,7 @@ static PyMethodDef gdicMethods[] = {
{ "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
{ "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
{ "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxCursorFromBits", (PyCFunction) _wrap_wxCursorFromBits, METH_VARARGS | METH_KEYWORDS },
{ "wxCursorFromImage", (PyCFunction) _wrap_wxCursorFromImage, METH_VARARGS | METH_KEYWORDS },
{ "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
{ "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
diff --git a/wxPython/src/gtk/gdi.py b/wxPython/src/gtk/gdi.py
index a5a770e9aa..2724b09ce0 100644
--- a/wxPython/src/gtk/gdi.py
+++ b/wxPython/src/gtk/gdi.py
@@ -16,19 +16,19 @@ class wxGDIObjectPtr(wxObjectPtr):
except:
pass
def GetVisible(self, *_args, **_kwargs):
- val = apply(gdic.wxGDIObject_GetVisible,(self,) + _args, _kwargs)
+ val = gdic.wxGDIObject_GetVisible(self, *_args, **_kwargs)
return val
def SetVisible(self, *_args, **_kwargs):
- val = apply(gdic.wxGDIObject_SetVisible,(self,) + _args, _kwargs)
+ val = gdic.wxGDIObject_SetVisible(self, *_args, **_kwargs)
return val
def IsNull(self, *_args, **_kwargs):
- val = apply(gdic.wxGDIObject_IsNull,(self,) + _args, _kwargs)
+ val = gdic.wxGDIObject_IsNull(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGDIObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGDIObject(wxGDIObjectPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxGDIObject,_args,_kwargs)
+ self.this = gdic.new_wxGDIObject(*_args,**_kwargs)
self.thisown = 1
@@ -45,60 +45,61 @@ class wxBitmapPtr(wxGDIObjectPtr):
except:
pass
def GetPalette(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_GetPalette,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_GetPalette(self, *_args, **_kwargs)
if val: val = wxPalettePtr(val)
return val
def GetMask(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_GetMask,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_GetMask(self, *_args, **_kwargs)
if val: val = wxMaskPtr(val)
return val
def LoadFile(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_LoadFile,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_LoadFile(self, *_args, **_kwargs)
return val
def SaveFile(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_SaveFile,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_SaveFile(self, *_args, **_kwargs)
return val
def SetMask(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_SetMask,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_SetMask(self, *_args, **_kwargs)
return val
def Ok(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_Ok,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_Ok(self, *_args, **_kwargs)
return val
def GetWidth(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_GetWidth,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_GetWidth(self, *_args, **_kwargs)
return val
def GetHeight(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_GetHeight,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_GetHeight(self, *_args, **_kwargs)
return val
def GetDepth(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_GetDepth,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_GetDepth(self, *_args, **_kwargs)
return val
def SetWidth(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_SetWidth,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_SetWidth(self, *_args, **_kwargs)
return val
def SetHeight(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_SetHeight,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_SetHeight(self, *_args, **_kwargs)
return val
def SetDepth(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_SetDepth,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_SetDepth(self, *_args, **_kwargs)
return val
def GetSubBitmap(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_GetSubBitmap,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_GetSubBitmap(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val) ; val.thisown = 1
return val
def CopyFromIcon(self, *_args, **_kwargs):
- val = apply(gdic.wxBitmap_CopyFromIcon,(self,) + _args, _kwargs)
+ val = gdic.wxBitmap_CopyFromIcon(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
def SetMaskColour(self, colour):
mask = wxMaskColour(self, colour)
self.SetMask(mask)
+ def __nonzero__(self): return self.Ok()
class wxBitmap(wxBitmapPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxBitmap,_args,_kwargs)
+ self.this = gdic.new_wxBitmap(*_args,**_kwargs)
self.thisown = 1
@@ -109,13 +110,13 @@ class wxMaskPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def Destroy(self, *_args, **_kwargs):
- val = apply(gdic.wxMask_Destroy,(self,) + _args, _kwargs)
+ val = gdic.wxMask_Destroy(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMask instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMask(wxMaskPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxMask,_args,_kwargs)
+ self.this = gdic.new_wxMask(*_args,**_kwargs)
self.thisown = 1
@@ -132,37 +133,38 @@ class wxIconPtr(wxGDIObjectPtr):
except:
pass
def LoadFile(self, *_args, **_kwargs):
- val = apply(gdic.wxIcon_LoadFile,(self,) + _args, _kwargs)
+ val = gdic.wxIcon_LoadFile(self, *_args, **_kwargs)
return val
def Ok(self, *_args, **_kwargs):
- val = apply(gdic.wxIcon_Ok,(self,) + _args, _kwargs)
+ val = gdic.wxIcon_Ok(self, *_args, **_kwargs)
return val
def GetWidth(self, *_args, **_kwargs):
- val = apply(gdic.wxIcon_GetWidth,(self,) + _args, _kwargs)
+ val = gdic.wxIcon_GetWidth(self, *_args, **_kwargs)
return val
def GetHeight(self, *_args, **_kwargs):
- val = apply(gdic.wxIcon_GetHeight,(self,) + _args, _kwargs)
+ val = gdic.wxIcon_GetHeight(self, *_args, **_kwargs)
return val
def GetDepth(self, *_args, **_kwargs):
- val = apply(gdic.wxIcon_GetDepth,(self,) + _args, _kwargs)
+ val = gdic.wxIcon_GetDepth(self, *_args, **_kwargs)
return val
def SetWidth(self, *_args, **_kwargs):
- val = apply(gdic.wxIcon_SetWidth,(self,) + _args, _kwargs)
+ val = gdic.wxIcon_SetWidth(self, *_args, **_kwargs)
return val
def SetHeight(self, *_args, **_kwargs):
- val = apply(gdic.wxIcon_SetHeight,(self,) + _args, _kwargs)
+ val = gdic.wxIcon_SetHeight(self, *_args, **_kwargs)
return val
def SetDepth(self, *_args, **_kwargs):
- val = apply(gdic.wxIcon_SetDepth,(self,) + _args, _kwargs)
+ val = gdic.wxIcon_SetDepth(self, *_args, **_kwargs)
return val
def CopyFromBitmap(self, *_args, **_kwargs):
- val = apply(gdic.wxIcon_CopyFromBitmap,(self,) + _args, _kwargs)
+ val = gdic.wxIcon_CopyFromBitmap(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+ def __nonzero__(self): return self.Ok()
class wxIcon(wxIconPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxIcon,_args,_kwargs)
+ self.this = gdic.new_wxIcon(*_args,**_kwargs)
self.thisown = 1
@@ -179,31 +181,31 @@ class wxIconBundlePtr :
except:
pass
def AddIcon(self, *_args, **_kwargs):
- val = apply(gdic.wxIconBundle_AddIcon,(self,) + _args, _kwargs)
+ val = gdic.wxIconBundle_AddIcon(self, *_args, **_kwargs)
return val
def AddIconFromFile(self, *_args, **_kwargs):
- val = apply(gdic.wxIconBundle_AddIconFromFile,(self,) + _args, _kwargs)
+ val = gdic.wxIconBundle_AddIconFromFile(self, *_args, **_kwargs)
return val
def GetIcon(self, *_args, **_kwargs):
- val = apply(gdic.wxIconBundle_GetIcon,(self,) + _args, _kwargs)
+ val = gdic.wxIconBundle_GetIcon(self, *_args, **_kwargs)
if val: val = wxIconPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxIconBundle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxIconBundle(wxIconBundlePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxIconBundle,_args,_kwargs)
+ self.this = gdic.new_wxIconBundle(*_args,**_kwargs)
self.thisown = 1
def wxIconBundleFromFile(*_args,**_kwargs):
- val = wxIconBundlePtr(apply(gdic.new_wxIconBundleFromFile,_args,_kwargs))
+ val = wxIconBundlePtr(gdic.new_wxIconBundleFromFile(*_args,**_kwargs))
val.thisown = 1
return val
def wxIconBundleFromIcon(*_args,**_kwargs):
- val = wxIconBundlePtr(apply(gdic.new_wxIconBundleFromIcon,_args,_kwargs))
+ val = wxIconBundlePtr(gdic.new_wxIconBundleFromIcon(*_args,**_kwargs))
val.thisown = 1
return val
@@ -219,13 +221,15 @@ class wxCursorPtr(wxGDIObjectPtr):
except:
pass
def Ok(self, *_args, **_kwargs):
- val = apply(gdic.wxCursor_Ok,(self,) + _args, _kwargs)
+ val = gdic.wxCursor_Ok(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+ def __nonzero__(self): return self.Ok()
class wxCursor(wxCursorPtr):
- def __init__(self,this):
- self.this = this
+ def __init__(self,*_args,**_kwargs):
+ self.this = gdic.new_wxCursor(*_args,**_kwargs)
+ self.thisown = 1
@@ -241,31 +245,31 @@ class wxColourPtr(wxObjectPtr):
except:
pass
def Red(self, *_args, **_kwargs):
- val = apply(gdic.wxColour_Red,(self,) + _args, _kwargs)
+ val = gdic.wxColour_Red(self, *_args, **_kwargs)
return val
def Green(self, *_args, **_kwargs):
- val = apply(gdic.wxColour_Green,(self,) + _args, _kwargs)
+ val = gdic.wxColour_Green(self, *_args, **_kwargs)
return val
def Blue(self, *_args, **_kwargs):
- val = apply(gdic.wxColour_Blue,(self,) + _args, _kwargs)
+ val = gdic.wxColour_Blue(self, *_args, **_kwargs)
return val
def Ok(self, *_args, **_kwargs):
- val = apply(gdic.wxColour_Ok,(self,) + _args, _kwargs)
+ val = gdic.wxColour_Ok(self, *_args, **_kwargs)
return val
def Set(self, *_args, **_kwargs):
- val = apply(gdic.wxColour_Set,(self,) + _args, _kwargs)
+ val = gdic.wxColour_Set(self, *_args, **_kwargs)
return val
def Get(self, *_args, **_kwargs):
- val = apply(gdic.wxColour_Get,(self,) + _args, _kwargs)
+ val = gdic.wxColour_Get(self, *_args, **_kwargs)
return val
def __eq__(self, *_args, **_kwargs):
- val = apply(gdic.wxColour___eq__,(self,) + _args, _kwargs)
+ val = gdic.wxColour___eq__(self, *_args, **_kwargs)
return val
def __ne__(self, *_args, **_kwargs):
- val = apply(gdic.wxColour___ne__,(self,) + _args, _kwargs)
+ val = gdic.wxColour___ne__(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxColour instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
asTuple = Get
def __str__(self): return str(self.asTuple())
def __repr__(self): return 'wxColour:' + str(self.asTuple())
@@ -276,7 +280,7 @@ class wxColourPtr(wxObjectPtr):
class wxColour(wxColourPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxColour,_args,_kwargs)
+ self.this = gdic.new_wxColour(*_args,**_kwargs)
self.thisown = 1
@@ -287,17 +291,17 @@ class wxColourDatabasePtr(wxObjectPtr):
self.this = this
self.thisown = 0
def FindColour(self, *_args, **_kwargs):
- val = apply(gdic.wxColourDatabase_FindColour,(self,) + _args, _kwargs)
+ val = gdic.wxColourDatabase_FindColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val)
return val
def FindName(self, *_args, **_kwargs):
- val = apply(gdic.wxColourDatabase_FindName,(self,) + _args, _kwargs)
+ val = gdic.wxColourDatabase_FindName(self, *_args, **_kwargs)
return val
def Append(self, *_args, **_kwargs):
- val = apply(gdic.wxColourDatabase_Append,(self,) + _args, _kwargs)
+ val = gdic.wxColourDatabase_Append(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxColourDatabase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxColourDatabase(wxColourDatabasePtr):
def __init__(self,this):
self.this = this
@@ -316,50 +320,51 @@ class wxPenPtr(wxGDIObjectPtr):
except:
pass
def GetCap(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_GetCap,(self,) + _args, _kwargs)
+ val = gdic.wxPen_GetCap(self, *_args, **_kwargs)
return val
def GetColour(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_GetColour,(self,) + _args, _kwargs)
+ val = gdic.wxPen_GetColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetJoin(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_GetJoin,(self,) + _args, _kwargs)
+ val = gdic.wxPen_GetJoin(self, *_args, **_kwargs)
return val
def GetStyle(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_GetStyle,(self,) + _args, _kwargs)
+ val = gdic.wxPen_GetStyle(self, *_args, **_kwargs)
return val
def GetWidth(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_GetWidth,(self,) + _args, _kwargs)
+ val = gdic.wxPen_GetWidth(self, *_args, **_kwargs)
return val
def Ok(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_Ok,(self,) + _args, _kwargs)
+ val = gdic.wxPen_Ok(self, *_args, **_kwargs)
return val
def SetCap(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_SetCap,(self,) + _args, _kwargs)
+ val = gdic.wxPen_SetCap(self, *_args, **_kwargs)
return val
def SetColour(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_SetColour,(self,) + _args, _kwargs)
+ val = gdic.wxPen_SetColour(self, *_args, **_kwargs)
return val
def SetJoin(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_SetJoin,(self,) + _args, _kwargs)
+ val = gdic.wxPen_SetJoin(self, *_args, **_kwargs)
return val
def SetStyle(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_SetStyle,(self,) + _args, _kwargs)
+ val = gdic.wxPen_SetStyle(self, *_args, **_kwargs)
return val
def SetWidth(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_SetWidth,(self,) + _args, _kwargs)
+ val = gdic.wxPen_SetWidth(self, *_args, **_kwargs)
return val
def SetDashes(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_SetDashes,(self,) + _args, _kwargs)
+ val = gdic.wxPen_SetDashes(self, *_args, **_kwargs)
return val
def GetDashes(self, *_args, **_kwargs):
- val = apply(gdic.wxPen_GetDashes,(self,) + _args, _kwargs)
+ val = gdic.wxPen_GetDashes(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+ def __nonzero__(self): return self.Ok()
class wxPen(wxPenPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxPen,_args,_kwargs)
+ self.this = gdic.new_wxPen(*_args,**_kwargs)
self.thisown = 1
@@ -376,13 +381,13 @@ class wxPyPenPtr(wxPenPtr):
except:
pass
def SetDashes(self, *_args, **_kwargs):
- val = apply(gdic.wxPyPen_SetDashes,(self,) + _args, _kwargs)
+ val = gdic.wxPyPen_SetDashes(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyPen(wxPyPenPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxPyPen,_args,_kwargs)
+ self.this = gdic.new_wxPyPen(*_args,**_kwargs)
self.thisown = 1
@@ -393,20 +398,20 @@ class wxPenListPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def AddPen(self, *_args, **_kwargs):
- val = apply(gdic.wxPenList_AddPen,(self,) + _args, _kwargs)
+ val = gdic.wxPenList_AddPen(self, *_args, **_kwargs)
return val
def FindOrCreatePen(self, *_args, **_kwargs):
- val = apply(gdic.wxPenList_FindOrCreatePen,(self,) + _args, _kwargs)
+ val = gdic.wxPenList_FindOrCreatePen(self, *_args, **_kwargs)
if val: val = wxPenPtr(val)
return val
def RemovePen(self, *_args, **_kwargs):
- val = apply(gdic.wxPenList_RemovePen,(self,) + _args, _kwargs)
+ val = gdic.wxPenList_RemovePen(self, *_args, **_kwargs)
return val
def GetCount(self, *_args, **_kwargs):
- val = apply(gdic.wxPenList_GetCount,(self,) + _args, _kwargs)
+ val = gdic.wxPenList_GetCount(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPenList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPenList(wxPenListPtr):
def __init__(self,this):
self.this = this
@@ -425,33 +430,34 @@ class wxBrushPtr(wxGDIObjectPtr):
except:
pass
def GetColour(self, *_args, **_kwargs):
- val = apply(gdic.wxBrush_GetColour,(self,) + _args, _kwargs)
+ val = gdic.wxBrush_GetColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetStipple(self, *_args, **_kwargs):
- val = apply(gdic.wxBrush_GetStipple,(self,) + _args, _kwargs)
+ val = gdic.wxBrush_GetStipple(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val)
return val
def GetStyle(self, *_args, **_kwargs):
- val = apply(gdic.wxBrush_GetStyle,(self,) + _args, _kwargs)
+ val = gdic.wxBrush_GetStyle(self, *_args, **_kwargs)
return val
def Ok(self, *_args, **_kwargs):
- val = apply(gdic.wxBrush_Ok,(self,) + _args, _kwargs)
+ val = gdic.wxBrush_Ok(self, *_args, **_kwargs)
return val
def SetColour(self, *_args, **_kwargs):
- val = apply(gdic.wxBrush_SetColour,(self,) + _args, _kwargs)
+ val = gdic.wxBrush_SetColour(self, *_args, **_kwargs)
return val
def SetStipple(self, *_args, **_kwargs):
- val = apply(gdic.wxBrush_SetStipple,(self,) + _args, _kwargs)
+ val = gdic.wxBrush_SetStipple(self, *_args, **_kwargs)
return val
def SetStyle(self, *_args, **_kwargs):
- val = apply(gdic.wxBrush_SetStyle,(self,) + _args, _kwargs)
+ val = gdic.wxBrush_SetStyle(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxBrush instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+ def __nonzero__(self): return self.Ok()
class wxBrush(wxBrushPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxBrush,_args,_kwargs)
+ self.this = gdic.new_wxBrush(*_args,**_kwargs)
self.thisown = 1
@@ -462,20 +468,20 @@ class wxBrushListPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def AddBrush(self, *_args, **_kwargs):
- val = apply(gdic.wxBrushList_AddBrush,(self,) + _args, _kwargs)
+ val = gdic.wxBrushList_AddBrush(self, *_args, **_kwargs)
return val
def FindOrCreateBrush(self, *_args, **_kwargs):
- val = apply(gdic.wxBrushList_FindOrCreateBrush,(self,) + _args, _kwargs)
+ val = gdic.wxBrushList_FindOrCreateBrush(self, *_args, **_kwargs)
if val: val = wxBrushPtr(val)
return val
def RemoveBrush(self, *_args, **_kwargs):
- val = apply(gdic.wxBrushList_RemoveBrush,(self,) + _args, _kwargs)
+ val = gdic.wxBrushList_RemoveBrush(self, *_args, **_kwargs)
return val
def GetCount(self, *_args, **_kwargs):
- val = apply(gdic.wxBrushList_GetCount,(self,) + _args, _kwargs)
+ val = gdic.wxBrushList_GetCount(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxBrushList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxBrushList(wxBrushListPtr):
def __init__(self,this):
self.this = this
@@ -494,309 +500,310 @@ class wxDCPtr(wxObjectPtr):
except:
pass
def BeginDrawing(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_BeginDrawing,(self,) + _args, _kwargs)
+ val = gdic.wxDC_BeginDrawing(self, *_args, **_kwargs)
return val
def Blit(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_Blit,(self,) + _args, _kwargs)
+ val = gdic.wxDC_Blit(self, *_args, **_kwargs)
return val
def Clear(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_Clear,(self,) + _args, _kwargs)
+ val = gdic.wxDC_Clear(self, *_args, **_kwargs)
return val
def CrossHair(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_CrossHair,(self,) + _args, _kwargs)
+ val = gdic.wxDC_CrossHair(self, *_args, **_kwargs)
return val
def DestroyClippingRegion(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DestroyClippingRegion,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DestroyClippingRegion(self, *_args, **_kwargs)
return val
def DeviceToLogicalX(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DeviceToLogicalX,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DeviceToLogicalX(self, *_args, **_kwargs)
return val
def DeviceToLogicalXRel(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DeviceToLogicalXRel,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DeviceToLogicalXRel(self, *_args, **_kwargs)
return val
def DeviceToLogicalY(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DeviceToLogicalY,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DeviceToLogicalY(self, *_args, **_kwargs)
return val
def DeviceToLogicalYRel(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DeviceToLogicalYRel,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DeviceToLogicalYRel(self, *_args, **_kwargs)
return val
def DrawArc(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawArc,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawArc(self, *_args, **_kwargs)
return val
def DrawCircle(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawCircle,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawCircle(self, *_args, **_kwargs)
return val
def DrawEllipse(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawEllipse,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawEllipse(self, *_args, **_kwargs)
return val
def DrawEllipticArc(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawEllipticArc,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawEllipticArc(self, *_args, **_kwargs)
return val
def DrawIcon(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawIcon,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawIcon(self, *_args, **_kwargs)
return val
def DrawLabel(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawLabel,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawLabel(self, *_args, **_kwargs)
return val
def DrawImageLabel(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawImageLabel,(self,) + _args, _kwargs)
+ val = 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)
+ val = gdic.wxDC_DrawLine(self, *_args, **_kwargs)
return val
def DrawLines(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawLines,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawLines(self, *_args, **_kwargs)
return val
def DrawPolygon(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawPolygon,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawPolygon(self, *_args, **_kwargs)
return val
def DrawPoint(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawPoint,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawPoint(self, *_args, **_kwargs)
return val
def DrawRectangle(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawRectangle,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawRectangle(self, *_args, **_kwargs)
return val
def DrawRectangleRect(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawRectangleRect,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawRectangleRect(self, *_args, **_kwargs)
return val
def DrawRotatedText(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawRotatedText,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawRotatedText(self, *_args, **_kwargs)
return val
def DrawRoundedRectangle(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawRoundedRectangle,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawRoundedRectangle(self, *_args, **_kwargs)
return val
def DrawSpline(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawSpline,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawSpline(self, *_args, **_kwargs)
return val
def DrawText(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawText,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawText(self, *_args, **_kwargs)
return val
def EndDoc(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_EndDoc,(self,) + _args, _kwargs)
+ val = gdic.wxDC_EndDoc(self, *_args, **_kwargs)
return val
def EndDrawing(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_EndDrawing,(self,) + _args, _kwargs)
+ val = gdic.wxDC_EndDrawing(self, *_args, **_kwargs)
return val
def EndPage(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_EndPage,(self,) + _args, _kwargs)
+ val = gdic.wxDC_EndPage(self, *_args, **_kwargs)
return val
def FloodFill(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_FloodFill,(self,) + _args, _kwargs)
+ val = gdic.wxDC_FloodFill(self, *_args, **_kwargs)
return val
def GetBackground(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetBackground,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetBackground(self, *_args, **_kwargs)
if val: val = wxBrushPtr(val) ; val.thisown = 1
return val
def GetBrush(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetBrush,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetBrush(self, *_args, **_kwargs)
if val: val = wxBrushPtr(val) ; val.thisown = 1
return val
def GetCharHeight(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetCharHeight,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetCharHeight(self, *_args, **_kwargs)
return val
def GetCharWidth(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetCharWidth,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetCharWidth(self, *_args, **_kwargs)
return val
def GetClippingBox(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetClippingBox,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetClippingBox(self, *_args, **_kwargs)
return val
def GetFont(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetFont,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def GetLogicalFunction(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetLogicalFunction,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetLogicalFunction(self, *_args, **_kwargs)
return val
def GetLogicalScale(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetLogicalScale,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetLogicalScale(self, *_args, **_kwargs)
return val
def GetMapMode(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetMapMode,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetMapMode(self, *_args, **_kwargs)
return val
def GetOptimization(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetOptimization,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetOptimization(self, *_args, **_kwargs)
return val
def GetPen(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetPen,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetPen(self, *_args, **_kwargs)
if val: val = wxPenPtr(val) ; val.thisown = 1
return val
def GetPixel(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetPixel,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetPixel(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetSizeTuple(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetSizeTuple,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetSizeTuple(self, *_args, **_kwargs)
return val
def GetSize(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetSize,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetSize(self, *_args, **_kwargs)
if val: val = wxSizePtr(val) ; val.thisown = 1
return val
def GetSizeMM(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetSizeMM,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetSizeMM(self, *_args, **_kwargs)
if val: val = wxSizePtr(val) ; val.thisown = 1
return val
def GetTextBackground(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetTextBackground,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetTextBackground(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetTextExtent(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetTextExtent,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetTextExtent(self, *_args, **_kwargs)
return val
def GetFullTextExtent(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetFullTextExtent,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetFullTextExtent(self, *_args, **_kwargs)
return val
def GetMultiLineTextExtent(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetMultiLineTextExtent,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetMultiLineTextExtent(self, *_args, **_kwargs)
return val
def GetTextForeground(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetTextForeground,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetTextForeground(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetUserScale(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetUserScale,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetUserScale(self, *_args, **_kwargs)
return val
def LogicalToDeviceX(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_LogicalToDeviceX,(self,) + _args, _kwargs)
+ val = gdic.wxDC_LogicalToDeviceX(self, *_args, **_kwargs)
return val
def LogicalToDeviceXRel(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_LogicalToDeviceXRel,(self,) + _args, _kwargs)
+ val = gdic.wxDC_LogicalToDeviceXRel(self, *_args, **_kwargs)
return val
def LogicalToDeviceY(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_LogicalToDeviceY,(self,) + _args, _kwargs)
+ val = gdic.wxDC_LogicalToDeviceY(self, *_args, **_kwargs)
return val
def LogicalToDeviceYRel(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_LogicalToDeviceYRel,(self,) + _args, _kwargs)
+ val = gdic.wxDC_LogicalToDeviceYRel(self, *_args, **_kwargs)
return val
def MaxX(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_MaxX,(self,) + _args, _kwargs)
+ val = gdic.wxDC_MaxX(self, *_args, **_kwargs)
return val
def MaxY(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_MaxY,(self,) + _args, _kwargs)
+ val = gdic.wxDC_MaxY(self, *_args, **_kwargs)
return val
def MinX(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_MinX,(self,) + _args, _kwargs)
+ val = gdic.wxDC_MinX(self, *_args, **_kwargs)
return val
def MinY(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_MinY,(self,) + _args, _kwargs)
+ val = gdic.wxDC_MinY(self, *_args, **_kwargs)
return val
def Ok(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_Ok,(self,) + _args, _kwargs)
+ val = gdic.wxDC_Ok(self, *_args, **_kwargs)
return val
def SetDeviceOrigin(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetDeviceOrigin,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetDeviceOrigin(self, *_args, **_kwargs)
return val
def SetBackground(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetBackground,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetBackground(self, *_args, **_kwargs)
return val
def SetBackgroundMode(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetBackgroundMode,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetBackgroundMode(self, *_args, **_kwargs)
return val
def SetClippingRegion(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetClippingRegion,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetClippingRegion(self, *_args, **_kwargs)
return val
def SetClippingRegionAsRegion(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetClippingRegionAsRegion,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetClippingRegionAsRegion(self, *_args, **_kwargs)
return val
def SetClippingRect(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetClippingRect,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetClippingRect(self, *_args, **_kwargs)
return val
def SetPalette(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetPalette,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetPalette(self, *_args, **_kwargs)
return val
def SetBrush(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetBrush,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetBrush(self, *_args, **_kwargs)
return val
def SetFont(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetFont,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetFont(self, *_args, **_kwargs)
return val
def SetLogicalFunction(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetLogicalFunction,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetLogicalFunction(self, *_args, **_kwargs)
return val
def SetLogicalScale(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetLogicalScale,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetLogicalScale(self, *_args, **_kwargs)
return val
def SetMapMode(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetMapMode,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetMapMode(self, *_args, **_kwargs)
return val
def SetOptimization(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetOptimization,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetOptimization(self, *_args, **_kwargs)
return val
def SetPen(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetPen,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetPen(self, *_args, **_kwargs)
return val
def SetTextBackground(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetTextBackground,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetTextBackground(self, *_args, **_kwargs)
return val
def SetTextForeground(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetTextForeground,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetTextForeground(self, *_args, **_kwargs)
return val
def SetUserScale(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetUserScale,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetUserScale(self, *_args, **_kwargs)
return val
def StartDoc(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_StartDoc,(self,) + _args, _kwargs)
+ val = gdic.wxDC_StartDoc(self, *_args, **_kwargs)
return val
def StartPage(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_StartPage,(self,) + _args, _kwargs)
+ val = gdic.wxDC_StartPage(self, *_args, **_kwargs)
return val
def DrawBitmap(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_DrawBitmap,(self,) + _args, _kwargs)
+ val = gdic.wxDC_DrawBitmap(self, *_args, **_kwargs)
return val
def CanDrawBitmap(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_CanDrawBitmap,(self,) + _args, _kwargs)
+ val = gdic.wxDC_CanDrawBitmap(self, *_args, **_kwargs)
return val
def CanGetTextExtent(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_CanGetTextExtent,(self,) + _args, _kwargs)
+ val = gdic.wxDC_CanGetTextExtent(self, *_args, **_kwargs)
return val
def GetDepth(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetDepth,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetDepth(self, *_args, **_kwargs)
return val
def GetPPI(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetPPI,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetPPI(self, *_args, **_kwargs)
if val: val = wxSizePtr(val) ; val.thisown = 1
return val
def GetLogicalOrigin(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetLogicalOrigin,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetLogicalOrigin(self, *_args, **_kwargs)
return val
def SetLogicalOrigin(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetLogicalOrigin,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetLogicalOrigin(self, *_args, **_kwargs)
return val
def GetDeviceOrigin(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetDeviceOrigin,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetDeviceOrigin(self, *_args, **_kwargs)
return val
def SetAxisOrientation(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_SetAxisOrientation,(self,) + _args, _kwargs)
+ val = gdic.wxDC_SetAxisOrientation(self, *_args, **_kwargs)
return val
def CalcBoundingBox(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_CalcBoundingBox,(self,) + _args, _kwargs)
+ val = gdic.wxDC_CalcBoundingBox(self, *_args, **_kwargs)
return val
def ResetBoundingBox(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_ResetBoundingBox,(self,) + _args, _kwargs)
+ val = gdic.wxDC_ResetBoundingBox(self, *_args, **_kwargs)
return val
def GetBoundingBox(self, *_args, **_kwargs):
- val = apply(gdic.wxDC_GetBoundingBox,(self,) + _args, _kwargs)
+ val = gdic.wxDC_GetBoundingBox(self, *_args, **_kwargs)
return val
def _DrawPointList(self, *_args, **_kwargs):
- val = apply(gdic.wxDC__DrawPointList,(self,) + _args, _kwargs)
+ val = gdic.wxDC__DrawPointList(self, *_args, **_kwargs)
return val
def _DrawLineList(self, *_args, **_kwargs):
- val = apply(gdic.wxDC__DrawLineList,(self,) + _args, _kwargs)
+ val = gdic.wxDC__DrawLineList(self, *_args, **_kwargs)
return val
def _DrawRectangleList(self, *_args, **_kwargs):
- val = apply(gdic.wxDC__DrawRectangleList,(self,) + _args, _kwargs)
+ val = gdic.wxDC__DrawRectangleList(self, *_args, **_kwargs)
return val
def _DrawEllipseList(self, *_args, **_kwargs):
- val = apply(gdic.wxDC__DrawEllipseList,(self,) + _args, _kwargs)
+ val = gdic.wxDC__DrawEllipseList(self, *_args, **_kwargs)
return val
def _DrawPolygonList(self, *_args, **_kwargs):
- val = apply(gdic.wxDC__DrawPolygonList,(self,) + _args, _kwargs)
+ val = gdic.wxDC__DrawPolygonList(self, *_args, **_kwargs)
return val
def _DrawTextList(self, *_args, **_kwargs):
- val = apply(gdic.wxDC__DrawTextList,(self,) + _args, _kwargs)
+ val = gdic.wxDC__DrawTextList(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+ def __nonzero__(self): return self.Ok()
def DrawPointList(self, points, pens=None):
if pens is None:
@@ -905,13 +912,13 @@ class wxMemoryDCPtr(wxDCPtr):
self.this = this
self.thisown = 0
def SelectObject(self, *_args, **_kwargs):
- val = apply(gdic.wxMemoryDC_SelectObject,(self,) + _args, _kwargs)
+ val = gdic.wxMemoryDC_SelectObject(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMemoryDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMemoryDC(wxMemoryDCPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxMemoryDC,_args,_kwargs)
+ self.this = gdic.new_wxMemoryDC(*_args,**_kwargs)
self.thisown = 1
@@ -922,20 +929,20 @@ class wxBufferedDCPtr(wxMemoryDCPtr):
self.this = this
self.thisown = 0
def UnMask(self, *_args, **_kwargs):
- val = apply(gdic.wxBufferedDC_UnMask,(self,) + _args, _kwargs)
+ val = gdic.wxBufferedDC_UnMask(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxBufferedDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxBufferedDC(wxBufferedDCPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxBufferedDC,_args,_kwargs)
+ self.this = gdic.new_wxBufferedDC(*_args,**_kwargs)
self.thisown = 1
self._dc = _args[0] # save a ref so the other dc won't be deleted before self
def wxBufferedDCInternalBuffer(*_args,**_kwargs):
- val = wxBufferedDCPtr(apply(gdic.new_wxBufferedDCInternalBuffer,_args,_kwargs))
+ val = wxBufferedDCPtr(gdic.new_wxBufferedDCInternalBuffer(*_args,**_kwargs))
val.thisown = 1
val._dc = _args[0] # save a ref so the other dc won't be deleted before self
return val
@@ -946,10 +953,10 @@ class wxBufferedPaintDCPtr(wxBufferedDCPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxBufferedPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxBufferedPaintDC(wxBufferedPaintDCPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxBufferedPaintDC,_args,_kwargs)
+ self.this = gdic.new_wxBufferedPaintDC(*_args,**_kwargs)
self.thisown = 1
@@ -960,19 +967,19 @@ class wxScreenDCPtr(wxDCPtr):
self.this = this
self.thisown = 0
def StartDrawingOnTopWin(self, *_args, **_kwargs):
- val = apply(gdic.wxScreenDC_StartDrawingOnTopWin,(self,) + _args, _kwargs)
+ val = gdic.wxScreenDC_StartDrawingOnTopWin(self, *_args, **_kwargs)
return val
def StartDrawingOnTop(self, *_args, **_kwargs):
- val = apply(gdic.wxScreenDC_StartDrawingOnTop,(self,) + _args, _kwargs)
+ val = gdic.wxScreenDC_StartDrawingOnTop(self, *_args, **_kwargs)
return val
def EndDrawingOnTop(self, *_args, **_kwargs):
- val = apply(gdic.wxScreenDC_EndDrawingOnTop,(self,) + _args, _kwargs)
+ val = gdic.wxScreenDC_EndDrawingOnTop(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxScreenDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxScreenDC(wxScreenDCPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxScreenDC,_args,_kwargs)
+ self.this = gdic.new_wxScreenDC(*_args,**_kwargs)
self.thisown = 1
@@ -983,10 +990,10 @@ class wxClientDCPtr(wxDCPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxClientDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxClientDC(wxClientDCPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxClientDC,_args,_kwargs)
+ self.this = gdic.new_wxClientDC(*_args,**_kwargs)
self.thisown = 1
@@ -997,10 +1004,10 @@ class wxPaintDCPtr(wxDCPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPaintDC(wxPaintDCPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxPaintDC,_args,_kwargs)
+ self.this = gdic.new_wxPaintDC(*_args,**_kwargs)
self.thisown = 1
@@ -1011,10 +1018,10 @@ class wxWindowDCPtr(wxDCPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxWindowDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxWindowDC(wxWindowDCPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxWindowDC,_args,_kwargs)
+ self.this = gdic.new_wxWindowDC(*_args,**_kwargs)
self.thisown = 1
@@ -1031,19 +1038,20 @@ class wxPalettePtr(wxGDIObjectPtr):
except:
pass
def GetPixel(self, *_args, **_kwargs):
- val = apply(gdic.wxPalette_GetPixel,(self,) + _args, _kwargs)
+ val = gdic.wxPalette_GetPixel(self, *_args, **_kwargs)
return val
def GetRGB(self, *_args, **_kwargs):
- val = apply(gdic.wxPalette_GetRGB,(self,) + _args, _kwargs)
+ val = gdic.wxPalette_GetRGB(self, *_args, **_kwargs)
return val
def Ok(self, *_args, **_kwargs):
- val = apply(gdic.wxPalette_Ok,(self,) + _args, _kwargs)
+ val = gdic.wxPalette_Ok(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPalette instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+ def __nonzero__(self): return self.Ok()
class wxPalette(wxPalettePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxPalette,_args,_kwargs)
+ self.this = gdic.new_wxPalette(*_args,**_kwargs)
self.thisown = 1
@@ -1060,37 +1068,37 @@ class wxImageListPtr(wxObjectPtr):
except:
pass
def Add(self, *_args, **_kwargs):
- val = apply(gdic.wxImageList_Add,(self,) + _args, _kwargs)
+ val = gdic.wxImageList_Add(self, *_args, **_kwargs)
return val
def AddWithColourMask(self, *_args, **_kwargs):
- val = apply(gdic.wxImageList_AddWithColourMask,(self,) + _args, _kwargs)
+ val = gdic.wxImageList_AddWithColourMask(self, *_args, **_kwargs)
return val
def AddIcon(self, *_args, **_kwargs):
- val = apply(gdic.wxImageList_AddIcon,(self,) + _args, _kwargs)
+ val = gdic.wxImageList_AddIcon(self, *_args, **_kwargs)
return val
def Replace(self, *_args, **_kwargs):
- val = apply(gdic.wxImageList_Replace,(self,) + _args, _kwargs)
+ val = gdic.wxImageList_Replace(self, *_args, **_kwargs)
return val
def Draw(self, *_args, **_kwargs):
- val = apply(gdic.wxImageList_Draw,(self,) + _args, _kwargs)
+ val = gdic.wxImageList_Draw(self, *_args, **_kwargs)
return val
def GetImageCount(self, *_args, **_kwargs):
- val = apply(gdic.wxImageList_GetImageCount,(self,) + _args, _kwargs)
+ val = gdic.wxImageList_GetImageCount(self, *_args, **_kwargs)
return val
def Remove(self, *_args, **_kwargs):
- val = apply(gdic.wxImageList_Remove,(self,) + _args, _kwargs)
+ val = gdic.wxImageList_Remove(self, *_args, **_kwargs)
return val
def RemoveAll(self, *_args, **_kwargs):
- val = apply(gdic.wxImageList_RemoveAll,(self,) + _args, _kwargs)
+ val = gdic.wxImageList_RemoveAll(self, *_args, **_kwargs)
return val
def GetSize(self, *_args, **_kwargs):
- val = apply(gdic.wxImageList_GetSize,(self,) + _args, _kwargs)
+ val = gdic.wxImageList_GetSize(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxImageList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxImageList(wxImageListPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxImageList,_args,_kwargs)
+ self.this = gdic.new_wxImageList(*_args,**_kwargs)
self.thisown = 1
@@ -1107,77 +1115,89 @@ class wxRegionPtr(wxGDIObjectPtr):
except:
pass
def Clear(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_Clear,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_Clear(self, *_args, **_kwargs)
return val
def Offset(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_Offset,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_Offset(self, *_args, **_kwargs)
return val
def Contains(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_Contains,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_Contains(self, *_args, **_kwargs)
return val
def ContainsPoint(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_ContainsPoint,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_ContainsPoint(self, *_args, **_kwargs)
return val
def ContainsRect(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_ContainsRect,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_ContainsRect(self, *_args, **_kwargs)
return val
def ContainsRectDim(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_ContainsRectDim,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_ContainsRectDim(self, *_args, **_kwargs)
return val
def GetBox(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_GetBox,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_GetBox(self, *_args, **_kwargs)
if val: val = wxRectPtr(val) ; val.thisown = 1
return val
def Intersect(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_Intersect,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_Intersect(self, *_args, **_kwargs)
return val
def IntersectRect(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_IntersectRect,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_IntersectRect(self, *_args, **_kwargs)
return val
def IntersectRegion(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_IntersectRegion,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_IntersectRegion(self, *_args, **_kwargs)
return val
def IsEmpty(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_IsEmpty,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_IsEmpty(self, *_args, **_kwargs)
return val
def Union(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_Union,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_Union(self, *_args, **_kwargs)
return val
def UnionRect(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_UnionRect,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_UnionRect(self, *_args, **_kwargs)
return val
def UnionRegion(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_UnionRegion,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_UnionRegion(self, *_args, **_kwargs)
return val
def Subtract(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_Subtract,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_Subtract(self, *_args, **_kwargs)
return val
def SubtractRect(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_SubtractRect,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_SubtractRect(self, *_args, **_kwargs)
return val
def SubtractRegion(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_SubtractRegion,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_SubtractRegion(self, *_args, **_kwargs)
return val
def Xor(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_Xor,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_Xor(self, *_args, **_kwargs)
return val
def XorRect(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_XorRect,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_XorRect(self, *_args, **_kwargs)
return val
def XorRegion(self, *_args, **_kwargs):
- val = apply(gdic.wxRegion_XorRegion,(self,) + _args, _kwargs)
+ val = gdic.wxRegion_XorRegion(self, *_args, **_kwargs)
+ return val
+ def ConvertToBitmap(self, *_args, **_kwargs):
+ val = gdic.wxRegion_ConvertToBitmap(self, *_args, **_kwargs)
+ if val: val = wxBitmapPtr(val) ; val.thisown = 1
+ return val
+ def UnionBitmap(self, *_args, **_kwargs):
+ val = gdic.wxRegion_UnionBitmap(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxRegion(wxRegionPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxRegion,_args,_kwargs)
+ self.this = gdic.new_wxRegion(*_args,**_kwargs)
self.thisown = 1
def wxRegionFromPoints(*_args,**_kwargs):
- val = wxRegionPtr(apply(gdic.new_wxRegionFromPoints,_args,_kwargs))
+ val = wxRegionPtr(gdic.new_wxRegionFromPoints(*_args,**_kwargs))
+ val.thisown = 1
+ return val
+
+def wxRegionFromBitmap(*_args,**_kwargs):
+ val = wxRegionPtr(gdic.new_wxRegionFromBitmap(*_args,**_kwargs))
val.thisown = 1
return val
@@ -1193,41 +1213,41 @@ class wxRegionIteratorPtr(wxObjectPtr):
except:
pass
def GetX(self, *_args, **_kwargs):
- val = apply(gdic.wxRegionIterator_GetX,(self,) + _args, _kwargs)
+ val = gdic.wxRegionIterator_GetX(self, *_args, **_kwargs)
return val
def GetY(self, *_args, **_kwargs):
- val = apply(gdic.wxRegionIterator_GetY,(self,) + _args, _kwargs)
+ val = gdic.wxRegionIterator_GetY(self, *_args, **_kwargs)
return val
def GetW(self, *_args, **_kwargs):
- val = apply(gdic.wxRegionIterator_GetW,(self,) + _args, _kwargs)
+ val = gdic.wxRegionIterator_GetW(self, *_args, **_kwargs)
return val
def GetWidth(self, *_args, **_kwargs):
- val = apply(gdic.wxRegionIterator_GetWidth,(self,) + _args, _kwargs)
+ val = gdic.wxRegionIterator_GetWidth(self, *_args, **_kwargs)
return val
def GetH(self, *_args, **_kwargs):
- val = apply(gdic.wxRegionIterator_GetH,(self,) + _args, _kwargs)
+ val = gdic.wxRegionIterator_GetH(self, *_args, **_kwargs)
return val
def GetHeight(self, *_args, **_kwargs):
- val = apply(gdic.wxRegionIterator_GetHeight,(self,) + _args, _kwargs)
+ val = gdic.wxRegionIterator_GetHeight(self, *_args, **_kwargs)
return val
def GetRect(self, *_args, **_kwargs):
- val = apply(gdic.wxRegionIterator_GetRect,(self,) + _args, _kwargs)
+ val = gdic.wxRegionIterator_GetRect(self, *_args, **_kwargs)
if val: val = wxRectPtr(val) ; val.thisown = 1
return val
def HaveRects(self, *_args, **_kwargs):
- val = apply(gdic.wxRegionIterator_HaveRects,(self,) + _args, _kwargs)
+ val = gdic.wxRegionIterator_HaveRects(self, *_args, **_kwargs)
return val
def Reset(self, *_args, **_kwargs):
- val = apply(gdic.wxRegionIterator_Reset,(self,) + _args, _kwargs)
+ val = gdic.wxRegionIterator_Reset(self, *_args, **_kwargs)
return val
def Next(self, *_args, **_kwargs):
- val = apply(gdic.wxRegionIterator_Next,(self,) + _args, _kwargs)
+ val = gdic.wxRegionIterator_Next(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxRegionIterator(wxRegionIteratorPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gdic.new_wxRegionIterator,_args,_kwargs)
+ self.this = gdic.new_wxRegionIterator(*_args,**_kwargs)
self.thisown = 1
@@ -1238,62 +1258,67 @@ class wxRegionIterator(wxRegionIteratorPtr):
#-------------- FUNCTION WRAPPERS ------------------
def wxEmptyBitmap(*_args, **_kwargs):
- val = apply(gdic.wxEmptyBitmap,_args,_kwargs)
+ val = gdic.wxEmptyBitmap(*_args,**_kwargs)
if val: val = wxBitmapPtr(val); val.thisown = 1
return val
def wxBitmapFromXPMData(*_args, **_kwargs):
- val = apply(gdic.wxBitmapFromXPMData,_args,_kwargs)
+ val = gdic.wxBitmapFromXPMData(*_args,**_kwargs)
if val: val = wxBitmapPtr(val); val.thisown = 1
return val
def wxBitmapFromIcon(*_args, **_kwargs):
- val = apply(gdic.wxBitmapFromIcon,_args,_kwargs)
+ val = gdic.wxBitmapFromIcon(*_args,**_kwargs)
if val: val = wxBitmapPtr(val); val.thisown = 1
return val
def wxBitmapFromBits(*_args, **_kwargs):
- val = apply(gdic.wxBitmapFromBits,_args,_kwargs)
+ val = gdic.wxBitmapFromBits(*_args,**_kwargs)
if val: val = wxBitmapPtr(val); val.thisown = 1
return val
def wxMaskColour(*_args, **_kwargs):
- val = apply(gdic.wxMaskColour,_args,_kwargs)
+ val = gdic.wxMaskColour(*_args,**_kwargs)
if val: val = wxMaskPtr(val); val.thisown = 1
return val
def wxEmptyIcon(*_args, **_kwargs):
- val = apply(gdic.wxEmptyIcon,_args,_kwargs)
+ val = gdic.wxEmptyIcon(*_args,**_kwargs)
if val: val = wxIconPtr(val); val.thisown = 1
return val
def wxIconFromXPMData(*_args, **_kwargs):
- val = apply(gdic.wxIconFromXPMData,_args,_kwargs)
+ val = gdic.wxIconFromXPMData(*_args,**_kwargs)
if val: val = wxIconPtr(val); val.thisown = 1
return val
def wxIconFromBitmap(*_args, **_kwargs):
- val = apply(gdic.wxIconFromBitmap,_args,_kwargs)
+ val = gdic.wxIconFromBitmap(*_args,**_kwargs)
if val: val = wxIconPtr(val); val.thisown = 1
return val
def wxStockCursor(*_args, **_kwargs):
- val = apply(gdic.wxStockCursor,_args,_kwargs)
+ val = gdic.wxStockCursor(*_args,**_kwargs)
if val: val = wxCursorPtr(val); val.thisown = 1
return val
def wxCursorFromImage(*_args, **_kwargs):
- val = apply(gdic.wxCursorFromImage,_args,_kwargs)
+ val = gdic.wxCursorFromImage(*_args,**_kwargs)
+ if val: val = wxCursorPtr(val); val.thisown = 1
+ return val
+
+def wxCursorFromBits(*_args, **_kwargs):
+ val = gdic.wxCursorFromBits(*_args,**_kwargs)
if val: val = wxCursorPtr(val); val.thisown = 1
return val
def wxNamedColour(*_args, **_kwargs):
- val = apply(gdic.wxNamedColour,_args,_kwargs)
+ val = gdic.wxNamedColour(*_args,**_kwargs)
if val: val = wxColourPtr(val); val.thisown = 1
return val
def wxMemoryDCFromDC(*_args, **_kwargs):
- val = apply(gdic.wxMemoryDCFromDC,_args,_kwargs)
+ val = gdic.wxMemoryDCFromDC(*_args,**_kwargs)
if val: val = wxMemoryDCPtr(val); val.thisown = 1
return val
diff --git a/wxPython/src/gtk/grid.cpp b/wxPython/src/gtk/grid.cpp
index e1218affd8..7579600d8a 100644
--- a/wxPython/src/gtk/grid.cpp
+++ b/wxPython/src/gtk/grid.cpp
@@ -4355,14 +4355,20 @@ static PyObject *_wrap_wxGridCellAttr_GetSize(PyObject *self, PyObject *args, Py
PyObject * _resultobj;
wxGridCellAttr * _arg0;
int * _arg1;
+ int temp;
int * _arg2;
+ int temp0;
PyObject * _argo0 = 0;
- PyObject * _argo1 = 0;
- PyObject * _argo2 = 0;
- char *_kwnames[] = { "self","num_rows","num_cols", NULL };
+ char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxGridCellAttr_GetSize",_kwnames,&_argo0,&_argo1,&_argo2))
+{
+ _arg1 = &temp;
+}
+{
+ _arg2 = &temp0;
+}
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridCellAttr_GetSize",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
@@ -4371,20 +4377,6 @@ static PyObject *_wrap_wxGridCellAttr_GetSize(PyObject *self, PyObject *args, Py
return NULL;
}
}
- if (_argo1) {
- if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_int_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGridCellAttr_GetSize. Expected _int_p.");
- return NULL;
- }
- }
- if (_argo2) {
- if (_argo2 == Py_None) { _arg2 = NULL; }
- else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_int_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxGridCellAttr_GetSize. Expected _int_p.");
- return NULL;
- }
- }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxGridCellAttr_GetSize(_arg0,_arg1,_arg2);
@@ -4393,6 +4385,16 @@ static PyObject *_wrap_wxGridCellAttr_GetSize(PyObject *self, PyObject *args, Py
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg1));
+ _resultobj = t_output_helper(_resultobj, o);
+}
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg2));
+ _resultobj = t_output_helper(_resultobj, o);
+}
return _resultobj;
}
@@ -11341,14 +11343,20 @@ static PyObject *_wrap_wxGrid_GetDefaultCellAlignment(PyObject *self, PyObject *
PyObject * _resultobj;
wxGrid * _arg0;
int * _arg1;
+ int temp;
int * _arg2;
+ int temp0;
PyObject * _argo0 = 0;
- PyObject * _argo1 = 0;
- PyObject * _argo2 = 0;
- char *_kwnames[] = { "self","horiz","vert", NULL };
+ char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxGrid_GetDefaultCellAlignment",_kwnames,&_argo0,&_argo1,&_argo2))
+{
+ _arg1 = &temp;
+}
+{
+ _arg2 = &temp0;
+}
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_GetDefaultCellAlignment",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
@@ -11357,20 +11365,6 @@ static PyObject *_wrap_wxGrid_GetDefaultCellAlignment(PyObject *self, PyObject *
return NULL;
}
}
- if (_argo1) {
- if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_int_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGrid_GetDefaultCellAlignment. Expected _int_p.");
- return NULL;
- }
- }
- if (_argo2) {
- if (_argo2 == Py_None) { _arg2 = NULL; }
- else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_int_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxGrid_GetDefaultCellAlignment. Expected _int_p.");
- return NULL;
- }
- }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxGrid_GetDefaultCellAlignment(_arg0,_arg1,_arg2);
@@ -11379,6 +11373,16 @@ static PyObject *_wrap_wxGrid_GetDefaultCellAlignment(PyObject *self, PyObject *
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg1));
+ _resultobj = t_output_helper(_resultobj, o);
+}
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg2));
+ _resultobj = t_output_helper(_resultobj, o);
+}
return _resultobj;
}
@@ -11389,14 +11393,20 @@ static PyObject *_wrap_wxGrid_GetCellAlignment(PyObject *self, PyObject *args, P
int _arg1;
int _arg2;
int * _arg3;
+ int temp;
int * _arg4;
+ int temp0;
PyObject * _argo0 = 0;
- PyObject * _argo3 = 0;
- PyObject * _argo4 = 0;
- char *_kwnames[] = { "self","row","col","horiz","vert", NULL };
+ char *_kwnames[] = { "self","row","col", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO:wxGrid_GetCellAlignment",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_argo4))
+{
+ _arg3 = &temp;
+}
+{
+ _arg4 = &temp0;
+}
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxGrid_GetCellAlignment",_kwnames,&_argo0,&_arg1,&_arg2))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
@@ -11405,20 +11415,6 @@ static PyObject *_wrap_wxGrid_GetCellAlignment(PyObject *self, PyObject *args, P
return NULL;
}
}
- if (_argo3) {
- if (_argo3 == Py_None) { _arg3 = NULL; }
- else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_int_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGrid_GetCellAlignment. Expected _int_p.");
- return NULL;
- }
- }
- if (_argo4) {
- if (_argo4 == Py_None) { _arg4 = NULL; }
- else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_int_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGrid_GetCellAlignment. Expected _int_p.");
- return NULL;
- }
- }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxGrid_GetCellAlignment(_arg0,_arg1,_arg2,_arg3,_arg4);
@@ -11427,6 +11423,16 @@ static PyObject *_wrap_wxGrid_GetCellAlignment(PyObject *self, PyObject *args, P
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg3));
+ _resultobj = t_output_helper(_resultobj, o);
+}
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg4));
+ _resultobj = t_output_helper(_resultobj, o);
+}
return _resultobj;
}
@@ -11934,6 +11940,120 @@ static PyObject *_wrap_wxGrid_SetRowMinimalHeight(PyObject *self, PyObject *args
return _resultobj;
}
+#define wxGrid_SetColMinimalAcceptableWidth(_swigobj,_swigarg0) (_swigobj->SetColMinimalAcceptableWidth(_swigarg0))
+static PyObject *_wrap_wxGrid_SetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxGrid * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","width", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGrid_SetColMinimalAcceptableWidth",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_SetColMinimalAcceptableWidth. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxGrid_SetColMinimalAcceptableWidth(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxGrid_SetRowMinimalAcceptableHeight(_swigobj,_swigarg0) (_swigobj->SetRowMinimalAcceptableHeight(_swigarg0))
+static PyObject *_wrap_wxGrid_SetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxGrid * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","width", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGrid_SetRowMinimalAcceptableHeight",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_SetRowMinimalAcceptableHeight. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxGrid_SetRowMinimalAcceptableHeight(_arg0,_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxGrid_GetColMinimalAcceptableWidth(_swigobj) (_swigobj->GetColMinimalAcceptableWidth())
+static PyObject *_wrap_wxGrid_GetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxGrid * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_GetColMinimalAcceptableWidth",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_GetColMinimalAcceptableWidth. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxGrid_GetColMinimalAcceptableWidth(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxGrid_GetRowMinimalAcceptableHeight(_swigobj) (_swigobj->GetRowMinimalAcceptableHeight())
+static PyObject *_wrap_wxGrid_GetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxGrid * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_GetRowMinimalAcceptableHeight",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_GetRowMinimalAcceptableHeight. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxGrid_GetRowMinimalAcceptableHeight(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
#define wxGrid_SetDefaultCellBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetDefaultCellBackgroundColour(_swigarg0))
static PyObject *_wrap_wxGrid_SetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -15034,6 +15154,10 @@ static PyMethodDef gridcMethods[] = {
{ "wxGrid_SetDefaultCellTextColour", (PyCFunction) _wrap_wxGrid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_SetCellBackgroundColour", (PyCFunction) _wrap_wxGrid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_wxGrid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_wxGrid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_wxGrid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_wxGrid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_wxGrid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_SetRowMinimalHeight", (PyCFunction) _wrap_wxGrid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_SetColMinimalWidth", (PyCFunction) _wrap_wxGrid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_AutoSizeColLabelSize", (PyCFunction) _wrap_wxGrid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS },
diff --git a/wxPython/src/gtk/grid.py b/wxPython/src/gtk/grid.py
index 258b2736ec..f8c13b6eab 100644
--- a/wxPython/src/gtk/grid.py
+++ b/wxPython/src/gtk/grid.py
@@ -70,29 +70,29 @@ class wxGridCellRendererPtr :
self.this = this
self.thisown = 0
def _setOORInfo(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellRenderer__setOORInfo,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellRenderer__setOORInfo(self, *_args, **_kwargs)
return val
def SetParameters(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellRenderer_SetParameters,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellRenderer_SetParameters(self, *_args, **_kwargs)
return val
def IncRef(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellRenderer_IncRef,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellRenderer_IncRef(self, *_args, **_kwargs)
return val
def DecRef(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellRenderer_DecRef,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellRenderer_DecRef(self, *_args, **_kwargs)
return val
def Draw(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellRenderer_Draw,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellRenderer_Draw(self, *_args, **_kwargs)
return val
def GetBestSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellRenderer_GetBestSize,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellRenderer_GetBestSize(self, *_args, **_kwargs)
if val: val = wxSizePtr(val) ; val.thisown = 1
return val
def Clone(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellRenderer_Clone,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellRenderer_Clone(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellRenderer(wxGridCellRendererPtr):
def __init__(self,this):
self.this = this
@@ -105,16 +105,16 @@ class wxPyGridCellRendererPtr(wxGridCellRendererPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellRenderer__setCallbackInfo,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellRenderer__setCallbackInfo(self, *_args, **_kwargs)
return val
def base_SetParameters(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellRenderer_base_SetParameters,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellRenderer_base_SetParameters(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyGridCellRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyGridCellRenderer(wxPyGridCellRendererPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxPyGridCellRenderer,_args,_kwargs)
+ self.this = gridc.new_wxPyGridCellRenderer(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyGridCellRenderer)
self._setOORInfo(self)
@@ -127,10 +127,10 @@ class wxGridCellStringRendererPtr(wxGridCellRendererPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellStringRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellStringRenderer(wxGridCellStringRendererPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellStringRenderer,_args,_kwargs)
+ self.this = gridc.new_wxGridCellStringRenderer(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -142,10 +142,10 @@ class wxGridCellNumberRendererPtr(wxGridCellStringRendererPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellNumberRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellNumberRenderer(wxGridCellNumberRendererPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellNumberRenderer,_args,_kwargs)
+ self.this = gridc.new_wxGridCellNumberRenderer(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -157,22 +157,22 @@ class wxGridCellFloatRendererPtr(wxGridCellStringRendererPtr):
self.this = this
self.thisown = 0
def GetWidth(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellFloatRenderer_GetWidth,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellFloatRenderer_GetWidth(self, *_args, **_kwargs)
return val
def SetWidth(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellFloatRenderer_SetWidth,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellFloatRenderer_SetWidth(self, *_args, **_kwargs)
return val
def GetPrecision(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellFloatRenderer_GetPrecision,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellFloatRenderer_GetPrecision(self, *_args, **_kwargs)
return val
def SetPrecision(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellFloatRenderer_SetPrecision,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellFloatRenderer_SetPrecision(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellFloatRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellFloatRenderer(wxGridCellFloatRendererPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellFloatRenderer,_args,_kwargs)
+ self.this = gridc.new_wxGridCellFloatRenderer(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -184,10 +184,10 @@ class wxGridCellBoolRendererPtr(wxGridCellRendererPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellBoolRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellBoolRenderer(wxGridCellBoolRendererPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellBoolRenderer,_args,_kwargs)
+ self.this = gridc.new_wxGridCellBoolRenderer(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -199,10 +199,10 @@ class wxGridCellDateTimeRendererPtr(wxGridCellStringRendererPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellDateTimeRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellDateTimeRenderer(wxGridCellDateTimeRendererPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellDateTimeRenderer,_args,_kwargs)
+ self.this = gridc.new_wxGridCellDateTimeRenderer(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -214,10 +214,10 @@ class wxGridCellEnumRendererPtr(wxGridCellStringRendererPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellEnumRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellEnumRenderer(wxGridCellEnumRendererPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellEnumRenderer,_args,_kwargs)
+ self.this = gridc.new_wxGridCellEnumRenderer(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -229,10 +229,10 @@ class wxGridCellAutoWrapStringRendererPtr(wxGridCellStringRendererPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellAutoWrapStringRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellAutoWrapStringRenderer(wxGridCellAutoWrapStringRendererPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellAutoWrapStringRenderer,_args,_kwargs)
+ self.this = gridc.new_wxGridCellAutoWrapStringRenderer(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -244,73 +244,73 @@ class wxGridCellEditorPtr :
self.this = this
self.thisown = 0
def _setOORInfo(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor__setOORInfo,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor__setOORInfo(self, *_args, **_kwargs)
return val
def IsCreated(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_IsCreated,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_IsCreated(self, *_args, **_kwargs)
return val
def GetControl(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_GetControl,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_GetControl(self, *_args, **_kwargs)
return val
def SetControl(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_SetControl,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_SetControl(self, *_args, **_kwargs)
return val
def GetCellAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_GetCellAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_GetCellAttr(self, *_args, **_kwargs)
return val
def SetCellAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_SetCellAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_SetCellAttr(self, *_args, **_kwargs)
return val
def SetParameters(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_SetParameters,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_SetParameters(self, *_args, **_kwargs)
return val
def IncRef(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_IncRef,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_IncRef(self, *_args, **_kwargs)
return val
def DecRef(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_DecRef,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_DecRef(self, *_args, **_kwargs)
return val
def Create(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_Create,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_Create(self, *_args, **_kwargs)
return val
def BeginEdit(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_BeginEdit,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_BeginEdit(self, *_args, **_kwargs)
return val
def EndEdit(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_EndEdit,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_EndEdit(self, *_args, **_kwargs)
return val
def Reset(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_Reset,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_Reset(self, *_args, **_kwargs)
return val
def Clone(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_Clone,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_Clone(self, *_args, **_kwargs)
return val
def SetSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_SetSize,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_SetSize(self, *_args, **_kwargs)
return val
def Show(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_Show,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_Show(self, *_args, **_kwargs)
return val
def PaintBackground(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_PaintBackground,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_PaintBackground(self, *_args, **_kwargs)
return val
def IsAcceptedKey(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_IsAcceptedKey,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_IsAcceptedKey(self, *_args, **_kwargs)
return val
def StartingKey(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_StartingKey,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_StartingKey(self, *_args, **_kwargs)
return val
def StartingClick(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_StartingClick,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_StartingClick(self, *_args, **_kwargs)
return val
def HandleReturn(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_HandleReturn,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_HandleReturn(self, *_args, **_kwargs)
return val
def Destroy(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEditor_Destroy,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEditor_Destroy(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellEditor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellEditor(wxGridCellEditorPtr):
def __init__(self,this):
self.this = this
@@ -323,40 +323,40 @@ class wxPyGridCellEditorPtr(wxGridCellEditorPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellEditor__setCallbackInfo,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellEditor__setCallbackInfo(self, *_args, **_kwargs)
return val
def base_SetSize(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellEditor_base_SetSize,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellEditor_base_SetSize(self, *_args, **_kwargs)
return val
def base_Show(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellEditor_base_Show,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellEditor_base_Show(self, *_args, **_kwargs)
return val
def base_PaintBackground(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellEditor_base_PaintBackground,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellEditor_base_PaintBackground(self, *_args, **_kwargs)
return val
def base_IsAcceptedKey(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellEditor_base_IsAcceptedKey,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellEditor_base_IsAcceptedKey(self, *_args, **_kwargs)
return val
def base_StartingKey(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellEditor_base_StartingKey,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellEditor_base_StartingKey(self, *_args, **_kwargs)
return val
def base_StartingClick(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellEditor_base_StartingClick,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellEditor_base_StartingClick(self, *_args, **_kwargs)
return val
def base_HandleReturn(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellEditor_base_HandleReturn,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellEditor_base_HandleReturn(self, *_args, **_kwargs)
return val
def base_Destroy(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellEditor_base_Destroy,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellEditor_base_Destroy(self, *_args, **_kwargs)
return val
def base_SetParameters(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellEditor_base_SetParameters,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellEditor_base_SetParameters(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyGridCellEditor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyGridCellEditor(wxPyGridCellEditorPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxPyGridCellEditor,_args,_kwargs)
+ self.this = gridc.new_wxPyGridCellEditor(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyGridCellEditor)
self._setOORInfo(self)
@@ -369,13 +369,13 @@ class wxGridCellTextEditorPtr(wxGridCellEditorPtr):
self.this = this
self.thisown = 0
def GetValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellTextEditor_GetValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellTextEditor_GetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellTextEditor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellTextEditor(wxGridCellTextEditorPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellTextEditor,_args,_kwargs)
+ self.this = gridc.new_wxGridCellTextEditor(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -387,13 +387,13 @@ class wxGridCellNumberEditorPtr(wxGridCellTextEditorPtr):
self.this = this
self.thisown = 0
def GetValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellNumberEditor_GetValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellNumberEditor_GetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellNumberEditor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellNumberEditor(wxGridCellNumberEditorPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellNumberEditor,_args,_kwargs)
+ self.this = gridc.new_wxGridCellNumberEditor(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -405,13 +405,13 @@ class wxGridCellFloatEditorPtr(wxGridCellTextEditorPtr):
self.this = this
self.thisown = 0
def GetValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellFloatEditor_GetValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellFloatEditor_GetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellFloatEditor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellFloatEditor(wxGridCellFloatEditorPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellFloatEditor,_args,_kwargs)
+ self.this = gridc.new_wxGridCellFloatEditor(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -423,13 +423,13 @@ class wxGridCellBoolEditorPtr(wxGridCellEditorPtr):
self.this = this
self.thisown = 0
def GetValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellBoolEditor_GetValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellBoolEditor_GetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellBoolEditor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellBoolEditor(wxGridCellBoolEditorPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellBoolEditor,_args,_kwargs)
+ self.this = gridc.new_wxGridCellBoolEditor(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -441,13 +441,13 @@ class wxGridCellChoiceEditorPtr(wxGridCellEditorPtr):
self.this = this
self.thisown = 0
def GetValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellChoiceEditor_GetValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellChoiceEditor_GetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellChoiceEditor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellChoiceEditor(wxGridCellChoiceEditorPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellChoiceEditor,_args,_kwargs)
+ self.this = gridc.new_wxGridCellChoiceEditor(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -459,13 +459,13 @@ class wxGridCellEnumEditorPtr(wxGridCellChoiceEditorPtr):
self.this = this
self.thisown = 0
def GetValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellEnumEditor_GetValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellEnumEditor_GetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellEnumEditor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellEnumEditor(wxGridCellEnumEditorPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellEnumEditor,_args,_kwargs)
+ self.this = gridc.new_wxGridCellEnumEditor(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -477,13 +477,13 @@ class wxGridCellAutoWrapStringEditorPtr(wxGridCellTextEditorPtr):
self.this = this
self.thisown = 0
def GetValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAutoWrapStringEditor_GetValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAutoWrapStringEditor_GetValue(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellAutoWrapStringEditor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellAutoWrapStringEditor(wxGridCellAutoWrapStringEditorPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellAutoWrapStringEditor,_args,_kwargs)
+ self.this = gridc.new_wxGridCellAutoWrapStringEditor(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -501,109 +501,109 @@ class wxGridCellAttrPtr :
self.this = this
self.thisown = 0
def _setOORInfo(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr__setOORInfo,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr__setOORInfo(self, *_args, **_kwargs)
return val
def Clone(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_Clone,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_Clone(self, *_args, **_kwargs)
return val
def MergeWith(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_MergeWith,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_MergeWith(self, *_args, **_kwargs)
return val
def IncRef(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_IncRef,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_IncRef(self, *_args, **_kwargs)
return val
def DecRef(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_DecRef,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_DecRef(self, *_args, **_kwargs)
return val
def SetTextColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_SetTextColour,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_SetTextColour(self, *_args, **_kwargs)
return val
def SetBackgroundColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_SetBackgroundColour,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_SetBackgroundColour(self, *_args, **_kwargs)
return val
def SetFont(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_SetFont,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_SetFont(self, *_args, **_kwargs)
return val
def SetAlignment(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_SetAlignment,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_SetAlignment(self, *_args, **_kwargs)
return val
def SetSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_SetSize,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_SetSize(self, *_args, **_kwargs)
return val
def SetOverflow(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_SetOverflow,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_SetOverflow(self, *_args, **_kwargs)
return val
def SetReadOnly(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_SetReadOnly,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_SetReadOnly(self, *_args, **_kwargs)
return val
def SetRenderer(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_SetRenderer,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_SetRenderer(self, *_args, **_kwargs)
return val
def SetEditor(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_SetEditor,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_SetEditor(self, *_args, **_kwargs)
return val
def SetKind(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_SetKind,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_SetKind(self, *_args, **_kwargs)
return val
def HasTextColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_HasTextColour,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_HasTextColour(self, *_args, **_kwargs)
return val
def HasBackgroundColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_HasBackgroundColour,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_HasBackgroundColour(self, *_args, **_kwargs)
return val
def HasFont(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_HasFont,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_HasFont(self, *_args, **_kwargs)
return val
def HasAlignment(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_HasAlignment,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_HasAlignment(self, *_args, **_kwargs)
return val
def HasRenderer(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_HasRenderer,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_HasRenderer(self, *_args, **_kwargs)
return val
def HasEditor(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_HasEditor,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_HasEditor(self, *_args, **_kwargs)
return val
def HasReadWriteMode(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_HasReadWriteMode,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_HasReadWriteMode(self, *_args, **_kwargs)
return val
def GetTextColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_GetTextColour,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_GetTextColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetBackgroundColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_GetBackgroundColour,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_GetBackgroundColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetFont(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_GetFont,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_GetFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def GetAlignment(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_GetAlignment,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_GetAlignment(self, *_args, **_kwargs)
return val
def GetSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_GetSize,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_GetSize(self, *_args, **_kwargs)
return val
def GetOverflow(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_GetOverflow,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_GetOverflow(self, *_args, **_kwargs)
return val
def GetRenderer(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_GetRenderer,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_GetRenderer(self, *_args, **_kwargs)
return val
def GetEditor(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_GetEditor,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_GetEditor(self, *_args, **_kwargs)
return val
def IsReadOnly(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_IsReadOnly,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_IsReadOnly(self, *_args, **_kwargs)
return val
def SetDefAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttr_SetDefAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttr_SetDefAttr(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellAttr(wxGridCellAttrPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellAttr,_args,_kwargs)
+ self.this = gridc.new_wxGridCellAttr(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -615,31 +615,31 @@ class wxGridCellAttrProviderPtr :
self.this = this
self.thisown = 0
def _setOORInfo(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttrProvider__setOORInfo,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttrProvider__setOORInfo(self, *_args, **_kwargs)
return val
def GetAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttrProvider_GetAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttrProvider_GetAttr(self, *_args, **_kwargs)
return val
def SetAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttrProvider_SetAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttrProvider_SetAttr(self, *_args, **_kwargs)
return val
def SetRowAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttrProvider_SetRowAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttrProvider_SetRowAttr(self, *_args, **_kwargs)
return val
def SetColAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttrProvider_SetColAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttrProvider_SetColAttr(self, *_args, **_kwargs)
return val
def UpdateAttrRows(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttrProvider_UpdateAttrRows,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttrProvider_UpdateAttrRows(self, *_args, **_kwargs)
return val
def UpdateAttrCols(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellAttrProvider_UpdateAttrCols,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellAttrProvider_UpdateAttrCols(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellAttrProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridCellAttrProvider(wxGridCellAttrProviderPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellAttrProvider,_args,_kwargs)
+ self.this = gridc.new_wxGridCellAttrProvider(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -651,25 +651,25 @@ class wxPyGridCellAttrProviderPtr(wxGridCellAttrProviderPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellAttrProvider__setCallbackInfo,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellAttrProvider__setCallbackInfo(self, *_args, **_kwargs)
return val
def base_GetAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellAttrProvider_base_GetAttr,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellAttrProvider_base_GetAttr(self, *_args, **_kwargs)
return val
def base_SetAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellAttrProvider_base_SetAttr,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellAttrProvider_base_SetAttr(self, *_args, **_kwargs)
return val
def base_SetRowAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellAttrProvider_base_SetRowAttr,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellAttrProvider_base_SetRowAttr(self, *_args, **_kwargs)
return val
def base_SetColAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridCellAttrProvider_base_SetColAttr,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridCellAttrProvider_base_SetColAttr(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyGridCellAttrProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyGridCellAttrProvider(wxPyGridCellAttrProviderPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxPyGridCellAttrProvider,_args,_kwargs)
+ self.this = gridc.new_wxPyGridCellAttrProvider(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyGridCellAttrProvider)
@@ -681,112 +681,112 @@ class wxGridTableBasePtr(wxObjectPtr):
self.this = this
self.thisown = 0
def _setOORInfo(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase__setOORInfo,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase__setOORInfo(self, *_args, **_kwargs)
return val
def SetAttrProvider(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_SetAttrProvider,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_SetAttrProvider(self, *_args, **_kwargs)
return val
def GetAttrProvider(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_GetAttrProvider,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_GetAttrProvider(self, *_args, **_kwargs)
return val
def SetView(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_SetView,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_SetView(self, *_args, **_kwargs)
return val
def GetView(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_GetView,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_GetView(self, *_args, **_kwargs)
return val
def GetNumberRows(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_GetNumberRows,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_GetNumberRows(self, *_args, **_kwargs)
return val
def GetNumberCols(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_GetNumberCols,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_GetNumberCols(self, *_args, **_kwargs)
return val
def IsEmptyCell(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_IsEmptyCell,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_IsEmptyCell(self, *_args, **_kwargs)
return val
def GetValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_GetValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_GetValue(self, *_args, **_kwargs)
return val
def SetValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_SetValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_SetValue(self, *_args, **_kwargs)
return val
def GetTypeName(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_GetTypeName,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_GetTypeName(self, *_args, **_kwargs)
return val
def CanGetValueAs(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_CanGetValueAs,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_CanGetValueAs(self, *_args, **_kwargs)
return val
def CanSetValueAs(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_CanSetValueAs,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_CanSetValueAs(self, *_args, **_kwargs)
return val
def GetValueAsLong(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_GetValueAsLong,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_GetValueAsLong(self, *_args, **_kwargs)
return val
def GetValueAsDouble(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_GetValueAsDouble,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_GetValueAsDouble(self, *_args, **_kwargs)
return val
def GetValueAsBool(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_GetValueAsBool,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_GetValueAsBool(self, *_args, **_kwargs)
return val
def SetValueAsLong(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_SetValueAsLong,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_SetValueAsLong(self, *_args, **_kwargs)
return val
def SetValueAsDouble(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_SetValueAsDouble,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_SetValueAsDouble(self, *_args, **_kwargs)
return val
def SetValueAsBool(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_SetValueAsBool,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_SetValueAsBool(self, *_args, **_kwargs)
return val
def Clear(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_Clear,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_Clear(self, *_args, **_kwargs)
return val
def InsertRows(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_InsertRows,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_InsertRows(self, *_args, **_kwargs)
return val
def AppendRows(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_AppendRows,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_AppendRows(self, *_args, **_kwargs)
return val
def DeleteRows(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_DeleteRows,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_DeleteRows(self, *_args, **_kwargs)
return val
def InsertCols(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_InsertCols,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_InsertCols(self, *_args, **_kwargs)
return val
def AppendCols(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_AppendCols,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_AppendCols(self, *_args, **_kwargs)
return val
def DeleteCols(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_DeleteCols,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_DeleteCols(self, *_args, **_kwargs)
return val
def GetRowLabelValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_GetRowLabelValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_GetRowLabelValue(self, *_args, **_kwargs)
return val
def GetColLabelValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_GetColLabelValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_GetColLabelValue(self, *_args, **_kwargs)
return val
def SetRowLabelValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_SetRowLabelValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_SetRowLabelValue(self, *_args, **_kwargs)
return val
def SetColLabelValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_SetColLabelValue,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_SetColLabelValue(self, *_args, **_kwargs)
return val
def CanHaveAttributes(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_CanHaveAttributes,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_CanHaveAttributes(self, *_args, **_kwargs)
return val
def GetAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_GetAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_GetAttr(self, *_args, **_kwargs)
return val
def SetAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_SetAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_SetAttr(self, *_args, **_kwargs)
return val
def SetRowAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_SetRowAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_SetRowAttr(self, *_args, **_kwargs)
return val
def SetColAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableBase_SetColAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableBase_SetColAttr(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridTableBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridTableBase(wxGridTableBasePtr):
def __init__(self,this):
self.this = this
@@ -799,73 +799,73 @@ class wxPyGridTableBasePtr(wxGridTableBasePtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase__setCallbackInfo,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase__setCallbackInfo(self, *_args, **_kwargs)
return val
def Destroy(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_Destroy,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_Destroy(self, *_args, **_kwargs)
return val
def base_GetTypeName(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_GetTypeName,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_GetTypeName(self, *_args, **_kwargs)
return val
def base_CanGetValueAs(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_CanGetValueAs,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_CanGetValueAs(self, *_args, **_kwargs)
return val
def base_CanSetValueAs(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_CanSetValueAs,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_CanSetValueAs(self, *_args, **_kwargs)
return val
def base_Clear(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_Clear,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_Clear(self, *_args, **_kwargs)
return val
def base_InsertRows(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_InsertRows,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_InsertRows(self, *_args, **_kwargs)
return val
def base_AppendRows(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_AppendRows,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_AppendRows(self, *_args, **_kwargs)
return val
def base_DeleteRows(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_DeleteRows,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_DeleteRows(self, *_args, **_kwargs)
return val
def base_InsertCols(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_InsertCols,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_InsertCols(self, *_args, **_kwargs)
return val
def base_AppendCols(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_AppendCols,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_AppendCols(self, *_args, **_kwargs)
return val
def base_DeleteCols(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_DeleteCols,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_DeleteCols(self, *_args, **_kwargs)
return val
def base_GetRowLabelValue(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_GetRowLabelValue,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_GetRowLabelValue(self, *_args, **_kwargs)
return val
def base_GetColLabelValue(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_GetColLabelValue,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_GetColLabelValue(self, *_args, **_kwargs)
return val
def base_SetRowLabelValue(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_SetRowLabelValue,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_SetRowLabelValue(self, *_args, **_kwargs)
return val
def base_SetColLabelValue(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_SetColLabelValue,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_SetColLabelValue(self, *_args, **_kwargs)
return val
def base_CanHaveAttributes(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_CanHaveAttributes,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_CanHaveAttributes(self, *_args, **_kwargs)
return val
def base_GetAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_GetAttr,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_GetAttr(self, *_args, **_kwargs)
return val
def base_SetAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_SetAttr,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_SetAttr(self, *_args, **_kwargs)
return val
def base_SetRowAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_SetRowAttr,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_SetRowAttr(self, *_args, **_kwargs)
return val
def base_SetColAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxPyGridTableBase_base_SetColAttr,(self,) + _args, _kwargs)
+ val = gridc.wxPyGridTableBase_base_SetColAttr(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPyGridTableBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPyGridTableBase(wxPyGridTableBasePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxPyGridTableBase,_args,_kwargs)
+ self.this = gridc.new_wxPyGridTableBase(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPyGridTableBase)
self._setOORInfo(self)
@@ -878,10 +878,10 @@ class wxGridStringTablePtr(wxGridTableBasePtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridStringTable instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridStringTable(wxGridStringTablePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridStringTable,_args,_kwargs)
+ self.this = gridc.new_wxGridStringTable(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -899,34 +899,34 @@ class wxGridTableMessagePtr :
except:
pass
def SetTableObject(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableMessage_SetTableObject,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableMessage_SetTableObject(self, *_args, **_kwargs)
return val
def GetTableObject(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableMessage_GetTableObject,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableMessage_GetTableObject(self, *_args, **_kwargs)
return val
def SetId(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableMessage_SetId,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableMessage_SetId(self, *_args, **_kwargs)
return val
def GetId(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableMessage_GetId,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableMessage_GetId(self, *_args, **_kwargs)
return val
def SetCommandInt(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableMessage_SetCommandInt,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableMessage_SetCommandInt(self, *_args, **_kwargs)
return val
def GetCommandInt(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableMessage_GetCommandInt,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableMessage_GetCommandInt(self, *_args, **_kwargs)
return val
def SetCommandInt2(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableMessage_SetCommandInt2,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableMessage_SetCommandInt2(self, *_args, **_kwargs)
return val
def GetCommandInt2(self, *_args, **_kwargs):
- val = apply(gridc.wxGridTableMessage_GetCommandInt2,(self,) + _args, _kwargs)
+ val = gridc.wxGridTableMessage_GetCommandInt2(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridTableMessage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridTableMessage(wxGridTableMessagePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridTableMessage,_args,_kwargs)
+ self.this = gridc.new_wxGridTableMessage(*_args,**_kwargs)
self.thisown = 1
@@ -943,28 +943,28 @@ class wxGridCellCoordsPtr :
except:
pass
def GetRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellCoords_GetRow,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellCoords_GetRow(self, *_args, **_kwargs)
return val
def SetRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellCoords_SetRow,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellCoords_SetRow(self, *_args, **_kwargs)
return val
def GetCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellCoords_GetCol,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellCoords_GetCol(self, *_args, **_kwargs)
return val
def SetCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellCoords_SetCol,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellCoords_SetCol(self, *_args, **_kwargs)
return val
def Set(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellCoords_Set,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellCoords_Set(self, *_args, **_kwargs)
return val
def asTuple(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellCoords_asTuple,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellCoords_asTuple(self, *_args, **_kwargs)
return val
def __cmp__(self, *_args, **_kwargs):
- val = apply(gridc.wxGridCellCoords___cmp__,(self,) + _args, _kwargs)
+ val = gridc.wxGridCellCoords___cmp__(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridCellCoords instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
def __str__(self): return str(self.asTuple())
def __repr__(self): return 'wxGridCellCoords'+str(self.asTuple())
@@ -977,7 +977,7 @@ class wxGridCellCoordsPtr :
class wxGridCellCoords(wxGridCellCoordsPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridCellCoords,_args,_kwargs)
+ self.this = gridc.new_wxGridCellCoords(*_args,**_kwargs)
self.thisown = 1
@@ -991,578 +991,590 @@ class wxGridPtr(wxScrolledWindowPtr):
self.this = this
self.thisown = 0
def CreateGrid(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_CreateGrid,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_CreateGrid(self, *_args, **_kwargs)
return val
def SetSelectionMode(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetSelectionMode,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetSelectionMode(self, *_args, **_kwargs)
return val
def GetSelectionMode(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetSelectionMode,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetSelectionMode(self, *_args, **_kwargs)
return val
def GetNumberRows(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetNumberRows,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetNumberRows(self, *_args, **_kwargs)
return val
def GetNumberCols(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetNumberCols,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetNumberCols(self, *_args, **_kwargs)
return val
def ProcessTableMessage(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_ProcessTableMessage,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_ProcessTableMessage(self, *_args, **_kwargs)
return val
def GetTable(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetTable,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetTable(self, *_args, **_kwargs)
return val
def SetTable(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetTable,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetTable(self, *_args, **_kwargs)
return val
def ClearGrid(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_ClearGrid,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_ClearGrid(self, *_args, **_kwargs)
return val
def InsertRows(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_InsertRows,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_InsertRows(self, *_args, **_kwargs)
return val
def AppendRows(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_AppendRows,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_AppendRows(self, *_args, **_kwargs)
return val
def DeleteRows(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_DeleteRows,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_DeleteRows(self, *_args, **_kwargs)
return val
def InsertCols(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_InsertCols,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_InsertCols(self, *_args, **_kwargs)
return val
def AppendCols(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_AppendCols,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_AppendCols(self, *_args, **_kwargs)
return val
def DeleteCols(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_DeleteCols,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_DeleteCols(self, *_args, **_kwargs)
return val
def DrawCellHighlight(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_DrawCellHighlight,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_DrawCellHighlight(self, *_args, **_kwargs)
return val
def DrawTextRectangle(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_DrawTextRectangle,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_DrawTextRectangle(self, *_args, **_kwargs)
return val
def GetTextBoxSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetTextBoxSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetTextBoxSize(self, *_args, **_kwargs)
return val
def BeginBatch(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_BeginBatch,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_BeginBatch(self, *_args, **_kwargs)
return val
def EndBatch(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_EndBatch,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_EndBatch(self, *_args, **_kwargs)
return val
def GetBatchCount(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetBatchCount,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetBatchCount(self, *_args, **_kwargs)
return val
def ForceRefresh(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_ForceRefresh,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_ForceRefresh(self, *_args, **_kwargs)
return val
def Refresh(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_Refresh,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_Refresh(self, *_args, **_kwargs)
return val
def IsEditable(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_IsEditable,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_IsEditable(self, *_args, **_kwargs)
return val
def EnableEditing(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_EnableEditing,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_EnableEditing(self, *_args, **_kwargs)
return val
def EnableCellEditControl(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_EnableCellEditControl,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_EnableCellEditControl(self, *_args, **_kwargs)
return val
def DisableCellEditControl(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_DisableCellEditControl,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_DisableCellEditControl(self, *_args, **_kwargs)
return val
def CanEnableCellControl(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_CanEnableCellControl,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_CanEnableCellControl(self, *_args, **_kwargs)
return val
def IsCellEditControlEnabled(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_IsCellEditControlEnabled,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_IsCellEditControlEnabled(self, *_args, **_kwargs)
return val
def IsCellEditControlShown(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_IsCellEditControlShown,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_IsCellEditControlShown(self, *_args, **_kwargs)
return val
def IsCurrentCellReadOnly(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_IsCurrentCellReadOnly,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_IsCurrentCellReadOnly(self, *_args, **_kwargs)
return val
def ShowCellEditControl(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_ShowCellEditControl,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_ShowCellEditControl(self, *_args, **_kwargs)
return val
def HideCellEditControl(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_HideCellEditControl,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_HideCellEditControl(self, *_args, **_kwargs)
return val
def SaveEditControlValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SaveEditControlValue,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SaveEditControlValue(self, *_args, **_kwargs)
return val
def XYToCell(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_XYToCell,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_XYToCell(self, *_args, **_kwargs)
if val: val = wxGridCellCoordsPtr(val) ; val.thisown = 1
return val
def YToRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_YToRow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_YToRow(self, *_args, **_kwargs)
return val
def XToCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_XToCol,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_XToCol(self, *_args, **_kwargs)
return val
def YToEdgeOfRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_YToEdgeOfRow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_YToEdgeOfRow(self, *_args, **_kwargs)
return val
def XToEdgeOfCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_XToEdgeOfCol,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_XToEdgeOfCol(self, *_args, **_kwargs)
return val
def CellToRect(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_CellToRect,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_CellToRect(self, *_args, **_kwargs)
if val: val = wxRectPtr(val) ; val.thisown = 1
return val
def GetGridCursorRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetGridCursorRow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetGridCursorRow(self, *_args, **_kwargs)
return val
def GetGridCursorCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetGridCursorCol,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetGridCursorCol(self, *_args, **_kwargs)
return val
def IsVisible(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_IsVisible,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_IsVisible(self, *_args, **_kwargs)
return val
def MakeCellVisible(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_MakeCellVisible,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_MakeCellVisible(self, *_args, **_kwargs)
return val
def SetGridCursor(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetGridCursor,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetGridCursor(self, *_args, **_kwargs)
return val
def MoveCursorUp(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_MoveCursorUp,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_MoveCursorUp(self, *_args, **_kwargs)
return val
def MoveCursorDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_MoveCursorDown,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_MoveCursorDown(self, *_args, **_kwargs)
return val
def MoveCursorLeft(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_MoveCursorLeft,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_MoveCursorLeft(self, *_args, **_kwargs)
return val
def MoveCursorRight(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_MoveCursorRight,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_MoveCursorRight(self, *_args, **_kwargs)
return val
def MovePageDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_MovePageDown,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_MovePageDown(self, *_args, **_kwargs)
return val
def MovePageUp(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_MovePageUp,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_MovePageUp(self, *_args, **_kwargs)
return val
def MoveCursorUpBlock(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_MoveCursorUpBlock,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_MoveCursorUpBlock(self, *_args, **_kwargs)
return val
def MoveCursorDownBlock(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_MoveCursorDownBlock,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_MoveCursorDownBlock(self, *_args, **_kwargs)
return val
def MoveCursorLeftBlock(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_MoveCursorLeftBlock,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_MoveCursorLeftBlock(self, *_args, **_kwargs)
return val
def MoveCursorRightBlock(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_MoveCursorRightBlock,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_MoveCursorRightBlock(self, *_args, **_kwargs)
return val
def GetDefaultRowLabelSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultRowLabelSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultRowLabelSize(self, *_args, **_kwargs)
return val
def GetRowLabelSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetRowLabelSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetRowLabelSize(self, *_args, **_kwargs)
return val
def GetDefaultColLabelSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultColLabelSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultColLabelSize(self, *_args, **_kwargs)
return val
def GetColLabelSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetColLabelSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetColLabelSize(self, *_args, **_kwargs)
return val
def GetLabelBackgroundColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetLabelBackgroundColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetLabelBackgroundColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetLabelTextColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetLabelTextColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetLabelTextColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetLabelFont(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetLabelFont,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetLabelFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def GetRowLabelAlignment(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetRowLabelAlignment,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetRowLabelAlignment(self, *_args, **_kwargs)
return val
def GetColLabelAlignment(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetColLabelAlignment,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetColLabelAlignment(self, *_args, **_kwargs)
return val
def GetColLabelTextOrientation(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetColLabelTextOrientation,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetColLabelTextOrientation(self, *_args, **_kwargs)
return val
def GetRowLabelValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetRowLabelValue,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetRowLabelValue(self, *_args, **_kwargs)
return val
def GetColLabelValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetColLabelValue,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetColLabelValue(self, *_args, **_kwargs)
return val
def GetGridLineColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetGridLineColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetGridLineColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetCellHighlightColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetCellHighlightColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetCellHighlightColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetCellHighlightPenWidth(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetCellHighlightPenWidth,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetCellHighlightPenWidth(self, *_args, **_kwargs)
return val
def GetCellHighlightROPenWidth(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetCellHighlightROPenWidth,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetCellHighlightROPenWidth(self, *_args, **_kwargs)
return val
def SetRowLabelSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetRowLabelSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetRowLabelSize(self, *_args, **_kwargs)
return val
def SetColLabelSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetColLabelSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetColLabelSize(self, *_args, **_kwargs)
return val
def SetLabelBackgroundColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetLabelBackgroundColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetLabelBackgroundColour(self, *_args, **_kwargs)
return val
def SetLabelTextColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetLabelTextColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetLabelTextColour(self, *_args, **_kwargs)
return val
def SetLabelFont(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetLabelFont,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetLabelFont(self, *_args, **_kwargs)
return val
def SetRowLabelAlignment(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetRowLabelAlignment,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetRowLabelAlignment(self, *_args, **_kwargs)
return val
def SetColLabelAlignment(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetColLabelAlignment,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetColLabelAlignment(self, *_args, **_kwargs)
return val
def SetColLabelTextOrientation(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetColLabelTextOrientation,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetColLabelTextOrientation(self, *_args, **_kwargs)
return val
def SetRowLabelValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetRowLabelValue,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetRowLabelValue(self, *_args, **_kwargs)
return val
def SetColLabelValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetColLabelValue,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetColLabelValue(self, *_args, **_kwargs)
return val
def SetGridLineColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetGridLineColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetGridLineColour(self, *_args, **_kwargs)
return val
def SetCellHighlightColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetCellHighlightColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetCellHighlightColour(self, *_args, **_kwargs)
return val
def SetCellHighlightPenWidth(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetCellHighlightPenWidth,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetCellHighlightPenWidth(self, *_args, **_kwargs)
return val
def SetCellHighlightROPenWidth(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetCellHighlightROPenWidth,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetCellHighlightROPenWidth(self, *_args, **_kwargs)
return val
def EnableDragRowSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_EnableDragRowSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_EnableDragRowSize(self, *_args, **_kwargs)
return val
def DisableDragRowSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_DisableDragRowSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_DisableDragRowSize(self, *_args, **_kwargs)
return val
def CanDragRowSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_CanDragRowSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_CanDragRowSize(self, *_args, **_kwargs)
return val
def EnableDragColSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_EnableDragColSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_EnableDragColSize(self, *_args, **_kwargs)
return val
def DisableDragColSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_DisableDragColSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_DisableDragColSize(self, *_args, **_kwargs)
return val
def CanDragColSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_CanDragColSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_CanDragColSize(self, *_args, **_kwargs)
return val
def EnableDragGridSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_EnableDragGridSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_EnableDragGridSize(self, *_args, **_kwargs)
return val
def DisableDragGridSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_DisableDragGridSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_DisableDragGridSize(self, *_args, **_kwargs)
return val
def CanDragGridSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_CanDragGridSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_CanDragGridSize(self, *_args, **_kwargs)
return val
def SetAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetAttr(self, *_args, **_kwargs)
return val
def SetRowAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetRowAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetRowAttr(self, *_args, **_kwargs)
return val
def SetColAttr(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetColAttr,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetColAttr(self, *_args, **_kwargs)
return val
def SetColFormatBool(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetColFormatBool,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetColFormatBool(self, *_args, **_kwargs)
return val
def SetColFormatNumber(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetColFormatNumber,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetColFormatNumber(self, *_args, **_kwargs)
return val
def SetColFormatFloat(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetColFormatFloat,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetColFormatFloat(self, *_args, **_kwargs)
return val
def SetColFormatCustom(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetColFormatCustom,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetColFormatCustom(self, *_args, **_kwargs)
return val
def EnableGridLines(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_EnableGridLines,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_EnableGridLines(self, *_args, **_kwargs)
return val
def GridLinesEnabled(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GridLinesEnabled,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GridLinesEnabled(self, *_args, **_kwargs)
return val
def GetDefaultRowSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultRowSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultRowSize(self, *_args, **_kwargs)
return val
def GetRowSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetRowSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetRowSize(self, *_args, **_kwargs)
return val
def GetDefaultColSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultColSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultColSize(self, *_args, **_kwargs)
return val
def GetColSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetColSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetColSize(self, *_args, **_kwargs)
return val
def GetDefaultCellBackgroundColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultCellBackgroundColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultCellBackgroundColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetCellBackgroundColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetCellBackgroundColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetCellBackgroundColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetDefaultCellTextColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultCellTextColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultCellTextColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetCellTextColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetCellTextColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetCellTextColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetDefaultCellFont(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultCellFont,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultCellFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def GetCellFont(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetCellFont,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetCellFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def GetDefaultCellAlignment(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultCellAlignment,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultCellAlignment(self, *_args, **_kwargs)
return val
def GetCellAlignment(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetCellAlignment,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetCellAlignment(self, *_args, **_kwargs)
return val
def GetDefaultCellOverflow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultCellOverflow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultCellOverflow(self, *_args, **_kwargs)
return val
def GetCellOverflow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetCellOverflow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetCellOverflow(self, *_args, **_kwargs)
return val
def GetCellSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetCellSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetCellSize(self, *_args, **_kwargs)
return val
def SetDefaultRowSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetDefaultRowSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetDefaultRowSize(self, *_args, **_kwargs)
return val
def SetRowSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetRowSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetRowSize(self, *_args, **_kwargs)
return val
def SetDefaultColSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetDefaultColSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetDefaultColSize(self, *_args, **_kwargs)
return val
def SetColSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetColSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetColSize(self, *_args, **_kwargs)
return val
def AutoSizeColumn(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_AutoSizeColumn,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_AutoSizeColumn(self, *_args, **_kwargs)
return val
def AutoSizeRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_AutoSizeRow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_AutoSizeRow(self, *_args, **_kwargs)
return val
def AutoSizeColumns(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_AutoSizeColumns,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_AutoSizeColumns(self, *_args, **_kwargs)
return val
def AutoSizeRows(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_AutoSizeRows,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_AutoSizeRows(self, *_args, **_kwargs)
return val
def AutoSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_AutoSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_AutoSize(self, *_args, **_kwargs)
return val
def AutoSizeRowLabelSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_AutoSizeRowLabelSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_AutoSizeRowLabelSize(self, *_args, **_kwargs)
return val
def AutoSizeColLabelSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_AutoSizeColLabelSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_AutoSizeColLabelSize(self, *_args, **_kwargs)
return val
def SetColMinimalWidth(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetColMinimalWidth,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetColMinimalWidth(self, *_args, **_kwargs)
return val
def SetRowMinimalHeight(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetRowMinimalHeight,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetRowMinimalHeight(self, *_args, **_kwargs)
+ return val
+ def SetColMinimalAcceptableWidth(self, *_args, **_kwargs):
+ val = gridc.wxGrid_SetColMinimalAcceptableWidth(self, *_args, **_kwargs)
+ return val
+ def SetRowMinimalAcceptableHeight(self, *_args, **_kwargs):
+ val = gridc.wxGrid_SetRowMinimalAcceptableHeight(self, *_args, **_kwargs)
+ return val
+ def GetColMinimalAcceptableWidth(self, *_args, **_kwargs):
+ val = gridc.wxGrid_GetColMinimalAcceptableWidth(self, *_args, **_kwargs)
+ return val
+ def GetRowMinimalAcceptableHeight(self, *_args, **_kwargs):
+ val = gridc.wxGrid_GetRowMinimalAcceptableHeight(self, *_args, **_kwargs)
return val
def SetDefaultCellBackgroundColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetDefaultCellBackgroundColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetDefaultCellBackgroundColour(self, *_args, **_kwargs)
return val
def SetCellBackgroundColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetCellBackgroundColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetCellBackgroundColour(self, *_args, **_kwargs)
return val
def SetDefaultCellTextColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetDefaultCellTextColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetDefaultCellTextColour(self, *_args, **_kwargs)
return val
def SetCellTextColour(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetCellTextColour,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetCellTextColour(self, *_args, **_kwargs)
return val
def SetDefaultCellFont(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetDefaultCellFont,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetDefaultCellFont(self, *_args, **_kwargs)
return val
def SetCellFont(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetCellFont,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetCellFont(self, *_args, **_kwargs)
return val
def SetDefaultCellAlignment(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetDefaultCellAlignment,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetDefaultCellAlignment(self, *_args, **_kwargs)
return val
def SetCellAlignment(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetCellAlignment,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetCellAlignment(self, *_args, **_kwargs)
return val
def SetDefaultCellOverflow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetDefaultCellOverflow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetDefaultCellOverflow(self, *_args, **_kwargs)
return val
def SetCellOverflow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetCellOverflow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetCellOverflow(self, *_args, **_kwargs)
return val
def SetCellSize(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetCellSize,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetCellSize(self, *_args, **_kwargs)
return val
def SetDefaultRenderer(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetDefaultRenderer,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetDefaultRenderer(self, *_args, **_kwargs)
return val
def SetCellRenderer(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetCellRenderer,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetCellRenderer(self, *_args, **_kwargs)
return val
def GetDefaultRenderer(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultRenderer,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultRenderer(self, *_args, **_kwargs)
return val
def GetCellRenderer(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetCellRenderer,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetCellRenderer(self, *_args, **_kwargs)
return val
def SetDefaultEditor(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetDefaultEditor,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetDefaultEditor(self, *_args, **_kwargs)
return val
def SetCellEditor(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetCellEditor,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetCellEditor(self, *_args, **_kwargs)
return val
def GetDefaultEditor(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultEditor,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultEditor(self, *_args, **_kwargs)
return val
def GetCellEditor(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetCellEditor,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetCellEditor(self, *_args, **_kwargs)
return val
def GetCellValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetCellValue,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetCellValue(self, *_args, **_kwargs)
return val
def SetCellValue(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetCellValue,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetCellValue(self, *_args, **_kwargs)
return val
def IsReadOnly(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_IsReadOnly,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_IsReadOnly(self, *_args, **_kwargs)
return val
def SetReadOnly(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetReadOnly,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetReadOnly(self, *_args, **_kwargs)
return val
def SelectRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SelectRow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SelectRow(self, *_args, **_kwargs)
return val
def SelectCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SelectCol,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SelectCol(self, *_args, **_kwargs)
return val
def SelectBlock(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SelectBlock,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SelectBlock(self, *_args, **_kwargs)
return val
def SelectAll(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SelectAll,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SelectAll(self, *_args, **_kwargs)
return val
def IsSelection(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_IsSelection,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_IsSelection(self, *_args, **_kwargs)
return val
def ClearSelection(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_ClearSelection,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_ClearSelection(self, *_args, **_kwargs)
return val
def IsInSelection(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_IsInSelection,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_IsInSelection(self, *_args, **_kwargs)
return val
def GetSelectedCells(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetSelectedCells,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetSelectedCells(self, *_args, **_kwargs)
return val
def GetSelectionBlockTopLeft(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetSelectionBlockTopLeft,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetSelectionBlockTopLeft(self, *_args, **_kwargs)
return val
def GetSelectionBlockBottomRight(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetSelectionBlockBottomRight,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetSelectionBlockBottomRight(self, *_args, **_kwargs)
return val
def GetSelectedRows(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetSelectedRows,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetSelectedRows(self, *_args, **_kwargs)
return val
def GetSelectedCols(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetSelectedCols,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetSelectedCols(self, *_args, **_kwargs)
return val
def DeselectRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_DeselectRow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_DeselectRow(self, *_args, **_kwargs)
return val
def DeselectCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_DeselectCol,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_DeselectCol(self, *_args, **_kwargs)
return val
def DeselectCell(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_DeselectCell,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_DeselectCell(self, *_args, **_kwargs)
return val
def BlockToDeviceRect(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_BlockToDeviceRect,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_BlockToDeviceRect(self, *_args, **_kwargs)
if val: val = wxRectPtr(val) ; val.thisown = 1
return val
def GetSelectionBackground(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetSelectionBackground,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetSelectionBackground(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetSelectionForeground(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetSelectionForeground,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetSelectionForeground(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetSelectionBackground(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetSelectionBackground,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetSelectionBackground(self, *_args, **_kwargs)
return val
def SetSelectionForeground(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetSelectionForeground,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetSelectionForeground(self, *_args, **_kwargs)
return val
def RegisterDataType(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_RegisterDataType,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_RegisterDataType(self, *_args, **_kwargs)
return val
def GetDefaultEditorForCell(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultEditorForCell,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultEditorForCell(self, *_args, **_kwargs)
return val
def GetDefaultRendererForCell(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultRendererForCell,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultRendererForCell(self, *_args, **_kwargs)
return val
def GetDefaultEditorForType(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultEditorForType,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultEditorForType(self, *_args, **_kwargs)
return val
def GetDefaultRendererForType(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetDefaultRendererForType,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetDefaultRendererForType(self, *_args, **_kwargs)
return val
def SetMargins(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_SetMargins,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_SetMargins(self, *_args, **_kwargs)
return val
def GetGridWindow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetGridWindow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetGridWindow(self, *_args, **_kwargs)
return val
def GetGridRowLabelWindow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetGridRowLabelWindow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetGridRowLabelWindow(self, *_args, **_kwargs)
return val
def GetGridColLabelWindow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetGridColLabelWindow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetGridColLabelWindow(self, *_args, **_kwargs)
return val
def GetGridCornerLabelWindow(self, *_args, **_kwargs):
- val = apply(gridc.wxGrid_GetGridCornerLabelWindow,(self,) + _args, _kwargs)
+ val = gridc.wxGrid_GetGridCornerLabelWindow(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGrid instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGrid(wxGridPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGrid,_args,_kwargs)
+ self.this = gridc.new_wxGrid(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -1574,35 +1586,35 @@ class wxGridEventPtr(wxNotifyEventPtr):
self.this = this
self.thisown = 0
def GetRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEvent_GetRow,(self,) + _args, _kwargs)
+ val = gridc.wxGridEvent_GetRow(self, *_args, **_kwargs)
return val
def GetCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEvent_GetCol,(self,) + _args, _kwargs)
+ val = gridc.wxGridEvent_GetCol(self, *_args, **_kwargs)
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEvent_GetPosition,(self,) + _args, _kwargs)
+ val = gridc.wxGridEvent_GetPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def Selecting(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEvent_Selecting,(self,) + _args, _kwargs)
+ val = gridc.wxGridEvent_Selecting(self, *_args, **_kwargs)
return val
def ControlDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEvent_ControlDown,(self,) + _args, _kwargs)
+ val = gridc.wxGridEvent_ControlDown(self, *_args, **_kwargs)
return val
def MetaDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEvent_MetaDown,(self,) + _args, _kwargs)
+ val = gridc.wxGridEvent_MetaDown(self, *_args, **_kwargs)
return val
def ShiftDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEvent_ShiftDown,(self,) + _args, _kwargs)
+ val = gridc.wxGridEvent_ShiftDown(self, *_args, **_kwargs)
return val
def AltDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEvent_AltDown,(self,) + _args, _kwargs)
+ val = gridc.wxGridEvent_AltDown(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridEvent(wxGridEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridEvent,_args,_kwargs)
+ self.this = gridc.new_wxGridEvent(*_args,**_kwargs)
self.thisown = 1
@@ -1613,29 +1625,29 @@ class wxGridSizeEventPtr(wxNotifyEventPtr):
self.this = this
self.thisown = 0
def GetRowOrCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGridSizeEvent_GetRowOrCol,(self,) + _args, _kwargs)
+ val = gridc.wxGridSizeEvent_GetRowOrCol(self, *_args, **_kwargs)
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(gridc.wxGridSizeEvent_GetPosition,(self,) + _args, _kwargs)
+ val = gridc.wxGridSizeEvent_GetPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def ControlDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGridSizeEvent_ControlDown,(self,) + _args, _kwargs)
+ val = gridc.wxGridSizeEvent_ControlDown(self, *_args, **_kwargs)
return val
def MetaDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGridSizeEvent_MetaDown,(self,) + _args, _kwargs)
+ val = gridc.wxGridSizeEvent_MetaDown(self, *_args, **_kwargs)
return val
def ShiftDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGridSizeEvent_ShiftDown,(self,) + _args, _kwargs)
+ val = gridc.wxGridSizeEvent_ShiftDown(self, *_args, **_kwargs)
return val
def AltDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGridSizeEvent_AltDown,(self,) + _args, _kwargs)
+ val = gridc.wxGridSizeEvent_AltDown(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridSizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridSizeEvent(wxGridSizeEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridSizeEvent,_args,_kwargs)
+ self.this = gridc.new_wxGridSizeEvent(*_args,**_kwargs)
self.thisown = 1
@@ -1646,45 +1658,45 @@ class wxGridRangeSelectEventPtr(wxNotifyEventPtr):
self.this = this
self.thisown = 0
def GetTopLeftCoords(self, *_args, **_kwargs):
- val = apply(gridc.wxGridRangeSelectEvent_GetTopLeftCoords,(self,) + _args, _kwargs)
+ val = gridc.wxGridRangeSelectEvent_GetTopLeftCoords(self, *_args, **_kwargs)
if val: val = wxGridCellCoordsPtr(val) ; val.thisown = 1
return val
def GetBottomRightCoords(self, *_args, **_kwargs):
- val = apply(gridc.wxGridRangeSelectEvent_GetBottomRightCoords,(self,) + _args, _kwargs)
+ val = gridc.wxGridRangeSelectEvent_GetBottomRightCoords(self, *_args, **_kwargs)
if val: val = wxGridCellCoordsPtr(val) ; val.thisown = 1
return val
def GetTopRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGridRangeSelectEvent_GetTopRow,(self,) + _args, _kwargs)
+ val = gridc.wxGridRangeSelectEvent_GetTopRow(self, *_args, **_kwargs)
return val
def GetBottomRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGridRangeSelectEvent_GetBottomRow,(self,) + _args, _kwargs)
+ val = gridc.wxGridRangeSelectEvent_GetBottomRow(self, *_args, **_kwargs)
return val
def GetLeftCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGridRangeSelectEvent_GetLeftCol,(self,) + _args, _kwargs)
+ val = gridc.wxGridRangeSelectEvent_GetLeftCol(self, *_args, **_kwargs)
return val
def GetRightCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGridRangeSelectEvent_GetRightCol,(self,) + _args, _kwargs)
+ val = gridc.wxGridRangeSelectEvent_GetRightCol(self, *_args, **_kwargs)
return val
def Selecting(self, *_args, **_kwargs):
- val = apply(gridc.wxGridRangeSelectEvent_Selecting,(self,) + _args, _kwargs)
+ val = gridc.wxGridRangeSelectEvent_Selecting(self, *_args, **_kwargs)
return val
def ControlDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGridRangeSelectEvent_ControlDown,(self,) + _args, _kwargs)
+ val = gridc.wxGridRangeSelectEvent_ControlDown(self, *_args, **_kwargs)
return val
def MetaDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGridRangeSelectEvent_MetaDown,(self,) + _args, _kwargs)
+ val = gridc.wxGridRangeSelectEvent_MetaDown(self, *_args, **_kwargs)
return val
def ShiftDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGridRangeSelectEvent_ShiftDown,(self,) + _args, _kwargs)
+ val = gridc.wxGridRangeSelectEvent_ShiftDown(self, *_args, **_kwargs)
return val
def AltDown(self, *_args, **_kwargs):
- val = apply(gridc.wxGridRangeSelectEvent_AltDown,(self,) + _args, _kwargs)
+ val = gridc.wxGridRangeSelectEvent_AltDown(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridRangeSelectEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridRangeSelectEvent(wxGridRangeSelectEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridRangeSelectEvent,_args,_kwargs)
+ self.this = gridc.new_wxGridRangeSelectEvent(*_args,**_kwargs)
self.thisown = 1
@@ -1695,28 +1707,28 @@ class wxGridEditorCreatedEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def GetRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEditorCreatedEvent_GetRow,(self,) + _args, _kwargs)
+ val = gridc.wxGridEditorCreatedEvent_GetRow(self, *_args, **_kwargs)
return val
def GetCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEditorCreatedEvent_GetCol,(self,) + _args, _kwargs)
+ val = gridc.wxGridEditorCreatedEvent_GetCol(self, *_args, **_kwargs)
return val
def GetControl(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEditorCreatedEvent_GetControl,(self,) + _args, _kwargs)
+ val = gridc.wxGridEditorCreatedEvent_GetControl(self, *_args, **_kwargs)
return val
def SetRow(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEditorCreatedEvent_SetRow,(self,) + _args, _kwargs)
+ val = gridc.wxGridEditorCreatedEvent_SetRow(self, *_args, **_kwargs)
return val
def SetCol(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEditorCreatedEvent_SetCol,(self,) + _args, _kwargs)
+ val = gridc.wxGridEditorCreatedEvent_SetCol(self, *_args, **_kwargs)
return val
def SetControl(self, *_args, **_kwargs):
- val = apply(gridc.wxGridEditorCreatedEvent_SetControl,(self,) + _args, _kwargs)
+ val = gridc.wxGridEditorCreatedEvent_SetControl(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGridEditorCreatedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGridEditorCreatedEvent(wxGridEditorCreatedEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(gridc.new_wxGridEditorCreatedEvent,_args,_kwargs)
+ self.this = gridc.new_wxGridEditorCreatedEvent(*_args,**_kwargs)
self.thisown = 1
diff --git a/wxPython/src/gtk/help.cpp b/wxPython/src/gtk/help.cpp
index c9770753d4..1d71b4f305 100644
--- a/wxPython/src/gtk/help.cpp
+++ b/wxPython/src/gtk/help.cpp
@@ -719,7 +719,7 @@ static PyObject *_wrap_wxHelpProvider_ShowHelp(PyObject *self, PyObject *args, P
PyObject * _resultobj;
bool _result;
wxHelpProvider * _arg0;
- wxWindowBase * _arg1;
+ wxWindow * _arg1;
PyObject * _argo0 = 0;
PyObject * _argo1 = 0;
char *_kwnames[] = { "self","window", NULL };
@@ -736,8 +736,8 @@ static PyObject *_wrap_wxHelpProvider_ShowHelp(PyObject *self, PyObject *args, P
}
if (_argo1) {
if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindowBase_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_ShowHelp. Expected _wxWindowBase_p.");
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_ShowHelp. Expected _wxWindow_p.");
return NULL;
}
}
@@ -755,7 +755,7 @@ static PyObject *_wrap_wxHelpProvider_ShowHelp(PyObject *self, PyObject *args, P
static PyObject *_wrap_wxHelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxHelpProvider * _arg0;
- wxWindowBase * _arg1;
+ wxWindow * _arg1;
wxString * _arg2;
PyObject * _argo0 = 0;
PyObject * _argo1 = 0;
@@ -774,8 +774,8 @@ static PyObject *_wrap_wxHelpProvider_AddHelp(PyObject *self, PyObject *args, Py
}
if (_argo1) {
if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindowBase_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_AddHelp. Expected _wxWindowBase_p.");
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_AddHelp. Expected _wxWindow_p.");
return NULL;
}
}
diff --git a/wxPython/src/gtk/help.py b/wxPython/src/gtk/help.py
index ac1612ba19..3e4ae411aa 100644
--- a/wxPython/src/gtk/help.py
+++ b/wxPython/src/gtk/help.py
@@ -33,29 +33,29 @@ class wxHelpEventPtr(wxCommandEventPtr):
self.this = this
self.thisown = 0
def GetPosition(self, *_args, **_kwargs):
- val = apply(helpc.wxHelpEvent_GetPosition,(self,) + _args, _kwargs)
+ val = helpc.wxHelpEvent_GetPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val)
return val
def SetPosition(self, *_args, **_kwargs):
- val = apply(helpc.wxHelpEvent_SetPosition,(self,) + _args, _kwargs)
+ val = helpc.wxHelpEvent_SetPosition(self, *_args, **_kwargs)
return val
def GetLink(self, *_args, **_kwargs):
- val = apply(helpc.wxHelpEvent_GetLink,(self,) + _args, _kwargs)
+ val = helpc.wxHelpEvent_GetLink(self, *_args, **_kwargs)
return val
def SetLink(self, *_args, **_kwargs):
- val = apply(helpc.wxHelpEvent_SetLink,(self,) + _args, _kwargs)
+ val = helpc.wxHelpEvent_SetLink(self, *_args, **_kwargs)
return val
def GetTarget(self, *_args, **_kwargs):
- val = apply(helpc.wxHelpEvent_GetTarget,(self,) + _args, _kwargs)
+ val = helpc.wxHelpEvent_GetTarget(self, *_args, **_kwargs)
return val
def SetTarget(self, *_args, **_kwargs):
- val = apply(helpc.wxHelpEvent_SetTarget,(self,) + _args, _kwargs)
+ val = helpc.wxHelpEvent_SetTarget(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHelpEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHelpEvent(wxHelpEventPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(helpc.new_wxHelpEvent,_args,_kwargs)
+ self.this = helpc.new_wxHelpEvent(*_args,**_kwargs)
self.thisown = 1
@@ -72,16 +72,16 @@ class wxContextHelpPtr(wxObjectPtr):
except:
pass
def BeginContextHelp(self, *_args, **_kwargs):
- val = apply(helpc.wxContextHelp_BeginContextHelp,(self,) + _args, _kwargs)
+ val = helpc.wxContextHelp_BeginContextHelp(self, *_args, **_kwargs)
return val
def EndContextHelp(self, *_args, **_kwargs):
- val = apply(helpc.wxContextHelp_EndContextHelp,(self,) + _args, _kwargs)
+ val = helpc.wxContextHelp_EndContextHelp(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxContextHelp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxContextHelp(wxContextHelpPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(helpc.new_wxContextHelp,_args,_kwargs)
+ self.this = helpc.new_wxContextHelp(*_args,**_kwargs)
self.thisown = 1
@@ -92,10 +92,10 @@ class wxContextHelpButtonPtr(wxBitmapButtonPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxContextHelpButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxContextHelpButton(wxContextHelpButtonPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(helpc.new_wxContextHelpButton,_args,_kwargs)
+ self.this = helpc.new_wxContextHelpButton(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -107,22 +107,22 @@ class wxHelpProviderPtr :
self.this = this
self.thisown = 0
def GetHelp(self, *_args, **_kwargs):
- val = apply(helpc.wxHelpProvider_GetHelp,(self,) + _args, _kwargs)
+ val = helpc.wxHelpProvider_GetHelp(self, *_args, **_kwargs)
return val
def ShowHelp(self, *_args, **_kwargs):
- val = apply(helpc.wxHelpProvider_ShowHelp,(self,) + _args, _kwargs)
+ val = helpc.wxHelpProvider_ShowHelp(self, *_args, **_kwargs)
return val
def AddHelp(self, *_args, **_kwargs):
- val = apply(helpc.wxHelpProvider_AddHelp,(self,) + _args, _kwargs)
+ val = helpc.wxHelpProvider_AddHelp(self, *_args, **_kwargs)
return val
def AddHelpById(self, *_args, **_kwargs):
- val = apply(helpc.wxHelpProvider_AddHelpById,(self,) + _args, _kwargs)
+ val = helpc.wxHelpProvider_AddHelpById(self, *_args, **_kwargs)
return val
def Destroy(self, *_args, **_kwargs):
- val = apply(helpc.wxHelpProvider_Destroy,(self,) + _args, _kwargs)
+ val = helpc.wxHelpProvider_Destroy(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHelpProvider(wxHelpProviderPtr):
def __init__(self,this):
self.this = this
@@ -135,10 +135,10 @@ class wxSimpleHelpProviderPtr(wxHelpProviderPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxSimpleHelpProvider(wxSimpleHelpProviderPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(helpc.new_wxSimpleHelpProvider,_args,_kwargs)
+ self.this = helpc.new_wxSimpleHelpProvider(*_args,**_kwargs)
self.thisown = 1
@@ -149,12 +149,12 @@ class wxSimpleHelpProvider(wxSimpleHelpProviderPtr):
#-------------- FUNCTION WRAPPERS ------------------
def wxHelpProvider_Set(*_args, **_kwargs):
- val = apply(helpc.wxHelpProvider_Set,_args,_kwargs)
+ val = helpc.wxHelpProvider_Set(*_args,**_kwargs)
if val: val = wxHelpProviderPtr(val)
return val
def wxHelpProvider_Get(*_args, **_kwargs):
- val = apply(helpc.wxHelpProvider_Get,_args,_kwargs)
+ val = helpc.wxHelpProvider_Get(*_args,**_kwargs)
if val: val = wxHelpProviderPtr(val)
return val
diff --git a/wxPython/src/gtk/html.cpp b/wxPython/src/gtk/html.cpp
index 29faa7e50a..f577cba551 100644
--- a/wxPython/src/gtk/html.cpp
+++ b/wxPython/src/gtk/html.cpp
@@ -1314,7 +1314,7 @@ static void *SwigwxHtmlWinParserTowxObject(void *ptr) {
static PyObject *_wrap_new_wxHtmlWinParser(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxHtmlWinParser * _result;
- wxHtmlWindow * _arg0 = (wxHtmlWindow *) NULL;
+ wxPyHtmlWindow * _arg0 = (wxPyHtmlWindow *) NULL;
PyObject * _argo0 = 0;
char *_kwnames[] = { "wnd", NULL };
char _ptemp[128];
@@ -1324,8 +1324,8 @@ static PyObject *_wrap_new_wxHtmlWinParser(PyObject *self, PyObject *args, PyObj
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxHtmlWinParser. Expected _wxHtmlWindow_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxHtmlWinParser. Expected _wxPyHtmlWindow_p.");
return NULL;
}
}
@@ -1469,7 +1469,7 @@ static PyObject *_wrap_wxHtmlWinParser_GetCharWidth(PyObject *self, PyObject *ar
#define wxHtmlWinParser_GetWindow(_swigobj) (_swigobj->GetWindow())
static PyObject *_wrap_wxHtmlWinParser_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- wxHtmlWindow * _result;
+ wxPyHtmlWindow * _result;
wxHtmlWinParser * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
@@ -1486,7 +1486,7 @@ static PyObject *_wrap_wxHtmlWinParser_GetWindow(PyObject *self, PyObject *args,
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxHtmlWindow *)wxHtmlWinParser_GetWindow(_arg0);
+ _result = (wxPyHtmlWindow *)wxHtmlWinParser_GetWindow(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
@@ -3231,11 +3231,12 @@ static PyObject *_wrap_wxHtmlCell_AdjustPagebreak(PyObject *self, PyObject *args
wxHtmlCell * _arg0;
int * _arg1;
PyObject * _argo0 = 0;
- PyObject * _argo1 = 0;
- char *_kwnames[] = { "self","pagebreak", NULL };
+ int temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","INOUT", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlCell_AdjustPagebreak",_kwnames,&_argo0,&_argo1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlCell_AdjustPagebreak",_kwnames,&_argo0,&_obj1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
@@ -3244,13 +3245,10 @@ static PyObject *_wrap_wxHtmlCell_AdjustPagebreak(PyObject *self, PyObject *args
return NULL;
}
}
- if (_argo1) {
- if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_int_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlCell_AdjustPagebreak. Expected _int_p.");
- return NULL;
- }
- }
+{
+ temp = (int) PyInt_AsLong(_obj1);
+ _arg1 = &temp;
+}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
_result = (bool )wxHtmlCell_AdjustPagebreak(_arg0,_arg1);
@@ -3258,6 +3256,11 @@ static PyObject *_wrap_wxHtmlCell_AdjustPagebreak(PyObject *self, PyObject *args
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
+{
+ PyObject *o;
+ o = PyInt_FromLong((long) (*_arg1));
+ _resultobj = t_output_helper(_resultobj, o);
+}
return _resultobj;
}
@@ -4465,6 +4468,45 @@ static PyObject *_wrap_wxHtmlWindow_LoadPage(PyObject *self, PyObject *args, PyO
return _resultobj;
}
+#define wxHtmlWindow_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
+static PyObject *_wrap_wxHtmlWindow_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxPyHtmlWindow * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","filename", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWindow_LoadFile",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_LoadFile. Expected _wxPyHtmlWindow_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxHtmlWindow_LoadFile(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
#define wxHtmlWindow_AppendToPage(_swigobj,_swigarg0) (_swigobj->AppendToPage(_swigarg0))
static PyObject *_wrap_wxHtmlWindow_AppendToPage(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
@@ -6638,6 +6680,7 @@ static PyMethodDef htmlcMethods[] = {
{ "wxHtmlWindow_GetOpenedAnchor", (PyCFunction) _wrap_wxHtmlWindow_GetOpenedAnchor, METH_VARARGS | METH_KEYWORDS },
{ "wxHtmlWindow_GetOpenedPage", (PyCFunction) _wrap_wxHtmlWindow_GetOpenedPage, METH_VARARGS | METH_KEYWORDS },
{ "wxHtmlWindow_AppendToPage", (PyCFunction) _wrap_wxHtmlWindow_AppendToPage, METH_VARARGS | METH_KEYWORDS },
+ { "wxHtmlWindow_LoadFile", (PyCFunction) _wrap_wxHtmlWindow_LoadFile, METH_VARARGS | METH_KEYWORDS },
{ "wxHtmlWindow_LoadPage", (PyCFunction) _wrap_wxHtmlWindow_LoadPage, METH_VARARGS | METH_KEYWORDS },
{ "wxHtmlWindow_SetPage", (PyCFunction) _wrap_wxHtmlWindow_SetPage, METH_VARARGS | METH_KEYWORDS },
{ "wxHtmlWindow__setCallbackInfo", (PyCFunction) _wrap_wxHtmlWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
diff --git a/wxPython/src/gtk/html.py b/wxPython/src/gtk/html.py
index 58e15a4d99..347a11e66a 100644
--- a/wxPython/src/gtk/html.py
+++ b/wxPython/src/gtk/html.py
@@ -48,29 +48,29 @@ class wxHtmlLinkInfoPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def GetHref(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlLinkInfo_GetHref,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlLinkInfo_GetHref(self, *_args, **_kwargs)
return val
def GetTarget(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlLinkInfo_GetTarget,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlLinkInfo_GetTarget(self, *_args, **_kwargs)
return val
def GetEvent(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlLinkInfo_GetEvent,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlLinkInfo_GetEvent(self, *_args, **_kwargs)
return val
def GetHtmlCell(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlLinkInfo_GetHtmlCell,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlLinkInfo_GetHtmlCell(self, *_args, **_kwargs)
if val: val = wxHtmlCellPtr(val)
return val
def SetEvent(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlLinkInfo_SetEvent,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlLinkInfo_SetEvent(self, *_args, **_kwargs)
return val
def SetHtmlCell(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlLinkInfo_SetHtmlCell,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlLinkInfo_SetHtmlCell(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlLinkInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlLinkInfo(wxHtmlLinkInfoPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlLinkInfo,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlLinkInfo(*_args,**_kwargs)
self.thisown = 1
@@ -81,31 +81,31 @@ class wxHtmlTagPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def GetName(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlTag_GetName,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlTag_GetName(self, *_args, **_kwargs)
return val
def HasParam(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlTag_HasParam,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlTag_HasParam(self, *_args, **_kwargs)
return val
def GetParam(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlTag_GetParam,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlTag_GetParam(self, *_args, **_kwargs)
return val
def GetAllParams(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlTag_GetAllParams,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlTag_GetAllParams(self, *_args, **_kwargs)
return val
def HasEnding(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlTag_HasEnding,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlTag_HasEnding(self, *_args, **_kwargs)
return val
def GetBeginPos(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlTag_GetBeginPos,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlTag_GetBeginPos(self, *_args, **_kwargs)
return val
def GetEndPos1(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlTag_GetEndPos1,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlTag_GetEndPos1(self, *_args, **_kwargs)
return val
def GetEndPos2(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlTag_GetEndPos2,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlTag_GetEndPos2(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlTag instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlTag(wxHtmlTagPtr):
def __init__(self,this):
self.this = this
@@ -118,40 +118,40 @@ class wxHtmlParserPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def SetFS(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlParser_SetFS,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlParser_SetFS(self, *_args, **_kwargs)
return val
def GetFS(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlParser_GetFS,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlParser_GetFS(self, *_args, **_kwargs)
return val
def Parse(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlParser_Parse,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlParser_Parse(self, *_args, **_kwargs)
return val
def InitParser(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlParser_InitParser,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlParser_InitParser(self, *_args, **_kwargs)
return val
def DoneParser(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlParser_DoneParser,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlParser_DoneParser(self, *_args, **_kwargs)
return val
def DoParsing(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlParser_DoParsing,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlParser_DoParsing(self, *_args, **_kwargs)
return val
def StopParsing(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlParser_StopParsing,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlParser_StopParsing(self, *_args, **_kwargs)
return val
def AddTagHandler(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlParser_AddTagHandler,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlParser_AddTagHandler(self, *_args, **_kwargs)
return val
def GetSource(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlParser_GetSource,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlParser_GetSource(self, *_args, **_kwargs)
return val
def PushTagHandler(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlParser_PushTagHandler,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlParser_PushTagHandler(self, *_args, **_kwargs)
return val
def PopTagHandler(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlParser_PopTagHandler,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlParser_PopTagHandler(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlParser instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlParser(wxHtmlParserPtr):
def __init__(self,this):
self.this = this
@@ -164,105 +164,105 @@ class wxHtmlWinParserPtr(wxHtmlParserPtr):
self.this = this
self.thisown = 0
def SetDC(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_SetDC,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_SetDC(self, *_args, **_kwargs)
return val
def GetDC(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetDC,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetDC(self, *_args, **_kwargs)
return val
def GetCharHeight(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetCharHeight,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetCharHeight(self, *_args, **_kwargs)
return val
def GetCharWidth(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetCharWidth,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetCharWidth(self, *_args, **_kwargs)
return val
def GetWindow(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetWindow,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetWindow(self, *_args, **_kwargs)
return val
def SetFonts(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_SetFonts,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_SetFonts(self, *_args, **_kwargs)
return val
def GetContainer(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetContainer,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetContainer(self, *_args, **_kwargs)
if val: val = wxHtmlContainerCellPtr(val)
return val
def OpenContainer(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_OpenContainer,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_OpenContainer(self, *_args, **_kwargs)
if val: val = wxHtmlContainerCellPtr(val)
return val
def SetContainer(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_SetContainer,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_SetContainer(self, *_args, **_kwargs)
if val: val = wxHtmlContainerCellPtr(val)
return val
def CloseContainer(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_CloseContainer,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_CloseContainer(self, *_args, **_kwargs)
if val: val = wxHtmlContainerCellPtr(val)
return val
def GetFontSize(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetFontSize,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetFontSize(self, *_args, **_kwargs)
return val
def SetFontSize(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_SetFontSize,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_SetFontSize(self, *_args, **_kwargs)
return val
def GetFontBold(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetFontBold,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetFontBold(self, *_args, **_kwargs)
return val
def SetFontBold(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_SetFontBold,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_SetFontBold(self, *_args, **_kwargs)
return val
def GetFontItalic(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetFontItalic,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetFontItalic(self, *_args, **_kwargs)
return val
def SetFontItalic(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_SetFontItalic,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_SetFontItalic(self, *_args, **_kwargs)
return val
def GetFontUnderlined(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetFontUnderlined,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetFontUnderlined(self, *_args, **_kwargs)
return val
def SetFontUnderlined(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_SetFontUnderlined,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_SetFontUnderlined(self, *_args, **_kwargs)
return val
def GetFontFixed(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetFontFixed,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetFontFixed(self, *_args, **_kwargs)
return val
def SetFontFixed(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_SetFontFixed,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_SetFontFixed(self, *_args, **_kwargs)
return val
def GetAlign(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetAlign,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetAlign(self, *_args, **_kwargs)
return val
def SetAlign(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_SetAlign,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_SetAlign(self, *_args, **_kwargs)
return val
def GetLinkColor(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetLinkColor,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetLinkColor(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetLinkColor(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_SetLinkColor,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_SetLinkColor(self, *_args, **_kwargs)
return val
def GetActualColor(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetActualColor,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetActualColor(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetActualColor(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_SetActualColor,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_SetActualColor(self, *_args, **_kwargs)
return val
def SetLink(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_SetLink,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_SetLink(self, *_args, **_kwargs)
return val
def CreateCurrentFont(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_CreateCurrentFont,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_CreateCurrentFont(self, *_args, **_kwargs)
if val: val = wxFontPtr(val)
return val
def GetLink(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinParser_GetLink,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinParser_GetLink(self, *_args, **_kwargs)
if val: val = wxHtmlLinkInfoPtr(val) ; val.thisown = 1
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlWinParser instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlWinParser(wxHtmlWinParserPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlWinParser,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlWinParser(*_args,**_kwargs)
self.thisown = 1
@@ -273,23 +273,23 @@ class wxHtmlTagHandlerPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlTagHandler__setCallbackInfo,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlTagHandler__setCallbackInfo(self, *_args, **_kwargs)
return val
def SetParser(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlTagHandler_SetParser,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlTagHandler_SetParser(self, *_args, **_kwargs)
return val
def GetParser(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlTagHandler_GetParser,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlTagHandler_GetParser(self, *_args, **_kwargs)
if val: val = wxHtmlParserPtr(val)
return val
def ParseInner(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlTagHandler_ParseInner,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlTagHandler_ParseInner(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlTagHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlTagHandler(wxHtmlTagHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlTagHandler,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlTagHandler(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxHtmlTagHandler)
@@ -301,23 +301,23 @@ class wxHtmlWinTagHandlerPtr(wxHtmlTagHandlerPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinTagHandler__setCallbackInfo,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinTagHandler__setCallbackInfo(self, *_args, **_kwargs)
return val
def SetParser(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinTagHandler_SetParser,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinTagHandler_SetParser(self, *_args, **_kwargs)
return val
def GetParser(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinTagHandler_GetParser,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinTagHandler_GetParser(self, *_args, **_kwargs)
if val: val = wxHtmlWinParserPtr(val)
return val
def ParseInner(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWinTagHandler_ParseInner,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWinTagHandler_ParseInner(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlWinTagHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlWinTagHandler(wxHtmlWinTagHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlWinTagHandler,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlWinTagHandler(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxHtmlWinTagHandler)
@@ -329,68 +329,68 @@ class wxHtmlCellPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def GetPosX(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_GetPosX,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_GetPosX(self, *_args, **_kwargs)
return val
def GetPosY(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_GetPosY,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_GetPosY(self, *_args, **_kwargs)
return val
def GetWidth(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_GetWidth,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_GetWidth(self, *_args, **_kwargs)
return val
def GetHeight(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_GetHeight,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_GetHeight(self, *_args, **_kwargs)
return val
def GetDescent(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_GetDescent,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_GetDescent(self, *_args, **_kwargs)
return val
def GetLink(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_GetLink,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_GetLink(self, *_args, **_kwargs)
if val: val = wxHtmlLinkInfoPtr(val)
return val
def GetNext(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_GetNext,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_GetNext(self, *_args, **_kwargs)
if val: val = wxHtmlCellPtr(val)
return val
def GetParent(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_GetParent,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_GetParent(self, *_args, **_kwargs)
if val: val = wxHtmlContainerCellPtr(val)
return val
def SetLink(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_SetLink,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_SetLink(self, *_args, **_kwargs)
return val
def SetNext(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_SetNext,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_SetNext(self, *_args, **_kwargs)
return val
def SetParent(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_SetParent,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_SetParent(self, *_args, **_kwargs)
return val
def SetPos(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_SetPos,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_SetPos(self, *_args, **_kwargs)
return val
def Layout(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_Layout,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_Layout(self, *_args, **_kwargs)
return val
def Draw(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_Draw,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_Draw(self, *_args, **_kwargs)
return val
def DrawInvisible(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_DrawInvisible,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_DrawInvisible(self, *_args, **_kwargs)
return val
def Find(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_Find,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_Find(self, *_args, **_kwargs)
if val: val = wxHtmlCellPtr(val)
return val
def AdjustPagebreak(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_AdjustPagebreak,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_AdjustPagebreak(self, *_args, **_kwargs)
return val
def SetCanLiveOnPagebreak(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlCell_SetCanLiveOnPagebreak,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlCell_SetCanLiveOnPagebreak(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlCell(wxHtmlCellPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlCell,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlCell(*_args,**_kwargs)
self.thisown = 1
@@ -401,10 +401,10 @@ class wxHtmlWordCellPtr(wxHtmlCellPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlWordCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlWordCell(wxHtmlWordCellPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlWordCell,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlWordCell(*_args,**_kwargs)
self.thisown = 1
@@ -415,60 +415,60 @@ class wxHtmlContainerCellPtr(wxHtmlCellPtr):
self.this = this
self.thisown = 0
def InsertCell(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_InsertCell,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_InsertCell(self, *_args, **_kwargs)
return val
def SetAlignHor(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_SetAlignHor,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_SetAlignHor(self, *_args, **_kwargs)
return val
def GetAlignHor(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_GetAlignHor,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_GetAlignHor(self, *_args, **_kwargs)
return val
def SetAlignVer(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_SetAlignVer,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_SetAlignVer(self, *_args, **_kwargs)
return val
def GetAlignVer(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_GetAlignVer,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_GetAlignVer(self, *_args, **_kwargs)
return val
def SetIndent(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_SetIndent,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_SetIndent(self, *_args, **_kwargs)
return val
def GetIndent(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_GetIndent,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_GetIndent(self, *_args, **_kwargs)
return val
def GetIndentUnits(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_GetIndentUnits,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_GetIndentUnits(self, *_args, **_kwargs)
return val
def SetAlign(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_SetAlign,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_SetAlign(self, *_args, **_kwargs)
return val
def SetWidthFloat(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_SetWidthFloat,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_SetWidthFloat(self, *_args, **_kwargs)
return val
def SetWidthFloatFromTag(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_SetWidthFloatFromTag,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_SetWidthFloatFromTag(self, *_args, **_kwargs)
return val
def SetMinHeight(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_SetMinHeight,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_SetMinHeight(self, *_args, **_kwargs)
return val
def SetBackgroundColour(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_SetBackgroundColour,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_SetBackgroundColour(self, *_args, **_kwargs)
return val
def GetBackgroundColour(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_GetBackgroundColour,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_GetBackgroundColour(self, *_args, **_kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetBorder(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_SetBorder,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_SetBorder(self, *_args, **_kwargs)
return val
def GetFirstCell(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlContainerCell_GetFirstCell,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlContainerCell_GetFirstCell(self, *_args, **_kwargs)
if val: val = wxHtmlCellPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlContainerCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlContainerCell(wxHtmlContainerCellPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlContainerCell,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlContainerCell(*_args,**_kwargs)
self.thisown = 1
@@ -479,10 +479,10 @@ class wxHtmlColourCellPtr(wxHtmlCellPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlColourCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlColourCell(wxHtmlColourCellPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlColourCell,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlColourCell(*_args,**_kwargs)
self.thisown = 1
@@ -493,10 +493,10 @@ class wxHtmlFontCellPtr(wxHtmlCellPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlFontCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlFontCell(wxHtmlFontCellPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlFontCell,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlFontCell(*_args,**_kwargs)
self.thisown = 1
@@ -507,10 +507,10 @@ class wxHtmlWidgetCellPtr(wxHtmlCellPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlWidgetCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlWidgetCell(wxHtmlWidgetCellPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlWidgetCell,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlWidgetCell(*_args,**_kwargs)
self.thisown = 1
@@ -521,13 +521,13 @@ class wxHtmlFilterPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlFilter__setCallbackInfo,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlFilter__setCallbackInfo(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlFilter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlFilter(wxHtmlFilterPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlFilter,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlFilter(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxHtmlFilter)
@@ -539,99 +539,102 @@ class wxHtmlWindowPtr(wxScrolledWindowPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_Create,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_Create(self, *_args, **_kwargs)
return val
def _setCallbackInfo(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow__setCallbackInfo,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow__setCallbackInfo(self, *_args, **_kwargs)
return val
def SetPage(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_SetPage,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_SetPage(self, *_args, **_kwargs)
return val
def LoadPage(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_LoadPage,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_LoadPage(self, *_args, **_kwargs)
+ return val
+ def LoadFile(self, *_args, **_kwargs):
+ val = htmlc.wxHtmlWindow_LoadFile(self, *_args, **_kwargs)
return val
def AppendToPage(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_AppendToPage,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_AppendToPage(self, *_args, **_kwargs)
return val
def GetOpenedPage(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_GetOpenedPage,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_GetOpenedPage(self, *_args, **_kwargs)
return val
def GetOpenedAnchor(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_GetOpenedAnchor,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_GetOpenedAnchor(self, *_args, **_kwargs)
return val
def GetOpenedPageTitle(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_GetOpenedPageTitle,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_GetOpenedPageTitle(self, *_args, **_kwargs)
return val
def SetRelatedFrame(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_SetRelatedFrame,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_SetRelatedFrame(self, *_args, **_kwargs)
return val
def GetRelatedFrame(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_GetRelatedFrame,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_GetRelatedFrame(self, *_args, **_kwargs)
return val
def SetRelatedStatusBar(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_SetRelatedStatusBar,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_SetRelatedStatusBar(self, *_args, **_kwargs)
return val
def SetFonts(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_SetFonts,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_SetFonts(self, *_args, **_kwargs)
return val
def SetTitle(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_SetTitle,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_SetTitle(self, *_args, **_kwargs)
return val
def SetBorders(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_SetBorders,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_SetBorders(self, *_args, **_kwargs)
return val
def ReadCustomization(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_ReadCustomization,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_ReadCustomization(self, *_args, **_kwargs)
return val
def WriteCustomization(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_WriteCustomization,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_WriteCustomization(self, *_args, **_kwargs)
return val
def HistoryBack(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_HistoryBack,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_HistoryBack(self, *_args, **_kwargs)
return val
def HistoryForward(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_HistoryForward,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_HistoryForward(self, *_args, **_kwargs)
return val
def HistoryCanBack(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_HistoryCanBack,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_HistoryCanBack(self, *_args, **_kwargs)
return val
def HistoryCanForward(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_HistoryCanForward,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_HistoryCanForward(self, *_args, **_kwargs)
return val
def HistoryClear(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_HistoryClear,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_HistoryClear(self, *_args, **_kwargs)
return val
def GetInternalRepresentation(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_GetInternalRepresentation,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_GetInternalRepresentation(self, *_args, **_kwargs)
if val: val = wxHtmlContainerCellPtr(val)
return val
def GetParser(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_GetParser,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_GetParser(self, *_args, **_kwargs)
if val: val = wxHtmlWinParserPtr(val)
return val
def ScrollToAnchor(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_ScrollToAnchor,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_ScrollToAnchor(self, *_args, **_kwargs)
return val
def HasAnchor(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_HasAnchor,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_HasAnchor(self, *_args, **_kwargs)
return val
def base_OnLinkClicked(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_base_OnLinkClicked,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_base_OnLinkClicked(self, *_args, **_kwargs)
return val
def base_OnSetTitle(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_base_OnSetTitle,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_base_OnSetTitle(self, *_args, **_kwargs)
return val
def base_OnCellMouseHover(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_base_OnCellMouseHover,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_base_OnCellMouseHover(self, *_args, **_kwargs)
return val
def base_OnCellClicked(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlWindow_base_OnCellClicked,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlWindow_base_OnCellClicked(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlWindow(wxHtmlWindowPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlWindow,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlWindow(*_args,**_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxHtmlWindow)
self._setOORInfo(self)
@@ -639,7 +642,7 @@ class wxHtmlWindow(wxHtmlWindowPtr):
def wxPreHtmlWindow(*_args,**_kwargs):
- val = wxHtmlWindowPtr(apply(htmlc.new_wxPreHtmlWindow,_args,_kwargs))
+ val = wxHtmlWindowPtr(htmlc.new_wxPreHtmlWindow(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -656,28 +659,28 @@ class wxHtmlDCRendererPtr(wxObjectPtr):
except:
pass
def SetDC(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlDCRenderer_SetDC,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlDCRenderer_SetDC(self, *_args, **_kwargs)
return val
def SetSize(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlDCRenderer_SetSize,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlDCRenderer_SetSize(self, *_args, **_kwargs)
return val
def SetHtmlText(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlDCRenderer_SetHtmlText,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlDCRenderer_SetHtmlText(self, *_args, **_kwargs)
return val
def SetFonts(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlDCRenderer_SetFonts,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlDCRenderer_SetFonts(self, *_args, **_kwargs)
return val
def Render(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlDCRenderer_Render,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlDCRenderer_Render(self, *_args, **_kwargs)
return val
def GetTotalHeight(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlDCRenderer_GetTotalHeight,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlDCRenderer_GetTotalHeight(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlDCRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlDCRenderer(wxHtmlDCRendererPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlDCRenderer,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlDCRenderer(*_args,**_kwargs)
self.thisown = 1
@@ -688,28 +691,28 @@ class wxHtmlPrintoutPtr(wxPrintoutPtr):
self.this = this
self.thisown = 0
def SetHtmlText(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlPrintout_SetHtmlText,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlPrintout_SetHtmlText(self, *_args, **_kwargs)
return val
def SetHtmlFile(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlPrintout_SetHtmlFile,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlPrintout_SetHtmlFile(self, *_args, **_kwargs)
return val
def SetHeader(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlPrintout_SetHeader,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlPrintout_SetHeader(self, *_args, **_kwargs)
return val
def SetFooter(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlPrintout_SetFooter,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlPrintout_SetFooter(self, *_args, **_kwargs)
return val
def SetFonts(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlPrintout_SetFonts,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlPrintout_SetFonts(self, *_args, **_kwargs)
return val
def SetMargins(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlPrintout_SetMargins,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlPrintout_SetMargins(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlPrintout(wxHtmlPrintoutPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlPrintout,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlPrintout(*_args,**_kwargs)
self.thisown = 1
@@ -726,45 +729,45 @@ class wxHtmlEasyPrintingPtr(wxObjectPtr):
except:
pass
def PreviewFile(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlEasyPrinting_PreviewFile,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlEasyPrinting_PreviewFile(self, *_args, **_kwargs)
return val
def PreviewText(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlEasyPrinting_PreviewText,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlEasyPrinting_PreviewText(self, *_args, **_kwargs)
return val
def PrintFile(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlEasyPrinting_PrintFile,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlEasyPrinting_PrintFile(self, *_args, **_kwargs)
return val
def PrintText(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlEasyPrinting_PrintText,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlEasyPrinting_PrintText(self, *_args, **_kwargs)
return val
def PrinterSetup(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlEasyPrinting_PrinterSetup,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlEasyPrinting_PrinterSetup(self, *_args, **_kwargs)
return val
def PageSetup(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlEasyPrinting_PageSetup,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlEasyPrinting_PageSetup(self, *_args, **_kwargs)
return val
def SetHeader(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlEasyPrinting_SetHeader,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlEasyPrinting_SetHeader(self, *_args, **_kwargs)
return val
def SetFooter(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlEasyPrinting_SetFooter,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlEasyPrinting_SetFooter(self, *_args, **_kwargs)
return val
def SetFonts(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlEasyPrinting_SetFonts,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlEasyPrinting_SetFonts(self, *_args, **_kwargs)
return val
def GetPrintData(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlEasyPrinting_GetPrintData,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlEasyPrinting_GetPrintData(self, *_args, **_kwargs)
if val: val = wxPrintDataPtr(val)
return val
def GetPageSetupData(self, *_args, **_kwargs):
- val = apply(htmlc.wxHtmlEasyPrinting_GetPageSetupData,(self,) + _args, _kwargs)
+ val = htmlc.wxHtmlEasyPrinting_GetPageSetupData(self, *_args, **_kwargs)
if val: val = wxPageSetupDialogDataPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlEasyPrinting instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlEasyPrinting(wxHtmlEasyPrintingPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlc.new_wxHtmlEasyPrinting,_args,_kwargs)
+ self.this = htmlc.new_wxHtmlEasyPrinting(*_args,**_kwargs)
self.thisown = 1
diff --git a/wxPython/src/gtk/htmlhelp.py b/wxPython/src/gtk/htmlhelp.py
index 33fdd1e5df..778663be9f 100644
--- a/wxPython/src/gtk/htmlhelp.py
+++ b/wxPython/src/gtk/htmlhelp.py
@@ -47,43 +47,43 @@ class wxHtmlBookRecordPtr :
self.this = this
self.thisown = 0
def GetBookFile(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlBookRecord_GetBookFile,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlBookRecord_GetBookFile(self, *_args, **_kwargs)
return val
def GetTitle(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlBookRecord_GetTitle,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlBookRecord_GetTitle(self, *_args, **_kwargs)
return val
def GetStart(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlBookRecord_GetStart,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlBookRecord_GetStart(self, *_args, **_kwargs)
return val
def GetBasePath(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlBookRecord_GetBasePath,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlBookRecord_GetBasePath(self, *_args, **_kwargs)
return val
def SetContentsRange(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlBookRecord_SetContentsRange,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlBookRecord_SetContentsRange(self, *_args, **_kwargs)
return val
def GetContentsStart(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlBookRecord_GetContentsStart,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlBookRecord_GetContentsStart(self, *_args, **_kwargs)
return val
def GetContentsEnd(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlBookRecord_GetContentsEnd,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlBookRecord_GetContentsEnd(self, *_args, **_kwargs)
return val
def SetTitle(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlBookRecord_SetTitle,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlBookRecord_SetTitle(self, *_args, **_kwargs)
return val
def SetBasePath(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlBookRecord_SetBasePath,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlBookRecord_SetBasePath(self, *_args, **_kwargs)
return val
def SetStart(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlBookRecord_SetStart,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlBookRecord_SetStart(self, *_args, **_kwargs)
return val
def GetFullPath(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlBookRecord_GetFullPath,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlBookRecord_GetFullPath(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlBookRecord instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlBookRecord(wxHtmlBookRecordPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlhelpc.new_wxHtmlBookRecord,_args,_kwargs)
+ self.this = htmlhelpc.new_wxHtmlBookRecord(*_args,**_kwargs)
self.thisown = 1
@@ -94,23 +94,23 @@ class wxHtmlContentsItemPtr :
self.this = this
self.thisown = 0
def GetLevel(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlContentsItem_GetLevel,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlContentsItem_GetLevel(self, *_args, **_kwargs)
return val
def GetID(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlContentsItem_GetID,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlContentsItem_GetID(self, *_args, **_kwargs)
return val
def GetName(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlContentsItem_GetName,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlContentsItem_GetName(self, *_args, **_kwargs)
return val
def GetPage(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlContentsItem_GetPage,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlContentsItem_GetPage(self, *_args, **_kwargs)
return val
def GetBook(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlContentsItem_GetBook,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlContentsItem_GetBook(self, *_args, **_kwargs)
if val: val = wxHtmlBookRecordPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlContentsItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlContentsItem(wxHtmlContentsItemPtr):
def __init__(self,this):
self.this = this
@@ -123,26 +123,26 @@ class wxHtmlSearchStatusPtr :
self.this = this
self.thisown = 0
def Search(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlSearchStatus_Search,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlSearchStatus_Search(self, *_args, **_kwargs)
return val
def IsActive(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlSearchStatus_IsActive,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlSearchStatus_IsActive(self, *_args, **_kwargs)
return val
def GetCurIndex(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlSearchStatus_GetCurIndex,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlSearchStatus_GetCurIndex(self, *_args, **_kwargs)
return val
def GetMaxIndex(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlSearchStatus_GetMaxIndex,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlSearchStatus_GetMaxIndex(self, *_args, **_kwargs)
return val
def GetName(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlSearchStatus_GetName,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlSearchStatus_GetName(self, *_args, **_kwargs)
return val
def GetContentsItem(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlSearchStatus_GetContentsItem,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlSearchStatus_GetContentsItem(self, *_args, **_kwargs)
if val: val = wxHtmlContentsItemPtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlSearchStatus instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlSearchStatus(wxHtmlSearchStatusPtr):
def __init__(self,this):
self.this = this
@@ -161,39 +161,39 @@ class wxHtmlHelpDataPtr :
except:
pass
def SetTempDir(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpData_SetTempDir,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpData_SetTempDir(self, *_args, **_kwargs)
return val
def AddBook(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpData_AddBook,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpData_AddBook(self, *_args, **_kwargs)
return val
def FindPageByName(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpData_FindPageByName,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpData_FindPageByName(self, *_args, **_kwargs)
return val
def FindPageById(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpData_FindPageById,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpData_FindPageById(self, *_args, **_kwargs)
return val
def GetBookRecArray(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpData_GetBookRecArray,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpData_GetBookRecArray(self, *_args, **_kwargs)
return val
def GetContents(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpData_GetContents,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpData_GetContents(self, *_args, **_kwargs)
if val: val = wxHtmlContentsItemPtr(val)
return val
def GetContentsCnt(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpData_GetContentsCnt,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpData_GetContentsCnt(self, *_args, **_kwargs)
return val
def GetIndex(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpData_GetIndex,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpData_GetIndex(self, *_args, **_kwargs)
if val: val = wxHtmlContentsItemPtr(val)
return val
def GetIndexCnt(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpData_GetIndexCnt,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpData_GetIndexCnt(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlHelpData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlHelpData(wxHtmlHelpDataPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlhelpc.new_wxHtmlHelpData,_args,_kwargs)
+ self.this = htmlhelpc.new_wxHtmlHelpData(*_args,**_kwargs)
self.thisown = 1
@@ -204,41 +204,41 @@ class wxHtmlHelpFramePtr(wxFramePtr):
self.this = this
self.thisown = 0
def GetData(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpFrame_GetData,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpFrame_GetData(self, *_args, **_kwargs)
if val: val = wxHtmlHelpDataPtr(val)
return val
def SetTitleFormat(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpFrame_SetTitleFormat,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpFrame_SetTitleFormat(self, *_args, **_kwargs)
return val
def Display(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpFrame_Display,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpFrame_Display(self, *_args, **_kwargs)
return val
def DisplayID(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayID,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpFrame_DisplayID(self, *_args, **_kwargs)
return val
def DisplayContents(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayContents,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpFrame_DisplayContents(self, *_args, **_kwargs)
return val
def DisplayIndex(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayIndex,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpFrame_DisplayIndex(self, *_args, **_kwargs)
return val
def KeywordSearch(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpFrame_KeywordSearch,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpFrame_KeywordSearch(self, *_args, **_kwargs)
return val
def UseConfig(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpFrame_UseConfig,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpFrame_UseConfig(self, *_args, **_kwargs)
return val
def ReadCustomization(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpFrame_ReadCustomization,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpFrame_ReadCustomization(self, *_args, **_kwargs)
return val
def WriteCustomization(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpFrame_WriteCustomization,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpFrame_WriteCustomization(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlHelpFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlHelpFrame(wxHtmlHelpFramePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlhelpc.new_wxHtmlHelpFrame,_args,_kwargs)
+ self.this = htmlhelpc.new_wxHtmlHelpFrame(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
@@ -256,47 +256,47 @@ class wxHtmlHelpControllerPtr(wxEvtHandlerPtr):
except:
pass
def SetTitleFormat(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpController_SetTitleFormat,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpController_SetTitleFormat(self, *_args, **_kwargs)
return val
def SetTempDir(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpController_SetTempDir,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpController_SetTempDir(self, *_args, **_kwargs)
return val
def AddBook(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpController_AddBook,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpController_AddBook(self, *_args, **_kwargs)
return val
def Display(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpController_Display,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpController_Display(self, *_args, **_kwargs)
return val
def DisplayID(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpController_DisplayID,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpController_DisplayID(self, *_args, **_kwargs)
return val
def DisplayContents(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpController_DisplayContents,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpController_DisplayContents(self, *_args, **_kwargs)
return val
def DisplayIndex(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpController_DisplayIndex,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpController_DisplayIndex(self, *_args, **_kwargs)
return val
def KeywordSearch(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpController_KeywordSearch,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpController_KeywordSearch(self, *_args, **_kwargs)
return val
def UseConfig(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpController_UseConfig,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpController_UseConfig(self, *_args, **_kwargs)
return val
def ReadCustomization(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpController_ReadCustomization,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpController_ReadCustomization(self, *_args, **_kwargs)
return val
def WriteCustomization(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpController_WriteCustomization,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpController_WriteCustomization(self, *_args, **_kwargs)
return val
def GetFrame(self, *_args, **_kwargs):
- val = apply(htmlhelpc.wxHtmlHelpController_GetFrame,(self,) + _args, _kwargs)
+ val = htmlhelpc.wxHtmlHelpController_GetFrame(self, *_args, **_kwargs)
if val: val = wxHtmlHelpFramePtr(val)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxHtmlHelpController instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxHtmlHelpController(wxHtmlHelpControllerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(htmlhelpc.new_wxHtmlHelpController,_args,_kwargs)
+ self.this = htmlhelpc.new_wxHtmlHelpController(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
diff --git a/wxPython/src/gtk/image.py b/wxPython/src/gtk/image.py
index c4d1896bd2..1aecd98a17 100644
--- a/wxPython/src/gtk/image.py
+++ b/wxPython/src/gtk/image.py
@@ -13,13 +13,13 @@ class wxImageHistogramPtr :
self.this = this
self.thisown = 0
def FindFirstUnusedColour(self, *_args, **_kwargs):
- val = apply(imagec.wxImageHistogram_FindFirstUnusedColour,(self,) + _args, _kwargs)
+ val = imagec.wxImageHistogram_FindFirstUnusedColour(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxImageHistogram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxImageHistogram(wxImageHistogramPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxImageHistogram,_args,_kwargs)
+ self.this = imagec.new_wxImageHistogram(*_args,**_kwargs)
self.thisown = 1
@@ -30,34 +30,34 @@ class wxImageHandlerPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def GetName(self, *_args, **_kwargs):
- val = apply(imagec.wxImageHandler_GetName,(self,) + _args, _kwargs)
+ val = imagec.wxImageHandler_GetName(self, *_args, **_kwargs)
return val
def GetExtension(self, *_args, **_kwargs):
- val = apply(imagec.wxImageHandler_GetExtension,(self,) + _args, _kwargs)
+ val = imagec.wxImageHandler_GetExtension(self, *_args, **_kwargs)
return val
def GetType(self, *_args, **_kwargs):
- val = apply(imagec.wxImageHandler_GetType,(self,) + _args, _kwargs)
+ val = imagec.wxImageHandler_GetType(self, *_args, **_kwargs)
return val
def GetMimeType(self, *_args, **_kwargs):
- val = apply(imagec.wxImageHandler_GetMimeType,(self,) + _args, _kwargs)
+ val = imagec.wxImageHandler_GetMimeType(self, *_args, **_kwargs)
return val
def CanRead(self, *_args, **_kwargs):
- val = apply(imagec.wxImageHandler_CanRead,(self,) + _args, _kwargs)
+ val = imagec.wxImageHandler_CanRead(self, *_args, **_kwargs)
return val
def SetName(self, *_args, **_kwargs):
- val = apply(imagec.wxImageHandler_SetName,(self,) + _args, _kwargs)
+ val = imagec.wxImageHandler_SetName(self, *_args, **_kwargs)
return val
def SetExtension(self, *_args, **_kwargs):
- val = apply(imagec.wxImageHandler_SetExtension,(self,) + _args, _kwargs)
+ val = imagec.wxImageHandler_SetExtension(self, *_args, **_kwargs)
return val
def SetType(self, *_args, **_kwargs):
- val = apply(imagec.wxImageHandler_SetType,(self,) + _args, _kwargs)
+ val = imagec.wxImageHandler_SetType(self, *_args, **_kwargs)
return val
def SetMimeType(self, *_args, **_kwargs):
- val = apply(imagec.wxImageHandler_SetMimeType,(self,) + _args, _kwargs)
+ val = imagec.wxImageHandler_SetMimeType(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxImageHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxImageHandler(wxImageHandlerPtr):
def __init__(self,this):
self.this = this
@@ -70,10 +70,10 @@ class wxPNGHandlerPtr(wxImageHandlerPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPNGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPNGHandler(wxPNGHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxPNGHandler,_args,_kwargs)
+ self.this = imagec.new_wxPNGHandler(*_args,**_kwargs)
self.thisown = 1
@@ -84,10 +84,10 @@ class wxJPEGHandlerPtr(wxImageHandlerPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxJPEGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxJPEGHandler(wxJPEGHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxJPEGHandler,_args,_kwargs)
+ self.this = imagec.new_wxJPEGHandler(*_args,**_kwargs)
self.thisown = 1
@@ -98,10 +98,10 @@ class wxBMPHandlerPtr(wxImageHandlerPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxBMPHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxBMPHandler(wxBMPHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxBMPHandler,_args,_kwargs)
+ self.this = imagec.new_wxBMPHandler(*_args,**_kwargs)
self.thisown = 1
@@ -112,10 +112,10 @@ class wxICOHandlerPtr(wxBMPHandlerPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxICOHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxICOHandler(wxICOHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxICOHandler,_args,_kwargs)
+ self.this = imagec.new_wxICOHandler(*_args,**_kwargs)
self.thisown = 1
@@ -126,10 +126,10 @@ class wxCURHandlerPtr(wxICOHandlerPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxCURHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxCURHandler(wxCURHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxCURHandler,_args,_kwargs)
+ self.this = imagec.new_wxCURHandler(*_args,**_kwargs)
self.thisown = 1
@@ -140,10 +140,10 @@ class wxANIHandlerPtr(wxCURHandlerPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxANIHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxANIHandler(wxANIHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxANIHandler,_args,_kwargs)
+ self.this = imagec.new_wxANIHandler(*_args,**_kwargs)
self.thisown = 1
@@ -154,10 +154,10 @@ class wxGIFHandlerPtr(wxImageHandlerPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxGIFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxGIFHandler(wxGIFHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxGIFHandler,_args,_kwargs)
+ self.this = imagec.new_wxGIFHandler(*_args,**_kwargs)
self.thisown = 1
@@ -168,10 +168,10 @@ class wxPNMHandlerPtr(wxImageHandlerPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPNMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPNMHandler(wxPNMHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxPNMHandler,_args,_kwargs)
+ self.this = imagec.new_wxPNMHandler(*_args,**_kwargs)
self.thisown = 1
@@ -182,10 +182,10 @@ class wxPCXHandlerPtr(wxImageHandlerPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPCXHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxPCXHandler(wxPCXHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxPCXHandler,_args,_kwargs)
+ self.this = imagec.new_wxPCXHandler(*_args,**_kwargs)
self.thisown = 1
@@ -196,10 +196,10 @@ class wxTIFFHandlerPtr(wxImageHandlerPtr):
self.this = this
self.thisown = 0
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxTIFFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxTIFFHandler(wxTIFFHandlerPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxTIFFHandler,_args,_kwargs)
+ self.this = imagec.new_wxTIFFHandler(*_args,**_kwargs)
self.thisown = 1
@@ -216,183 +216,184 @@ class wxImagePtr(wxObjectPtr):
except:
pass
def Create(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_Create,(self,) + _args, _kwargs)
+ val = imagec.wxImage_Create(self, *_args, **_kwargs)
return val
def Destroy(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_Destroy,(self,) + _args, _kwargs)
+ val = imagec.wxImage_Destroy(self, *_args, **_kwargs)
return val
def Scale(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_Scale,(self,) + _args, _kwargs)
+ val = imagec.wxImage_Scale(self, *_args, **_kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def ShrinkBy(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_ShrinkBy,(self,) + _args, _kwargs)
+ val = imagec.wxImage_ShrinkBy(self, *_args, **_kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def Rescale(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_Rescale,(self,) + _args, _kwargs)
+ val = imagec.wxImage_Rescale(self, *_args, **_kwargs)
if val: val = wxImagePtr(val)
return val
def SetRGB(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SetRGB,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SetRGB(self, *_args, **_kwargs)
return val
def GetRed(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetRed,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetRed(self, *_args, **_kwargs)
return val
def GetGreen(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetGreen,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetGreen(self, *_args, **_kwargs)
return val
def GetBlue(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetBlue,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetBlue(self, *_args, **_kwargs)
return val
def SetAlpha(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SetAlpha,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SetAlpha(self, *_args, **_kwargs)
return val
def GetAlpha(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetAlpha,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetAlpha(self, *_args, **_kwargs)
return val
def HasAlpha(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_HasAlpha,(self,) + _args, _kwargs)
+ val = imagec.wxImage_HasAlpha(self, *_args, **_kwargs)
return val
def FindFirstUnusedColour(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_FindFirstUnusedColour,(self,) + _args, _kwargs)
+ val = imagec.wxImage_FindFirstUnusedColour(self, *_args, **_kwargs)
return val
def SetMaskFromImage(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SetMaskFromImage,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SetMaskFromImage(self, *_args, **_kwargs)
return val
def LoadFile(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_LoadFile,(self,) + _args, _kwargs)
+ val = imagec.wxImage_LoadFile(self, *_args, **_kwargs)
return val
def LoadMimeFile(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_LoadMimeFile,(self,) + _args, _kwargs)
+ val = imagec.wxImage_LoadMimeFile(self, *_args, **_kwargs)
return val
def SaveFile(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SaveFile,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SaveFile(self, *_args, **_kwargs)
return val
def SaveMimeFile(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SaveMimeFile,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SaveMimeFile(self, *_args, **_kwargs)
return val
def LoadStream(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_LoadStream,(self,) + _args, _kwargs)
+ val = imagec.wxImage_LoadStream(self, *_args, **_kwargs)
return val
def LoadMimeStream(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_LoadMimeStream,(self,) + _args, _kwargs)
+ val = imagec.wxImage_LoadMimeStream(self, *_args, **_kwargs)
return val
def Ok(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_Ok,(self,) + _args, _kwargs)
+ val = imagec.wxImage_Ok(self, *_args, **_kwargs)
return val
def GetWidth(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetWidth,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetWidth(self, *_args, **_kwargs)
return val
def GetHeight(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetHeight(self, *_args, **_kwargs)
return val
def GetSubImage(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetSubImage,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetSubImage(self, *_args, **_kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def Copy(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_Copy,(self,) + _args, _kwargs)
+ val = imagec.wxImage_Copy(self, *_args, **_kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def Paste(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_Paste,(self,) + _args, _kwargs)
+ val = imagec.wxImage_Paste(self, *_args, **_kwargs)
return val
def GetData(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetData(self, *_args, **_kwargs)
return val
def SetData(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SetData(self, *_args, **_kwargs)
return val
def GetDataBuffer(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetDataBuffer,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetDataBuffer(self, *_args, **_kwargs)
return val
def SetDataBuffer(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SetDataBuffer,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SetDataBuffer(self, *_args, **_kwargs)
return val
def GetAlphaData(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetAlphaData,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetAlphaData(self, *_args, **_kwargs)
return val
def SetAlphaData(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SetAlphaData,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SetAlphaData(self, *_args, **_kwargs)
return val
def GetAlphaBuffer(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetAlphaBuffer,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetAlphaBuffer(self, *_args, **_kwargs)
return val
def SetAlphaBuffer(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SetAlphaBuffer,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SetAlphaBuffer(self, *_args, **_kwargs)
return val
def SetMaskColour(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SetMaskColour,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SetMaskColour(self, *_args, **_kwargs)
return val
def GetMaskRed(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetMaskRed,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetMaskRed(self, *_args, **_kwargs)
return val
def GetMaskGreen(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetMaskGreen,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetMaskGreen(self, *_args, **_kwargs)
return val
def GetMaskBlue(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetMaskBlue,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetMaskBlue(self, *_args, **_kwargs)
return val
def SetMask(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SetMask,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SetMask(self, *_args, **_kwargs)
return val
def HasMask(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_HasMask,(self,) + _args, _kwargs)
+ val = imagec.wxImage_HasMask(self, *_args, **_kwargs)
return val
def Rotate(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_Rotate,(self,) + _args, _kwargs)
+ val = imagec.wxImage_Rotate(self, *_args, **_kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def Rotate90(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_Rotate90,(self,) + _args, _kwargs)
+ val = imagec.wxImage_Rotate90(self, *_args, **_kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def Mirror(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_Mirror,(self,) + _args, _kwargs)
+ val = imagec.wxImage_Mirror(self, *_args, **_kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def Replace(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_Replace,(self,) + _args, _kwargs)
+ val = imagec.wxImage_Replace(self, *_args, **_kwargs)
return val
def ConvertToMono(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_ConvertToMono,(self,) + _args, _kwargs)
+ val = imagec.wxImage_ConvertToMono(self, *_args, **_kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def SetOption(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SetOption,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SetOption(self, *_args, **_kwargs)
return val
def SetOptionInt(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_SetOptionInt,(self,) + _args, _kwargs)
+ val = imagec.wxImage_SetOptionInt(self, *_args, **_kwargs)
return val
def GetOption(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetOption,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetOption(self, *_args, **_kwargs)
return val
def GetOptionInt(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_GetOptionInt,(self,) + _args, _kwargs)
+ val = imagec.wxImage_GetOptionInt(self, *_args, **_kwargs)
return val
def HasOption(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_HasOption,(self,) + _args, _kwargs)
+ val = imagec.wxImage_HasOption(self, *_args, **_kwargs)
return val
def CountColours(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_CountColours,(self,) + _args, _kwargs)
+ val = imagec.wxImage_CountColours(self, *_args, **_kwargs)
return val
def ComputeHistogram(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_ComputeHistogram,(self,) + _args, _kwargs)
+ val = imagec.wxImage_ComputeHistogram(self, *_args, **_kwargs)
return val
def ConvertToBitmap(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_ConvertToBitmap,(self,) + _args, _kwargs)
+ val = imagec.wxImage_ConvertToBitmap(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val) ; val.thisown = 1
return val
def ConvertToMonoBitmap(self, *_args, **_kwargs):
- val = apply(imagec.wxImage_ConvertToMonoBitmap,(self,) + _args, _kwargs)
+ val = imagec.wxImage_ConvertToMonoBitmap(self, *_args, **_kwargs)
if val: val = wxBitmapPtr(val) ; val.thisown = 1
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+ def __nonzero__(self): return self.Ok()
class wxImage(wxImagePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxImage,_args,_kwargs)
+ self.this = imagec.new_wxImage(*_args,**_kwargs)
self.thisown = 1
@@ -403,39 +404,39 @@ class wxImage(wxImagePtr):
#-------------- FUNCTION WRAPPERS ------------------
def wxEmptyImage(*_args, **_kwargs):
- val = apply(imagec.wxEmptyImage,_args,_kwargs)
+ val = imagec.wxEmptyImage(*_args,**_kwargs)
if val: val = wxImagePtr(val); val.thisown = 1
return val
def wxImageFromMime(*_args, **_kwargs):
- val = apply(imagec.wxImageFromMime,_args,_kwargs)
+ val = imagec.wxImageFromMime(*_args,**_kwargs)
if val: val = wxImagePtr(val); val.thisown = 1
return val
def wxImageFromBitmap(*_args, **_kwargs):
- val = apply(imagec.wxImageFromBitmap,_args,_kwargs)
+ val = imagec.wxImageFromBitmap(*_args,**_kwargs)
if val: val = wxImagePtr(val); val.thisown = 1
return val
def wxImageFromData(*_args, **_kwargs):
- val = apply(imagec.wxImageFromData,_args,_kwargs)
+ val = imagec.wxImageFromData(*_args,**_kwargs)
if val: val = wxImagePtr(val); val.thisown = 1
return val
def wxImageFromStream(*_args, **_kwargs):
- val = apply(imagec.wxImageFromStream,_args,_kwargs)
+ val = imagec.wxImageFromStream(*_args,**_kwargs)
if val: val = wxImagePtr(val); val.thisown = 1
return val
def wxImageFromStreamMime(*_args, **_kwargs):
- val = apply(imagec.wxImageFromStreamMime,_args,_kwargs)
+ val = imagec.wxImageFromStreamMime(*_args,**_kwargs)
if val: val = wxImagePtr(val); val.thisown = 1
return val
wxInitAllImageHandlers = imagec.wxInitAllImageHandlers
def wxBitmapFromImage(*_args, **_kwargs):
- val = apply(imagec.wxBitmapFromImage,_args,_kwargs)
+ val = imagec.wxBitmapFromImage(*_args,**_kwargs)
if val: val = wxBitmapPtr(val); val.thisown = 1
return val
diff --git a/wxPython/src/gtk/mdi.py b/wxPython/src/gtk/mdi.py
index 61c6f9d46c..69f586a9d4 100644
--- a/wxPython/src/gtk/mdi.py
+++ b/wxPython/src/gtk/mdi.py
@@ -24,44 +24,44 @@ class wxMDIParentFramePtr(wxFramePtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIParentFrame_Create,(self,) + _args, _kwargs)
+ val = mdic.wxMDIParentFrame_Create(self, *_args, **_kwargs)
return val
def ActivateNext(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIParentFrame_ActivateNext,(self,) + _args, _kwargs)
+ val = mdic.wxMDIParentFrame_ActivateNext(self, *_args, **_kwargs)
return val
def ActivatePrevious(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIParentFrame_ActivatePrevious,(self,) + _args, _kwargs)
+ val = mdic.wxMDIParentFrame_ActivatePrevious(self, *_args, **_kwargs)
return val
def ArrangeIcons(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIParentFrame_ArrangeIcons,(self,) + _args, _kwargs)
+ val = mdic.wxMDIParentFrame_ArrangeIcons(self, *_args, **_kwargs)
return val
def Cascade(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIParentFrame_Cascade,(self,) + _args, _kwargs)
+ val = mdic.wxMDIParentFrame_Cascade(self, *_args, **_kwargs)
return val
def GetActiveChild(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIParentFrame_GetActiveChild,(self,) + _args, _kwargs)
+ val = mdic.wxMDIParentFrame_GetActiveChild(self, *_args, **_kwargs)
return val
def GetClientWindow(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIParentFrame_GetClientWindow,(self,) + _args, _kwargs)
+ val = mdic.wxMDIParentFrame_GetClientWindow(self, *_args, **_kwargs)
return val
def GetToolBar(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIParentFrame_GetToolBar,(self,) + _args, _kwargs)
+ val = mdic.wxMDIParentFrame_GetToolBar(self, *_args, **_kwargs)
return val
def Tile(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIParentFrame_Tile,(self,) + _args, _kwargs)
+ val = mdic.wxMDIParentFrame_Tile(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMDIParentFrame(wxMDIParentFramePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(mdic.new_wxMDIParentFrame,_args,_kwargs)
+ self.this = mdic.new_wxMDIParentFrame(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreMDIParentFrame(*_args,**_kwargs):
- val = wxMDIParentFramePtr(apply(mdic.new_wxPreMDIParentFrame,_args,_kwargs))
+ val = wxMDIParentFramePtr(mdic.new_wxPreMDIParentFrame(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -72,29 +72,29 @@ class wxMDIChildFramePtr(wxFramePtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIChildFrame_Create,(self,) + _args, _kwargs)
+ val = mdic.wxMDIChildFrame_Create(self, *_args, **_kwargs)
return val
def Activate(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIChildFrame_Activate,(self,) + _args, _kwargs)
+ val = mdic.wxMDIChildFrame_Activate(self, *_args, **_kwargs)
return val
def Maximize(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIChildFrame_Maximize,(self,) + _args, _kwargs)
+ val = mdic.wxMDIChildFrame_Maximize(self, *_args, **_kwargs)
return val
def Restore(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIChildFrame_Restore,(self,) + _args, _kwargs)
+ val = mdic.wxMDIChildFrame_Restore(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMDIChildFrame(wxMDIChildFramePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(mdic.new_wxMDIChildFrame,_args,_kwargs)
+ self.this = mdic.new_wxMDIChildFrame(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreMDIChildFrame(*_args,**_kwargs):
- val = wxMDIChildFramePtr(apply(mdic.new_wxPreMDIChildFrame,_args,_kwargs))
+ val = wxMDIChildFramePtr(mdic.new_wxPreMDIChildFrame(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
@@ -105,20 +105,20 @@ class wxMDIClientWindowPtr(wxWindowPtr):
self.this = this
self.thisown = 0
def Create(self, *_args, **_kwargs):
- val = apply(mdic.wxMDIClientWindow_Create,(self,) + _args, _kwargs)
+ val = mdic.wxMDIClientWindow_Create(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxMDIClientWindow(wxMDIClientWindowPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(mdic.new_wxMDIClientWindow,_args,_kwargs)
+ self.this = mdic.new_wxMDIClientWindow(*_args,**_kwargs)
self.thisown = 1
self._setOORInfo(self)
def wxPreMDIClientWindow(*_args,**_kwargs):
- val = wxMDIClientWindowPtr(apply(mdic.new_wxPreMDIClientWindow,_args,_kwargs))
+ val = wxMDIClientWindowPtr(mdic.new_wxPreMDIClientWindow(*_args,**_kwargs))
val.thisown = 1
val._setOORInfo(val)
return val
diff --git a/wxPython/src/gtk/misc.py b/wxPython/src/gtk/misc.py
index e1f06cc4f9..747c3ff1c2 100644
--- a/wxPython/src/gtk/misc.py
+++ b/wxPython/src/gtk/misc.py
@@ -5,13 +5,13 @@ class wxObjectPtr :
self.this = this
self.thisown = 0
def GetClassName(self, *_args, **_kwargs):
- val = apply(miscc.wxObject_GetClassName,(self,) + _args, _kwargs)
+ val = miscc.wxObject_GetClassName(self, *_args, **_kwargs)
return val
def Destroy(self, *_args, **_kwargs):
- val = apply(miscc.wxObject_Destroy,(self,) + _args, _kwargs)
+ val = miscc.wxObject_Destroy(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxObject(wxObjectPtr):
def __init__(self,this):
self.this = this
@@ -30,34 +30,34 @@ class wxSizePtr :
except:
pass
def Set(self, *_args, **_kwargs):
- val = apply(miscc.wxSize_Set,(self,) + _args, _kwargs)
+ val = miscc.wxSize_Set(self, *_args, **_kwargs)
return val
def GetX(self, *_args, **_kwargs):
- val = apply(miscc.wxSize_GetX,(self,) + _args, _kwargs)
+ val = miscc.wxSize_GetX(self, *_args, **_kwargs)
return val
def GetY(self, *_args, **_kwargs):
- val = apply(miscc.wxSize_GetY,(self,) + _args, _kwargs)
+ val = miscc.wxSize_GetY(self, *_args, **_kwargs)
return val
def GetWidth(self, *_args, **_kwargs):
- val = apply(miscc.wxSize_GetWidth,(self,) + _args, _kwargs)
+ val = miscc.wxSize_GetWidth(self, *_args, **_kwargs)
return val
def GetHeight(self, *_args, **_kwargs):
- val = apply(miscc.wxSize_GetHeight,(self,) + _args, _kwargs)
+ val = miscc.wxSize_GetHeight(self, *_args, **_kwargs)
return val
def SetWidth(self, *_args, **_kwargs):
- val = apply(miscc.wxSize_SetWidth,(self,) + _args, _kwargs)
+ val = miscc.wxSize_SetWidth(self, *_args, **_kwargs)
return val
def SetHeight(self, *_args, **_kwargs):
- val = apply(miscc.wxSize_SetHeight,(self,) + _args, _kwargs)
+ val = miscc.wxSize_SetHeight(self, *_args, **_kwargs)
return val
def asTuple(self, *_args, **_kwargs):
- val = apply(miscc.wxSize_asTuple,(self,) + _args, _kwargs)
+ val = miscc.wxSize_asTuple(self, *_args, **_kwargs)
return val
def __eq__(self, *_args, **_kwargs):
- val = apply(miscc.wxSize___eq__,(self,) + _args, _kwargs)
+ val = miscc.wxSize___eq__(self, *_args, **_kwargs)
return val
def __ne__(self, *_args, **_kwargs):
- val = apply(miscc.wxSize___ne__,(self,) + _args, _kwargs)
+ val = miscc.wxSize___ne__(self, *_args, **_kwargs)
return val
def __setattr__(self,name,value):
if name == "x" :
@@ -84,7 +84,7 @@ class wxSizePtr :
return miscc.wxSize_height_get(self)
raise AttributeError,name
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxSize instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
def __str__(self): return str(self.asTuple())
def __repr__(self): return 'wxSize'+str(self.asTuple())
@@ -101,7 +101,7 @@ class wxSizePtr :
class wxSize(wxSizePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(miscc.new_wxSize,_args,_kwargs)
+ self.this = miscc.new_wxSize(*_args,**_kwargs)
self.thisown = 1
@@ -118,24 +118,24 @@ class wxRealPointPtr :
except:
pass
def Set(self, *_args, **_kwargs):
- val = apply(miscc.wxRealPoint_Set,(self,) + _args, _kwargs)
+ val = miscc.wxRealPoint_Set(self, *_args, **_kwargs)
return val
def asTuple(self, *_args, **_kwargs):
- val = apply(miscc.wxRealPoint_asTuple,(self,) + _args, _kwargs)
+ val = miscc.wxRealPoint_asTuple(self, *_args, **_kwargs)
return val
def __add__(self, *_args, **_kwargs):
- val = apply(miscc.wxRealPoint___add__,(self,) + _args, _kwargs)
+ val = miscc.wxRealPoint___add__(self, *_args, **_kwargs)
if val: val = wxRealPointPtr(val) ; val.thisown = 1
return val
def __sub__(self, *_args, **_kwargs):
- val = apply(miscc.wxRealPoint___sub__,(self,) + _args, _kwargs)
+ val = miscc.wxRealPoint___sub__(self, *_args, **_kwargs)
if val: val = wxRealPointPtr(val) ; val.thisown = 1
return val
def __eq__(self, *_args, **_kwargs):
- val = apply(miscc.wxRealPoint___eq__,(self,) + _args, _kwargs)
+ val = miscc.wxRealPoint___eq__(self, *_args, **_kwargs)
return val
def __ne__(self, *_args, **_kwargs):
- val = apply(miscc.wxRealPoint___ne__,(self,) + _args, _kwargs)
+ val = miscc.wxRealPoint___ne__(self, *_args, **_kwargs)
return val
def __setattr__(self,name,value):
if name == "x" :
@@ -152,7 +152,7 @@ class wxRealPointPtr :
return miscc.wxRealPoint_y_get(self)
raise AttributeError,name
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxRealPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
def __str__(self): return str(self.asTuple())
def __repr__(self): return 'wxRealPoint'+str(self.asTuple())
@@ -169,7 +169,7 @@ class wxRealPointPtr :
class wxRealPoint(wxRealPointPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(miscc.new_wxRealPoint,_args,_kwargs)
+ self.this = miscc.new_wxRealPoint(*_args,**_kwargs)
self.thisown = 1
@@ -186,24 +186,24 @@ class wxPointPtr :
except:
pass
def Set(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint_Set,(self,) + _args, _kwargs)
+ val = miscc.wxPoint_Set(self, *_args, **_kwargs)
return val
def asTuple(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint_asTuple,(self,) + _args, _kwargs)
+ val = miscc.wxPoint_asTuple(self, *_args, **_kwargs)
return val
def __add__(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint___add__,(self,) + _args, _kwargs)
+ val = miscc.wxPoint___add__(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def __sub__(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint___sub__,(self,) + _args, _kwargs)
+ val = miscc.wxPoint___sub__(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def __eq__(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint___eq__,(self,) + _args, _kwargs)
+ val = miscc.wxPoint___eq__(self, *_args, **_kwargs)
return val
def __ne__(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint___ne__,(self,) + _args, _kwargs)
+ val = miscc.wxPoint___ne__(self, *_args, **_kwargs)
return val
def __setattr__(self,name,value):
if name == "x" :
@@ -220,7 +220,7 @@ class wxPointPtr :
return miscc.wxPoint_y_get(self)
raise AttributeError,name
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
def __str__(self): return str(self.asTuple())
def __repr__(self): return 'wxPoint'+str(self.asTuple())
@@ -237,7 +237,7 @@ class wxPointPtr :
class wxPoint(wxPointPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(miscc.new_wxPoint,_args,_kwargs)
+ self.this = miscc.new_wxPoint(*_args,**_kwargs)
self.thisown = 1
@@ -254,103 +254,103 @@ class wxRectPtr :
except:
pass
def GetX(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_GetX,(self,) + _args, _kwargs)
+ val = miscc.wxRect_GetX(self, *_args, **_kwargs)
return val
def SetX(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_SetX,(self,) + _args, _kwargs)
+ val = miscc.wxRect_SetX(self, *_args, **_kwargs)
return val
def GetY(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_GetY,(self,) + _args, _kwargs)
+ val = miscc.wxRect_GetY(self, *_args, **_kwargs)
return val
def SetY(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_SetY,(self,) + _args, _kwargs)
+ val = miscc.wxRect_SetY(self, *_args, **_kwargs)
return val
def GetWidth(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_GetWidth,(self,) + _args, _kwargs)
+ val = miscc.wxRect_GetWidth(self, *_args, **_kwargs)
return val
def SetWidth(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_SetWidth,(self,) + _args, _kwargs)
+ val = miscc.wxRect_SetWidth(self, *_args, **_kwargs)
return val
def GetHeight(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_GetHeight,(self,) + _args, _kwargs)
+ val = miscc.wxRect_GetHeight(self, *_args, **_kwargs)
return val
def SetHeight(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_SetHeight,(self,) + _args, _kwargs)
+ val = miscc.wxRect_SetHeight(self, *_args, **_kwargs)
return val
def GetPosition(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_GetPosition,(self,) + _args, _kwargs)
+ val = miscc.wxRect_GetPosition(self, *_args, **_kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def GetSize(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_GetSize,(self,) + _args, _kwargs)
+ val = miscc.wxRect_GetSize(self, *_args, **_kwargs)
if val: val = wxSizePtr(val) ; val.thisown = 1
return val
def SetPosition(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_SetPosition,(self,) + _args, _kwargs)
+ val = miscc.wxRect_SetPosition(self, *_args, **_kwargs)
return val
def SetSize(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_SetSize,(self,) + _args, _kwargs)
+ val = miscc.wxRect_SetSize(self, *_args, **_kwargs)
return val
def GetLeft(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_GetLeft,(self,) + _args, _kwargs)
+ val = miscc.wxRect_GetLeft(self, *_args, **_kwargs)
return val
def GetTop(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_GetTop,(self,) + _args, _kwargs)
+ val = miscc.wxRect_GetTop(self, *_args, **_kwargs)
return val
def GetBottom(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_GetBottom,(self,) + _args, _kwargs)
+ val = miscc.wxRect_GetBottom(self, *_args, **_kwargs)
return val
def GetRight(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_GetRight,(self,) + _args, _kwargs)
+ val = miscc.wxRect_GetRight(self, *_args, **_kwargs)
return val
def SetLeft(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_SetLeft,(self,) + _args, _kwargs)
+ val = miscc.wxRect_SetLeft(self, *_args, **_kwargs)
return val
def SetRight(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_SetRight,(self,) + _args, _kwargs)
+ val = miscc.wxRect_SetRight(self, *_args, **_kwargs)
return val
def SetTop(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_SetTop,(self,) + _args, _kwargs)
+ val = miscc.wxRect_SetTop(self, *_args, **_kwargs)
return val
def SetBottom(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_SetBottom,(self,) + _args, _kwargs)
+ val = miscc.wxRect_SetBottom(self, *_args, **_kwargs)
return val
def Deflate(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_Deflate,(self,) + _args, _kwargs)
+ val = miscc.wxRect_Deflate(self, *_args, **_kwargs)
return val
def Inflate(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_Inflate,(self,) + _args, _kwargs)
+ val = miscc.wxRect_Inflate(self, *_args, **_kwargs)
return val
def InsideXY(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_InsideXY,(self,) + _args, _kwargs)
+ val = miscc.wxRect_InsideXY(self, *_args, **_kwargs)
return val
def Inside(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_Inside,(self,) + _args, _kwargs)
+ val = miscc.wxRect_Inside(self, *_args, **_kwargs)
return val
def Intersects(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_Intersects,(self,) + _args, _kwargs)
+ val = miscc.wxRect_Intersects(self, *_args, **_kwargs)
return val
def OffsetXY(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_OffsetXY,(self,) + _args, _kwargs)
+ val = miscc.wxRect_OffsetXY(self, *_args, **_kwargs)
return val
def Offset(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_Offset,(self,) + _args, _kwargs)
+ val = miscc.wxRect_Offset(self, *_args, **_kwargs)
return val
def Set(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_Set,(self,) + _args, _kwargs)
+ val = miscc.wxRect_Set(self, *_args, **_kwargs)
return val
def asTuple(self, *_args, **_kwargs):
- val = apply(miscc.wxRect_asTuple,(self,) + _args, _kwargs)
+ val = miscc.wxRect_asTuple(self, *_args, **_kwargs)
return val
def __add__(self, *_args, **_kwargs):
- val = apply(miscc.wxRect___add__,(self,) + _args, _kwargs)
+ val = miscc.wxRect___add__(self, *_args, **_kwargs)
if val: val = wxRectPtr(val) ; val.thisown = 1
return val
def __eq__(self, *_args, **_kwargs):
- val = apply(miscc.wxRect___eq__,(self,) + _args, _kwargs)
+ val = miscc.wxRect___eq__(self, *_args, **_kwargs)
return val
def __ne__(self, *_args, **_kwargs):
- val = apply(miscc.wxRect___ne__,(self,) + _args, _kwargs)
+ val = miscc.wxRect___ne__(self, *_args, **_kwargs)
return val
def __setattr__(self,name,value):
if name == "x" :
@@ -377,7 +377,7 @@ class wxRectPtr :
return miscc.wxRect_height_get(self)
raise AttributeError,name
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxRect instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
def __str__(self): return str(self.asTuple())
def __repr__(self): return 'wxRect'+str(self.asTuple())
@@ -433,7 +433,7 @@ class wxRectPtr :
class wxRect(wxRectPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(miscc.new_wxRect,_args,_kwargs)
+ self.this = miscc.new_wxRect(*_args,**_kwargs)
self.thisown = 1
@@ -444,66 +444,66 @@ class wxPoint2DDoublePtr :
self.this = this
self.thisown = 0
def GetFloor(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble_GetFloor,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble_GetFloor(self, *_args, **_kwargs)
return val
def GetRounded(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble_GetRounded,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble_GetRounded(self, *_args, **_kwargs)
return val
def GetVectorLength(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble_GetVectorLength,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble_GetVectorLength(self, *_args, **_kwargs)
return val
def GetVectorAngle(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble_GetVectorAngle,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble_GetVectorAngle(self, *_args, **_kwargs)
return val
def SetVectorLength(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble_SetVectorLength,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble_SetVectorLength(self, *_args, **_kwargs)
return val
def SetVectorAngle(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble_SetVectorAngle,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble_SetVectorAngle(self, *_args, **_kwargs)
return val
def GetDistance(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble_GetDistance,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble_GetDistance(self, *_args, **_kwargs)
return val
def GetDistanceSquare(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble_GetDistanceSquare,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble_GetDistanceSquare(self, *_args, **_kwargs)
return val
def GetDotProduct(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble_GetDotProduct,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble_GetDotProduct(self, *_args, **_kwargs)
return val
def GetCrossProduct(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble_GetCrossProduct,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble_GetCrossProduct(self, *_args, **_kwargs)
return val
def Set(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble_Set,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble_Set(self, *_args, **_kwargs)
return val
def __neg__(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble___neg__,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble___neg__(self, *_args, **_kwargs)
if val: val = wxPoint2DDoublePtr(val) ; val.thisown = 1
return val
def __iadd__(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble___iadd__,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble___iadd__(self, *_args, **_kwargs)
if val: val = wxPoint2DDoublePtr(val)
return val
def __isub__(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble___isub__,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble___isub__(self, *_args, **_kwargs)
if val: val = wxPoint2DDoublePtr(val)
return val
def __imul__(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble___imul__,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble___imul__(self, *_args, **_kwargs)
if val: val = wxPoint2DDoublePtr(val)
return val
def __idiv__(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble___idiv__,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble___idiv__(self, *_args, **_kwargs)
if val: val = wxPoint2DDoublePtr(val)
return val
def __eq__(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble___eq__,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble___eq__(self, *_args, **_kwargs)
return val
def __ne__(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble___ne__,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble___ne__(self, *_args, **_kwargs)
return val
def asTuple(self, *_args, **_kwargs):
- val = apply(miscc.wxPoint2DDouble_asTuple,(self,) + _args, _kwargs)
+ val = miscc.wxPoint2DDouble_asTuple(self, *_args, **_kwargs)
return val
def __setattr__(self,name,value):
if name == "m_x" :
@@ -530,7 +530,7 @@ class wxPoint2DDoublePtr :
return miscc.wxPoint2DDouble_y_get(self)
raise AttributeError,name
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxPoint2DDouble instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
def SetPolarCoordinates(self, angle, length):
self.SetVectorLength(length)
@@ -554,18 +554,18 @@ class wxPoint2DDoublePtr :
class wxPoint2DDouble(wxPoint2DDoublePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(miscc.new_wxPoint2DDouble,_args,_kwargs)
+ self.this = miscc.new_wxPoint2DDouble(*_args,**_kwargs)
self.thisown = 1
def wxPoint2DDoubleCopy(*_args,**_kwargs):
- val = wxPoint2DDoublePtr(apply(miscc.new_wxPoint2DDoubleCopy,_args,_kwargs))
+ val = wxPoint2DDoublePtr(miscc.new_wxPoint2DDoubleCopy(*_args,**_kwargs))
val.thisown = 1
return val
def wxPoint2DDoubleFromPoint(*_args,**_kwargs):
- val = wxPoint2DDoublePtr(apply(miscc.new_wxPoint2DDoubleFromPoint,_args,_kwargs))
+ val = wxPoint2DDoublePtr(miscc.new_wxPoint2DDoubleFromPoint(*_args,**_kwargs))
val.thisown = 1
return val
@@ -575,37 +575,37 @@ class wxIndividualLayoutConstraintPtr(wxObjectPtr):
self.this = this
self.thisown = 0
def Above(self, *_args, **_kwargs):
- val = apply(miscc.wxIndividualLayoutConstraint_Above,(self,) + _args, _kwargs)
+ val = miscc.wxIndividualLayoutConstraint_Above(self, *_args, **_kwargs)
return val
def Absolute(self, *_args, **_kwargs):
- val = apply(miscc.wxIndividualLayoutConstraint_Absolute,(self,) + _args, _kwargs)
+ val = miscc.wxIndividualLayoutConstraint_Absolute(self, *_args, **_kwargs)
return val
def AsIs(self, *_args, **_kwargs):
- val = apply(miscc.wxIndividualLayoutConstraint_AsIs,(self,) + _args, _kwargs)
+ val = miscc.wxIndividualLayoutConstraint_AsIs(self, *_args, **_kwargs)
return val
def Below(self, *_args, **_kwargs):
- val = apply(miscc.wxIndividualLayoutConstraint_Below,(self,) + _args, _kwargs)
+ val = miscc.wxIndividualLayoutConstraint_Below(self, *_args, **_kwargs)
return val
def Unconstrained(self, *_args, **_kwargs):
- val = apply(miscc.wxIndividualLayoutConstraint_Unconstrained,(self,) + _args, _kwargs)
+ val = miscc.wxIndividualLayoutConstraint_Unconstrained(self, *_args, **_kwargs)
return val
def LeftOf(self, *_args, **_kwargs):
- val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self,) + _args, _kwargs)
+ val = miscc.wxIndividualLayoutConstraint_LeftOf(self, *_args, **_kwargs)
return val
def PercentOf(self, *_args, **_kwargs):
- val = apply(miscc.wxIndividualLayoutConstraint_PercentOf,(self,) + _args, _kwargs)
+ val = miscc.wxIndividualLayoutConstraint_PercentOf(self, *_args, **_kwargs)
return val
def RightOf(self, *_args, **_kwargs):
- val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self,) + _args, _kwargs)
+ val = miscc.wxIndividualLayoutConstraint_RightOf(self, *_args, **_kwargs)
return val
def SameAs(self, *_args, **_kwargs):
- val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self,) + _args, _kwargs)
+ val = miscc.wxIndividualLayoutConstraint_SameAs(self, *_args, **_kwargs)
return val
def Set(self, *_args, **_kwargs):
- val = apply(miscc.wxIndividualLayoutConstraint_Set,(self,) + _args, _kwargs)
+ val = miscc.wxIndividualLayoutConstraint_Set(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
def __init__(self,this):
self.this = this
@@ -662,10 +662,10 @@ class wxLayoutConstraintsPtr(wxObjectPtr):
return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self))
raise AttributeError,name
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxLayoutConstraints instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxLayoutConstraints(wxLayoutConstraintsPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(miscc.new_wxLayoutConstraints,_args,_kwargs)
+ self.this = miscc.new_wxLayoutConstraints(*_args,**_kwargs)
self.thisown = 1
@@ -682,22 +682,22 @@ class wxAcceleratorEntryPtr :
except:
pass
def Set(self, *_args, **_kwargs):
- val = apply(miscc.wxAcceleratorEntry_Set,(self,) + _args, _kwargs)
+ val = miscc.wxAcceleratorEntry_Set(self, *_args, **_kwargs)
return val
def GetFlags(self, *_args, **_kwargs):
- val = apply(miscc.wxAcceleratorEntry_GetFlags,(self,) + _args, _kwargs)
+ val = miscc.wxAcceleratorEntry_GetFlags(self, *_args, **_kwargs)
return val
def GetKeyCode(self, *_args, **_kwargs):
- val = apply(miscc.wxAcceleratorEntry_GetKeyCode,(self,) + _args, _kwargs)
+ val = miscc.wxAcceleratorEntry_GetKeyCode(self, *_args, **_kwargs)
return val
def GetCommand(self, *_args, **_kwargs):
- val = apply(miscc.wxAcceleratorEntry_GetCommand,(self,) + _args, _kwargs)
+ val = miscc.wxAcceleratorEntry_GetCommand(self, *_args, **_kwargs)
return val
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxAcceleratorEntry instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxAcceleratorEntry(wxAcceleratorEntryPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(miscc.new_wxAcceleratorEntry,_args,_kwargs)
+ self.this = miscc.new_wxAcceleratorEntry(*_args,**_kwargs)
self.thisown = 1
@@ -714,10 +714,10 @@ class wxAcceleratorTablePtr(wxObjectPtr):
except:
pass
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxAcceleratorTable instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxAcceleratorTable(wxAcceleratorTablePtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(miscc.new_wxAcceleratorTable,_args,_kwargs)
+ self.this = miscc.new_wxAcceleratorTable(*_args,**_kwargs)
self.thisown = 1
@@ -734,10 +734,10 @@ class wxBusyInfoPtr(wxObjectPtr):
except:
pass
def __repr__(self):
- return "" % (self.this,)
+ return "<%s.%s instance; proxy of C++ wxBusyInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
class wxBusyInfo(wxBusyInfoPtr):
def __init__(self,*_args,**_kwargs):
- self.this = apply(miscc.new_wxBusyInfo,_args,_kwargs)
+ self.this = miscc.new_wxBusyInfo(*_args,**_kwargs)
self.thisown = 1
@@ -806,7 +806,7 @@ wxGetUserHome = miscc.wxGetUserHome
wxGetProcessId = miscc.wxGetProcessId
def wxGetAccelFromString(*_args, **_kwargs):
- val = apply(miscc.wxGetAccelFromString,_args,_kwargs)
+ val = miscc.wxGetAccelFromString(*_args,**_kwargs)
if val: val = wxAcceleratorEntryPtr(val)
return val
diff --git a/wxPython/src/gtk/misc2.cpp b/wxPython/src/gtk/misc2.cpp
index 38f5b9d4e9..c5ca113c0a 100644
--- a/wxPython/src/gtk/misc2.cpp
+++ b/wxPython/src/gtk/misc2.cpp
@@ -4275,6 +4275,7 @@ static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObje
#define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1))
static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
+ bool _result;
wxPyTimer * _arg0;
int _arg1 = (int ) -1;
int _arg2 = (int ) FALSE;
@@ -4293,12 +4294,11 @@ static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxPyTimer_Start(_arg0,_arg1,_arg2);
+ _result = (bool )wxPyTimer_Start(_arg0,_arg1,_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
+} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
diff --git a/wxPython/src/gtk/misc2.py b/wxPython/src/gtk/misc2.py
index bf1634563b..376b6d6adf 100644
--- a/wxPython/src/gtk/misc2.py
+++ b/wxPython/src/gtk/misc2.py
@@ -64,7 +64,7 @@ class wxSystemSettingsPtr :
self.this = this
self.thisown = 0
def __repr__(self):
- return "