More changes to make the autodocs be better, made all the namestrings

and such be visible to swig so the autodoc generator knows how to
rename them.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-12-20 01:01:49 +00:00
parent 161c73a392
commit b2dc104421
81 changed files with 1852 additions and 549 deletions

View File

@@ -18,7 +18,6 @@
#include "wx/wxPython/pyclasses.h"
#include <wx/stc/stc.h>
DECLARE_DEF_STRING(STCNameStr);
%}
//---------------------------------------------------------------------------
@@ -26,6 +25,9 @@
%import core.i
%pythoncode { wx = core }
MAKE_CONST_WXSTRING(STCNameStr);
%include _stc_rename.i

View File

@@ -783,7 +783,7 @@ class StyledTextCtrl(core.Control):
def __init__(self, *args, **kwargs):
"""
__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=0, String name=wxPySTCNameStr) -> StyledTextCtrl
long style=0, String name=STCNameStr) -> StyledTextCtrl
"""
newobj = _stc.new_StyledTextCtrl(*args, **kwargs)
self.this = newobj.this
@@ -2162,6 +2162,8 @@ class StyledTextCtrlPtr(StyledTextCtrl):
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = StyledTextCtrl
_stc.StyledTextCtrl_swigregister(StyledTextCtrlPtr)
cvar = _stc.cvar
STCNameStr = cvar.STCNameStr
def PreStyledTextCtrl(*args, **kwargs):
"""PreStyledTextCtrl() -> StyledTextCtrl"""

View File

@@ -245,8 +245,8 @@ static swig_type_info *swig_types[21];
#include "wx/wxPython/pyclasses.h"
#include <wx/stc/stc.h>
DECLARE_DEF_STRING(STCNameStr);
static const wxString wxPySTCNameStr(wxSTCNameStr);
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
PyObject* o2;
@@ -277,6 +277,26 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
#ifdef __cplusplus
extern "C" {
#endif
static int _wrap_STCNameStr_set(PyObject *_val) {
PyErr_SetString(PyExc_TypeError,"Variable STCNameStr is read-only.");
return 1;
}
static PyObject *_wrap_STCNameStr_get() {
PyObject *pyobj;
{
#if wxUSE_UNICODE
pyobj = PyUnicode_FromWideChar((&wxPySTCNameStr)->c_str(), (&wxPySTCNameStr)->Len());
#else
pyobj = PyString_FromStringAndSize((&wxPySTCNameStr)->c_str(), (&wxPySTCNameStr)->Len());
#endif
}
return pyobj;
}
static PyObject *_wrap_new_StyledTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxWindow *arg1 = (wxWindow *) 0 ;
@@ -12712,6 +12732,8 @@ SWIGEXPORT(void) SWIG_init(void) {
}
SWIG_InstallConstants(d,swig_const_table);
PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
SWIG_addvarlink(SWIG_globals,(char*)"STCNameStr",_wrap_STCNameStr_get, _wrap_STCNameStr_set);
}