reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1707,6 +1707,14 @@ class TextCtrl(_core.Control):
|
||||
"""SetValue(self, String value)"""
|
||||
return _controls_.TextCtrl_SetValue(*args, **kwargs)
|
||||
|
||||
def IsEmpty(*args, **kwargs):
|
||||
"""IsEmpty(self) -> bool"""
|
||||
return _controls_.TextCtrl_IsEmpty(*args, **kwargs)
|
||||
|
||||
def ChangeValue(*args, **kwargs):
|
||||
"""ChangeValue(self, String value)"""
|
||||
return _controls_.TextCtrl_ChangeValue(*args, **kwargs)
|
||||
|
||||
def GetRange(*args, **kwargs):
|
||||
"""GetRange(self, long from, long to) -> String"""
|
||||
return _controls_.TextCtrl_GetRange(*args, **kwargs)
|
||||
@@ -1915,6 +1923,10 @@ class TextCtrl(_core.Control):
|
||||
"""SetEditable(self, bool editable)"""
|
||||
return _controls_.TextCtrl_SetEditable(*args, **kwargs)
|
||||
|
||||
def SendTextUpdatedEvent(*args, **kwargs):
|
||||
"""SendTextUpdatedEvent(self)"""
|
||||
return _controls_.TextCtrl_SendTextUpdatedEvent(*args, **kwargs)
|
||||
|
||||
def write(*args, **kwargs):
|
||||
"""write(self, String text)"""
|
||||
return _controls_.TextCtrl_write(*args, **kwargs)
|
||||
@@ -2947,6 +2959,10 @@ class BookCtrlBase(_core.Control):
|
||||
"""SetSelection(self, size_t n) -> int"""
|
||||
return _controls_.BookCtrlBase_SetSelection(*args, **kwargs)
|
||||
|
||||
def ChangeSelection(*args, **kwargs):
|
||||
"""ChangeSelection(self, size_t n) -> int"""
|
||||
return _controls_.BookCtrlBase_ChangeSelection(*args, **kwargs)
|
||||
|
||||
def AdvanceSelection(*args, **kwargs):
|
||||
"""AdvanceSelection(self, bool forward=True)"""
|
||||
return _controls_.BookCtrlBase_AdvanceSelection(*args, **kwargs)
|
||||
@@ -3111,6 +3127,14 @@ class Notebook(BookCtrlBase):
|
||||
return _controls_.Notebook_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
|
||||
def SendPageChangingEvent(*args, **kwargs):
|
||||
"""SendPageChangingEvent(self, int nPage) -> bool"""
|
||||
return _controls_.Notebook_SendPageChangingEvent(*args, **kwargs)
|
||||
|
||||
def SendPageChangedEvent(*args, **kwargs):
|
||||
"""SendPageChangedEvent(self, int nPageOld, int nPageNew=-1)"""
|
||||
return _controls_.Notebook_SendPageChangedEvent(*args, **kwargs)
|
||||
|
||||
RowCount = property(GetRowCount,doc="See `GetRowCount`")
|
||||
ThemeBackgroundColour = property(GetThemeBackgroundColour,doc="See `GetThemeBackgroundColour`")
|
||||
_controls_.Notebook_swigregister(Notebook)
|
||||
@@ -4111,9 +4135,8 @@ class ListItemAttr(object):
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
val = _controls_.ListItemAttr_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _controls_.ListItemAttr_Destroy(*args, **kwargs)
|
||||
|
||||
BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`")
|
||||
Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`")
|
||||
@@ -4999,9 +5022,8 @@ class TreeItemData(object):
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
val = _controls_.TreeItemData_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _controls_.TreeItemData_Destroy(*args, **kwargs)
|
||||
|
||||
Data = property(GetData,SetData,doc="See `GetData` and `SetData`")
|
||||
Id = property(GetId,SetId,doc="See `GetId` and `SetId`")
|
||||
@@ -6172,9 +6194,8 @@ class HelpProvider(object):
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
val = _controls_.HelpProvider_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _controls_.HelpProvider_Destroy(*args, **kwargs)
|
||||
|
||||
_controls_.HelpProvider_swigregister(HelpProvider)
|
||||
|
||||
|
@@ -11308,13 +11308,7 @@ SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyOb
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = PyList_New(0);
|
||||
size_t idx;
|
||||
for (idx = 0; idx < result->GetCount(); idx += 1) {
|
||||
PyObject* val = PyInt_FromLong( result->Item(idx) );
|
||||
PyList_Append(resultobj, val);
|
||||
Py_DECREF(val);
|
||||
}
|
||||
resultobj = wxArrayInt2PyList_helper(*result);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -11889,6 +11883,81 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
|
||||
bool result;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
PyObject *swig_obj[1] ;
|
||||
|
||||
if (!args) SWIG_fail;
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
|
||||
wxString *arg2 = 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
bool temp2 = false ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "value", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
|
||||
{
|
||||
arg2 = wxString_in_helper(obj1);
|
||||
if (arg2 == NULL) SWIG_fail;
|
||||
temp2 = true;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->ChangeValue((wxString const &)*arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
{
|
||||
if (temp2)
|
||||
delete arg2;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp2)
|
||||
delete arg2;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
|
||||
@@ -13734,6 +13803,33 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
PyObject *swig_obj[1] ;
|
||||
|
||||
if (!args) SWIG_fail;
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SendTextUpdatedEvent();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
|
||||
@@ -20076,6 +20172,45 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
|
||||
size_t arg2 ;
|
||||
int result;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
size_t val2 ;
|
||||
int ecode2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "n", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
|
||||
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
||||
if (!SWIG_IsOK(ecode2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
|
||||
}
|
||||
arg2 = static_cast< size_t >(val2);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (int)(arg1)->ChangeSelection(arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_From_int(static_cast< int >(result));
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
|
||||
@@ -20785,6 +20920,96 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxNotebook *arg1 = (wxNotebook *) 0 ;
|
||||
int arg2 ;
|
||||
bool result;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int val2 ;
|
||||
int ecode2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "nPage", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxNotebook * >(argp1);
|
||||
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
||||
if (!SWIG_IsOK(ecode2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
|
||||
}
|
||||
arg2 = static_cast< int >(val2);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)(arg1)->SendPageChangingEvent(arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxNotebook *arg1 = (wxNotebook *) 0 ;
|
||||
int arg2 ;
|
||||
int arg3 = (int) -1 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int val2 ;
|
||||
int ecode2 = 0 ;
|
||||
int val3 ;
|
||||
int ecode3 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxNotebook * >(argp1);
|
||||
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
||||
if (!SWIG_IsOK(ecode2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
|
||||
}
|
||||
arg2 = static_cast< int >(val2);
|
||||
if (obj2) {
|
||||
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
||||
if (!SWIG_IsOK(ecode3)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
|
||||
}
|
||||
arg3 = static_cast< int >(val3);
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SendPageChangedEvent(arg2,arg3);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *obj;
|
||||
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
||||
@@ -45334,6 +45559,8 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
|
||||
{ (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
|
||||
{ (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -45382,6 +45609,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
|
||||
{ (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
|
||||
{ (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -45532,6 +45760,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -45551,6 +45780,8 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
|
||||
{ (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
|
||||
{ (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
@@ -705,9 +705,8 @@ class Object(object):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
val = _core_.Object_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _core_.Object_Destroy(*args, **kwargs)
|
||||
|
||||
ClassName = property(GetClassName,doc="See `GetClassName`")
|
||||
_core_.Object_swigregister(Object)
|
||||
@@ -1501,6 +1500,8 @@ class Point2D(object):
|
||||
Create a w.Point2D object.
|
||||
"""
|
||||
_core_.Point2D_swiginit(self,_core_.new_Point2D(*args, **kwargs))
|
||||
__swig_destroy__ = _core_.delete_Point2D
|
||||
__del__ = lambda self : None;
|
||||
def GetFloor(*args, **kwargs):
|
||||
"""
|
||||
GetFloor() -> (x,y)
|
||||
@@ -2319,9 +2320,8 @@ class Image(Object):
|
||||
|
||||
Destroys the image data.
|
||||
"""
|
||||
val = _core_.Image_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _core_.Image_Destroy(*args, **kwargs)
|
||||
|
||||
def Scale(*args, **kwargs):
|
||||
"""
|
||||
@@ -2649,14 +2649,15 @@ class Image(Object):
|
||||
"""
|
||||
return _core_.Image_LoadMimeStream(*args, **kwargs)
|
||||
|
||||
def Ok(*args, **kwargs):
|
||||
def IsOk(*args, **kwargs):
|
||||
"""
|
||||
Ok(self) -> bool
|
||||
IsOk(self) -> bool
|
||||
|
||||
Returns true if image data is present.
|
||||
"""
|
||||
return _core_.Image_Ok(*args, **kwargs)
|
||||
return _core_.Image_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
def GetWidth(*args, **kwargs):
|
||||
"""
|
||||
GetWidth(self) -> int
|
||||
@@ -3034,7 +3035,7 @@ class Image(Object):
|
||||
return _core_.Image_HSVtoRGB(*args, **kwargs)
|
||||
|
||||
HSVtoRGB = staticmethod(HSVtoRGB)
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
AlphaBuffer = property(GetAlphaBuffer,SetAlphaBuffer,doc="See `GetAlphaBuffer` and `SetAlphaBuffer`")
|
||||
AlphaData = property(GetAlphaData,SetAlphaData,doc="See `GetAlphaData` and `SetAlphaData`")
|
||||
Data = property(GetData,SetData,doc="See `GetData` and `SetData`")
|
||||
@@ -3480,6 +3481,18 @@ class EvtHandler(Object):
|
||||
"""ProcessPendingEvents(self)"""
|
||||
return _core_.EvtHandler_ProcessPendingEvents(*args, **kwargs)
|
||||
|
||||
def AllowReentrance(*args, **kwargs):
|
||||
"""AllowReentrance(self, bool allow=True)"""
|
||||
return _core_.EvtHandler_AllowReentrance(*args, **kwargs)
|
||||
|
||||
def IsReentranceAllowed(*args, **kwargs):
|
||||
"""IsReentranceAllowed(self) -> bool"""
|
||||
return _core_.EvtHandler_IsReentranceAllowed(*args, **kwargs)
|
||||
|
||||
def IsEventHandlingInProgress(*args, **kwargs):
|
||||
"""IsEventHandlingInProgress(self) -> bool"""
|
||||
return _core_.EvtHandler_IsEventHandlingInProgress(*args, **kwargs)
|
||||
|
||||
def Connect(*args, **kwargs):
|
||||
"""Connect(self, int id, int lastId, int eventType, PyObject func)"""
|
||||
return _core_.EvtHandler_Connect(*args, **kwargs)
|
||||
@@ -7483,8 +7496,8 @@ in on the main display of your Mac."""
|
||||
destroy(self)
|
||||
|
||||
def Destroy(self):
|
||||
self.this.own(False)
|
||||
wx.PyApp.Destroy(self)
|
||||
self.thisown = 0
|
||||
|
||||
def SetTopWindow(self, frame):
|
||||
"""Set the \"main\" top level window"""
|
||||
@@ -7799,10 +7812,11 @@ class AcceleratorTable(Object):
|
||||
_core_.AcceleratorTable_swiginit(self,_core_.new_AcceleratorTable(*args, **kwargs))
|
||||
__swig_destroy__ = _core_.delete_AcceleratorTable
|
||||
__del__ = lambda self : None;
|
||||
def Ok(*args, **kwargs):
|
||||
"""Ok(self) -> bool"""
|
||||
return _core_.AcceleratorTable_Ok(*args, **kwargs)
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _core_.AcceleratorTable_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
_core_.AcceleratorTable_swigregister(AcceleratorTable)
|
||||
|
||||
|
||||
@@ -7889,9 +7903,8 @@ class Window(EvtHandler):
|
||||
Returns True if the window has either been successfully deleted, or it
|
||||
has been added to the list of windows pending real deletion.
|
||||
"""
|
||||
val = _core_.Window_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _core_.Window_Destroy(*args, **kwargs)
|
||||
|
||||
def DestroyChildren(*args, **kwargs):
|
||||
"""
|
||||
@@ -9239,6 +9252,17 @@ class Window(EvtHandler):
|
||||
"""
|
||||
return _core_.Window_PrepareDC(*args, **kwargs)
|
||||
|
||||
def IsDoubleBuffered(*args, **kwargs):
|
||||
"""
|
||||
IsDoubleBuffered(self) -> bool
|
||||
|
||||
Returns ``True`` if the window contents is double-buffered by the
|
||||
system, i.e. if any drawing done on the window is really done on a
|
||||
temporary backing surface and transferred to the screen all at once
|
||||
later.
|
||||
"""
|
||||
return _core_.Window_IsDoubleBuffered(*args, **kwargs)
|
||||
|
||||
def GetUpdateRegion(*args, **kwargs):
|
||||
"""
|
||||
GetUpdateRegion(self) -> Region
|
||||
@@ -10447,29 +10471,16 @@ class Menu(EvtHandler):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
val = _core_.Menu_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _core_.Menu_Destroy(*args, **kwargs)
|
||||
|
||||
def DestroyId(*args, **kwargs):
|
||||
"""
|
||||
DestroyId(self, int id) -> bool
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
val = _core_.Menu_DestroyId(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
"""DestroyId(self, int id) -> bool"""
|
||||
return _core_.Menu_DestroyId(*args, **kwargs)
|
||||
|
||||
def DestroyItem(*args, **kwargs):
|
||||
"""
|
||||
DestroyItem(self, MenuItem item) -> bool
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
val = _core_.Menu_DestroyItem(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
"""DestroyItem(self, MenuItem item) -> bool"""
|
||||
return _core_.Menu_DestroyItem(*args, **kwargs)
|
||||
|
||||
def GetMenuItemCount(*args, **kwargs):
|
||||
"""GetMenuItemCount(self) -> size_t"""
|
||||
|
@@ -2889,8 +2889,10 @@ static wxPyCoreAPI API = {
|
||||
wxPyInstance_Check,
|
||||
wxPySwigInstance_Check,
|
||||
|
||||
wxPyCheckForApp
|
||||
wxPyCheckForApp,
|
||||
|
||||
wxArrayDouble2PyList_helper,
|
||||
wxPoint2D_LIST_helper
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -8390,6 +8392,34 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_delete_Point2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
PyObject *swig_obj[1] ;
|
||||
|
||||
if (!args) SWIG_fail;
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Point2D" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
delete arg1;
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Point2D_GetFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
||||
@@ -15661,7 +15691,7 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Image_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
SWIGINTERN PyObject *_wrap_Image_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxImage *arg1 = (wxImage *) 0 ;
|
||||
bool result;
|
||||
@@ -15673,12 +15703,12 @@ SWIGINTERN PyObject *_wrap_Image_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *ar
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Ok" "', expected argument " "1"" of type '" "wxImage *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_IsOk" "', expected argument " "1"" of type '" "wxImage *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxImage * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)(arg1)->Ok();
|
||||
result = (bool)(arg1)->IsOk();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
@@ -18672,6 +18702,106 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_EvtHandler_AllowReentrance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
||||
bool arg2 = (bool) true ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
bool val2 ;
|
||||
int ecode2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "allow", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EvtHandler_AllowReentrance",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_AllowReentrance" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
||||
if (obj1) {
|
||||
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
||||
if (!SWIG_IsOK(ecode2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EvtHandler_AllowReentrance" "', expected argument " "2"" of type '" "bool""'");
|
||||
}
|
||||
arg2 = static_cast< bool >(val2);
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->AllowReentrance(arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_EvtHandler_IsReentranceAllowed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
||||
bool result;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
PyObject *swig_obj[1] ;
|
||||
|
||||
if (!args) SWIG_fail;
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_IsReentranceAllowed" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)(arg1)->IsReentranceAllowed();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_EvtHandler_IsEventHandlingInProgress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
||||
bool result;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
PyObject *swig_obj[1] ;
|
||||
|
||||
if (!args) SWIG_fail;
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_IsEventHandlingInProgress" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)(arg1)->IsEventHandlingInProgress();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_EvtHandler_Connect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
||||
@@ -30132,7 +30262,7 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_AcceleratorTable_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
SWIGINTERN PyObject *_wrap_AcceleratorTable_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
|
||||
bool result;
|
||||
@@ -30144,12 +30274,12 @@ SWIGINTERN PyObject *_wrap_AcceleratorTable_Ok(PyObject *SWIGUNUSEDPARM(self), P
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorTable, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorTable_Ok" "', expected argument " "1"" of type '" "wxAcceleratorTable const *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorTable_IsOk" "', expected argument " "1"" of type '" "wxAcceleratorTable const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxAcceleratorTable * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)((wxAcceleratorTable const *)arg1)->Ok();
|
||||
result = (bool)((wxAcceleratorTable const *)arg1)->IsOk();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
@@ -35609,6 +35739,36 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Window_IsDoubleBuffered(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
bool result;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
PyObject *swig_obj[1] ;
|
||||
|
||||
if (!args) SWIG_fail;
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsDoubleBuffered" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)((wxWindow const *)arg1)->IsDoubleBuffered();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Window_GetUpdateRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@@ -49856,13 +50016,7 @@ SWIGINTERN PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *SWIGUNUSEDPARM(
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = PyList_New(0);
|
||||
size_t idx;
|
||||
for (idx = 0; idx < result->GetCount(); idx += 1) {
|
||||
PyObject* val = PyInt_FromLong( result->Item(idx) );
|
||||
PyList_Append(resultobj, val);
|
||||
Py_DECREF(val);
|
||||
}
|
||||
resultobj = wxArrayInt2PyList_helper(*result);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -49895,13 +50049,7 @@ SWIGINTERN PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *SWIGUNUSEDPARM(s
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = PyList_New(0);
|
||||
size_t idx;
|
||||
for (idx = 0; idx < result->GetCount(); idx += 1) {
|
||||
PyObject* val = PyInt_FromLong( result->Item(idx) );
|
||||
PyList_Append(resultobj, val);
|
||||
Py_DECREF(val);
|
||||
}
|
||||
resultobj = wxArrayInt2PyList_helper(*result);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -54268,6 +54416,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_Point2D", (PyCFunction)_wrap_delete_Point2D, METH_O, NULL},
|
||||
{ (char *)"Point2D_GetFloor", (PyCFunction)_wrap_Point2D_GetFloor, METH_O, NULL},
|
||||
{ (char *)"Point2D_GetRounded", (PyCFunction)_wrap_Point2D_GetRounded, METH_O, NULL},
|
||||
{ (char *)"Point2D_GetVectorLength", (PyCFunction)_wrap_Point2D_GetVectorLength, METH_O, NULL},
|
||||
@@ -54462,7 +54611,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Image_Ok", (PyCFunction)_wrap_Image_Ok, METH_O, NULL},
|
||||
{ (char *)"Image_IsOk", (PyCFunction)_wrap_Image_IsOk, METH_O, NULL},
|
||||
{ (char *)"Image_GetWidth", (PyCFunction)_wrap_Image_GetWidth, METH_O, NULL},
|
||||
{ (char *)"Image_GetHeight", (PyCFunction)_wrap_Image_GetHeight, METH_O, NULL},
|
||||
{ (char *)"Image_GetSize", (PyCFunction)_wrap_Image_GetSize, METH_O, NULL},
|
||||
@@ -54556,6 +54705,9 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction)_wrap_EvtHandler_ProcessPendingEvents, METH_O, NULL},
|
||||
{ (char *)"EvtHandler_AllowReentrance", (PyCFunction) _wrap_EvtHandler_AllowReentrance, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"EvtHandler_IsReentranceAllowed", (PyCFunction)_wrap_EvtHandler_IsReentranceAllowed, METH_O, NULL},
|
||||
{ (char *)"EvtHandler_IsEventHandlingInProgress", (PyCFunction)_wrap_EvtHandler_IsEventHandlingInProgress, METH_O, NULL},
|
||||
{ (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -54992,7 +55144,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"AcceleratorEntry_swiginit", AcceleratorEntry_swiginit, METH_VARARGS, NULL},
|
||||
{ (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_AcceleratorTable", (PyCFunction)_wrap_delete_AcceleratorTable, METH_O, NULL},
|
||||
{ (char *)"AcceleratorTable_Ok", (PyCFunction)_wrap_AcceleratorTable_Ok, METH_O, NULL},
|
||||
{ (char *)"AcceleratorTable_IsOk", (PyCFunction)_wrap_AcceleratorTable_IsOk, METH_O, NULL},
|
||||
{ (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"AcceleratorTable_swiginit", AcceleratorTable_swiginit, METH_VARARGS, NULL},
|
||||
{ (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -55146,6 +55298,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Window_IsFrozen", (PyCFunction)_wrap_Window_IsFrozen, METH_O, NULL},
|
||||
{ (char *)"Window_Thaw", (PyCFunction)_wrap_Window_Thaw, METH_O, NULL},
|
||||
{ (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_IsDoubleBuffered", (PyCFunction)_wrap_Window_IsDoubleBuffered, METH_O, NULL},
|
||||
{ (char *)"Window_GetUpdateRegion", (PyCFunction)_wrap_Window_GetUpdateRegion, METH_O, NULL},
|
||||
{ (char *)"Window_GetUpdateClientRect", (PyCFunction)_wrap_Window_GetUpdateClientRect, METH_O, NULL},
|
||||
{ (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
@@ -146,15 +146,16 @@ class Colour(_core.Object):
|
||||
"""
|
||||
return _gdi_.Colour_Alpha(*args, **kwargs)
|
||||
|
||||
def Ok(*args, **kwargs):
|
||||
def IsOk(*args, **kwargs):
|
||||
"""
|
||||
Ok(self) -> bool
|
||||
IsOk(self) -> bool
|
||||
|
||||
Returns True if the colour object is valid (the colour has been
|
||||
initialised with RGB values).
|
||||
"""
|
||||
return _gdi_.Colour_Ok(*args, **kwargs)
|
||||
return _gdi_.Colour_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
def Set(*args, **kwargs):
|
||||
"""
|
||||
Set(self, byte red, byte green, byte blue, byte alpha=ALPHA_OPAQUE)
|
||||
@@ -239,7 +240,9 @@ class Colour(_core.Object):
|
||||
asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
|
||||
def __str__(self): return str(self.Get(True))
|
||||
def __repr__(self): return 'wx.Colour' + str(self.Get(True))
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __len__(self): return len(self.Get())
|
||||
def __getitem__(self, index): return self.Get()[index]
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
__safe_for_unpickling__ = True
|
||||
def __reduce__(self): return (Colour, self.Get(True))
|
||||
|
||||
@@ -291,11 +294,12 @@ class Palette(GDIObject):
|
||||
"""GetColoursCount(self) -> int"""
|
||||
return _gdi_.Palette_GetColoursCount(*args, **kwargs)
|
||||
|
||||
def Ok(*args, **kwargs):
|
||||
"""Ok(self) -> bool"""
|
||||
return _gdi_.Palette_Ok(*args, **kwargs)
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _gdi_.Palette_IsOk(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
Ok = IsOk
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
ColoursCount = property(GetColoursCount,doc="See `GetColoursCount`")
|
||||
_gdi_.Palette_swigregister(Palette)
|
||||
|
||||
@@ -330,10 +334,11 @@ class Pen(GDIObject):
|
||||
"""GetWidth(self) -> int"""
|
||||
return _gdi_.Pen_GetWidth(*args, **kwargs)
|
||||
|
||||
def Ok(*args, **kwargs):
|
||||
"""Ok(self) -> bool"""
|
||||
return _gdi_.Pen_Ok(*args, **kwargs)
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _gdi_.Pen_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
def SetCap(*args, **kwargs):
|
||||
"""SetCap(self, int cap_style)"""
|
||||
return _gdi_.Pen_SetCap(*args, **kwargs)
|
||||
@@ -380,7 +385,7 @@ class Pen(GDIObject):
|
||||
"""__ne__(self, Pen other) -> bool"""
|
||||
return _gdi_.Pen___ne__(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
Cap = property(GetCap,SetCap,doc="See `GetCap` and `SetCap`")
|
||||
Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`")
|
||||
Dashes = property(GetDashes,SetDashes,doc="See `GetDashes` and `SetDashes`")
|
||||
@@ -467,14 +472,15 @@ class Brush(GDIObject):
|
||||
"""
|
||||
return _gdi_.Brush_IsHatch(*args, **kwargs)
|
||||
|
||||
def Ok(*args, **kwargs):
|
||||
def IsOk(*args, **kwargs):
|
||||
"""
|
||||
Ok(self) -> bool
|
||||
IsOk(self) -> bool
|
||||
|
||||
Returns True if the brush is initialised and valid.
|
||||
"""
|
||||
return _gdi_.Brush_Ok(*args, **kwargs)
|
||||
return _gdi_.Brush_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
def MacGetTheme(*args, **kwargs):
|
||||
"""MacGetTheme(self) -> short"""
|
||||
return _gdi_.Brush_MacGetTheme(*args, **kwargs)
|
||||
@@ -483,7 +489,7 @@ class Brush(GDIObject):
|
||||
"""MacSetTheme(self, short macThemeBrush)"""
|
||||
return _gdi_.Brush_MacSetTheme(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`")
|
||||
Stipple = property(GetStipple,SetStipple,doc="See `GetStipple` and `SetStipple`")
|
||||
Style = property(GetStyle,SetStyle,doc="See `GetStyle` and `SetStyle`")
|
||||
@@ -518,10 +524,11 @@ class Bitmap(GDIObject):
|
||||
_gdi_.Bitmap_swiginit(self,_gdi_.new_Bitmap(*args, **kwargs))
|
||||
__swig_destroy__ = _gdi_.delete_Bitmap
|
||||
__del__ = lambda self : None;
|
||||
def Ok(*args, **kwargs):
|
||||
"""Ok(self) -> bool"""
|
||||
return _gdi_.Bitmap_Ok(*args, **kwargs)
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _gdi_.Bitmap_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
def GetWidth(*args, **kwargs):
|
||||
"""
|
||||
GetWidth(self) -> int
|
||||
@@ -664,7 +671,7 @@ class Bitmap(GDIObject):
|
||||
"""
|
||||
return _gdi_.Bitmap_SetSize(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
def __eq__(*args, **kwargs):
|
||||
"""__eq__(self, Bitmap other) -> bool"""
|
||||
return _gdi_.Bitmap___eq__(*args, **kwargs)
|
||||
@@ -1102,10 +1109,11 @@ class Icon(GDIObject):
|
||||
_gdi_.Icon_swiginit(self,_gdi_.new_Icon(*args, **kwargs))
|
||||
__swig_destroy__ = _gdi_.delete_Icon
|
||||
__del__ = lambda self : None;
|
||||
def Ok(*args, **kwargs):
|
||||
"""Ok(self) -> bool"""
|
||||
return _gdi_.Icon_Ok(*args, **kwargs)
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _gdi_.Icon_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
def GetWidth(*args, **kwargs):
|
||||
"""GetWidth(self) -> int"""
|
||||
return _gdi_.Icon_GetWidth(*args, **kwargs)
|
||||
@@ -1134,7 +1142,7 @@ class Icon(GDIObject):
|
||||
"""CopyFromBitmap(self, Bitmap bmp)"""
|
||||
return _gdi_.Icon_CopyFromBitmap(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
Depth = property(GetDepth,SetDepth,doc="See `GetDepth` and `SetDepth`")
|
||||
Height = property(GetHeight,SetHeight,doc="See `GetHeight` and `SetHeight`")
|
||||
Width = property(GetWidth,SetWidth,doc="See `GetWidth` and `SetWidth`")
|
||||
@@ -1173,7 +1181,7 @@ class IconLocation(object):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _gdi_.IconLocation_IsOk(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
def SetFileName(*args, **kwargs):
|
||||
"""SetFileName(self, String filename)"""
|
||||
return _gdi_.IconLocation_SetFileName(*args, **kwargs)
|
||||
@@ -1253,11 +1261,12 @@ class Cursor(GDIObject):
|
||||
_gdi_.Cursor_swiginit(self,_gdi_.new_Cursor(*args, **kwargs))
|
||||
__swig_destroy__ = _gdi_.delete_Cursor
|
||||
__del__ = lambda self : None;
|
||||
def Ok(*args, **kwargs):
|
||||
"""Ok(self) -> bool"""
|
||||
return _gdi_.Cursor_Ok(*args, **kwargs)
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _gdi_.Cursor_IsOk(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
Ok = IsOk
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
_gdi_.Cursor_swigregister(Cursor)
|
||||
|
||||
def StockCursor(*args, **kwargs):
|
||||
@@ -1890,15 +1899,16 @@ class Font(GDIObject):
|
||||
_gdi_.Font_swiginit(self,_gdi_.new_Font(*args, **kwargs))
|
||||
__swig_destroy__ = _gdi_.delete_Font
|
||||
__del__ = lambda self : None;
|
||||
def Ok(*args, **kwargs):
|
||||
def IsOk(*args, **kwargs):
|
||||
"""
|
||||
Ok(self) -> bool
|
||||
IsOk(self) -> bool
|
||||
|
||||
Returns ``True`` if this font was successfully created.
|
||||
"""
|
||||
return _gdi_.Font_Ok(*args, **kwargs)
|
||||
return _gdi_.Font_IsOk(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
Ok = IsOk
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
def __eq__(*args, **kwargs):
|
||||
"""__eq__(self, Font other) -> bool"""
|
||||
return _gdi_.Font___eq__(*args, **kwargs)
|
||||
@@ -3821,14 +3831,15 @@ class DC(_core.Object):
|
||||
"""
|
||||
return _gdi_.DC_GetPPI(*args, **kwargs)
|
||||
|
||||
def Ok(*args, **kwargs):
|
||||
def IsOk(*args, **kwargs):
|
||||
"""
|
||||
Ok(self) -> bool
|
||||
IsOk(self) -> bool
|
||||
|
||||
Returns true if the DC is ok to use.
|
||||
"""
|
||||
return _gdi_.DC_Ok(*args, **kwargs)
|
||||
return _gdi_.DC_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
def GetBackgroundMode(*args, **kwargs):
|
||||
"""
|
||||
GetBackgroundMode(self) -> int
|
||||
@@ -4131,7 +4142,27 @@ class DC(_core.Object):
|
||||
"""
|
||||
return _gdi_.DC_GetBoundingBox(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
def GetLayoutDirection(*args, **kwargs):
|
||||
"""
|
||||
GetLayoutDirection(self) -> int
|
||||
|
||||
Get the layout direction (LTR or RTL)_ for this dc. On platforms
|
||||
where RTL layout is supported, the return value will either be
|
||||
``wx.Layout_LeftToRight`` or ``wx.Layout_RightToLeft``.
|
||||
``wx.Layout_Default`` is returned if layout direction is not
|
||||
supported.
|
||||
"""
|
||||
return _gdi_.DC_GetLayoutDirection(*args, **kwargs)
|
||||
|
||||
def SetLayoutDirection(*args, **kwargs):
|
||||
"""
|
||||
SetLayoutDirection(self, int dir)
|
||||
|
||||
Change the layout direction for this dc.
|
||||
"""
|
||||
return _gdi_.DC_SetLayoutDirection(*args, **kwargs)
|
||||
|
||||
def _DrawPointList(*args, **kwargs):
|
||||
"""_DrawPointList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
|
||||
return _gdi_.DC__DrawPointList(*args, **kwargs)
|
||||
@@ -4346,6 +4377,7 @@ class DC(_core.Object):
|
||||
TextExtent = property(GetTextExtent,doc="See `GetTextExtent`")
|
||||
TextForeground = property(GetTextForeground,SetTextForeground,doc="See `GetTextForeground` and `SetTextForeground`")
|
||||
UserScale = property(GetUserScale,SetUserScale,doc="See `GetUserScale` and `SetUserScale`")
|
||||
LayoutDirection = property(GetLayoutDirection,SetLayoutDirection)
|
||||
_gdi_.DC_swigregister(DC)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
@@ -4410,7 +4442,7 @@ def MemoryDCFromDC(*args, **kwargs):
|
||||
|
||||
BUFFER_VIRTUAL_AREA = _gdi_.BUFFER_VIRTUAL_AREA
|
||||
BUFFER_CLIENT_AREA = _gdi_.BUFFER_CLIENT_AREA
|
||||
class BufferedDC(MemoryDC):
|
||||
class BufferedDC(DC):
|
||||
"""
|
||||
This simple class provides a simple way to avoid flicker: when drawing
|
||||
on it, everything is in fact first drawn on an in-memory buffer (a
|
||||
@@ -4433,6 +4465,7 @@ class BufferedDC(MemoryDC):
|
||||
"""
|
||||
__init__(self, DC dc, Bitmap buffer=NullBitmap, int style=BUFFER_CLIENT_AREA) -> BufferedDC
|
||||
__init__(self, DC dc, Size area, int style=BUFFER_CLIENT_AREA) -> BufferedDC
|
||||
__init__(self, Window win, DC dc, Size area, int style=BUFFER_CLIENT_AREA) -> BufferedDC
|
||||
|
||||
Constructs a buffered DC.
|
||||
"""
|
||||
@@ -4473,8 +4506,6 @@ class BufferedPaintDC(BufferedDC):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
"""
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
||||
__repr__ = _swig_repr
|
||||
@@ -4486,8 +4517,6 @@ class BufferedPaintDC(BufferedDC):
|
||||
provide the bitmap to be used for buffering or let this object create
|
||||
one internally (in the latter case, the size of the client part of the
|
||||
window is automatically used).
|
||||
|
||||
|
||||
"""
|
||||
_gdi_.BufferedPaintDC_swiginit(self,_gdi_.new_BufferedPaintDC(*args, **kwargs))
|
||||
_gdi_.BufferedPaintDC_swigregister(BufferedPaintDC)
|
||||
@@ -4635,6 +4664,21 @@ _gdi_.PaintDC_swigregister(PaintDC)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
if 'wxMac' in wx.PlatformInfo or 'gtk2' in wx.PlatformInfo:
|
||||
_AutoBufferedPaintDCBase = PaintDC
|
||||
else:
|
||||
_AutoBufferedPaintDCBase = BufferedPaintDC
|
||||
|
||||
class AutoBufferedPaintDC(_AutoBufferedPaintDCBase):
|
||||
"""
|
||||
If the current platform double buffers by default then this DC is the
|
||||
same as a plain `wx.PaintDC`, otherwise it is a `wx.BufferedPaintDC`.
|
||||
"""
|
||||
def __init__(self, window):
|
||||
_AutoBufferedPaintDCBase.__init__(self, window)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class MirrorDC(DC):
|
||||
"""
|
||||
wx.MirrorDC is a simple wrapper class which is always associated with a
|
||||
@@ -4729,10 +4773,11 @@ class MetaFile(_core.Object):
|
||||
_gdi_.MetaFile_swiginit(self,_gdi_.new_MetaFile(*args, **kwargs))
|
||||
__swig_destroy__ = _gdi_.delete_MetaFile
|
||||
__del__ = lambda self : None;
|
||||
def Ok(*args, **kwargs):
|
||||
"""Ok(self) -> bool"""
|
||||
return _gdi_.MetaFile_Ok(*args, **kwargs)
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _gdi_.MetaFile_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
def SetClipboard(*args, **kwargs):
|
||||
"""SetClipboard(self, int width=0, int height=0) -> bool"""
|
||||
return _gdi_.MetaFile_SetClipboard(*args, **kwargs)
|
||||
@@ -4749,7 +4794,7 @@ class MetaFile(_core.Object):
|
||||
"""GetHeight(self) -> int"""
|
||||
return _gdi_.MetaFile_GetHeight(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
_gdi_.MetaFile_swigregister(MetaFile)
|
||||
|
||||
class MetaFileDC(DC):
|
||||
@@ -4859,7 +4904,7 @@ class GraphicsPath(object):
|
||||
"""
|
||||
AddCircle(self, Double x, Double y, Double r)
|
||||
|
||||
Appends an ellipsis as a new closed subpath fitting the passed rectangle
|
||||
Appends a circle as a new closed subpath with the given radius.
|
||||
"""
|
||||
return _gdi_.GraphicsPath_AddCircle(*args, **kwargs)
|
||||
|
||||
@@ -4958,22 +5003,20 @@ class GraphicsContext(object):
|
||||
"""DrawPath(self, GraphicsPath path, int fillStyle=WINDING_RULE)"""
|
||||
return _gdi_.GraphicsContext_DrawPath(*args, **kwargs)
|
||||
|
||||
def DrawText(*args):
|
||||
"""
|
||||
DrawText(self, String str, Double x, Double y)
|
||||
DrawText(self, String str, Double x, Double y, Double angle)
|
||||
"""
|
||||
return _gdi_.GraphicsContext_DrawText(*args)
|
||||
def DrawText(*args, **kwargs):
|
||||
"""DrawText(self, String str, Double x, Double y)"""
|
||||
return _gdi_.GraphicsContext_DrawText(*args, **kwargs)
|
||||
|
||||
def DrawRotatedText(*args, **kwargs):
|
||||
"""DrawRotatedText(self, String str, Double x, Double y, Double angle)"""
|
||||
return _gdi_.GraphicsContext_DrawRotatedText(*args, **kwargs)
|
||||
|
||||
def GetTextExtent(*args, **kwargs):
|
||||
"""
|
||||
GetTextExtent(self, String text, Double OUTPUT, Double OUTPUT, Double OUTPUT,
|
||||
Double OUTPUT)
|
||||
"""
|
||||
"""GetTextExtend(self, text) --> (width, height, descent, externalLeading)"""
|
||||
return _gdi_.GraphicsContext_GetTextExtent(*args, **kwargs)
|
||||
|
||||
def GetPartialTextExtents(*args, **kwargs):
|
||||
"""GetPartialTextExtents(self, String text, wxArrayDouble widths)"""
|
||||
"""GetPartialTextExtents(self, text) -> [widths]"""
|
||||
return _gdi_.GraphicsContext_GetPartialTextExtents(*args, **kwargs)
|
||||
|
||||
def DrawBitmap(*args, **kwargs):
|
||||
@@ -4988,15 +5031,16 @@ class GraphicsContext(object):
|
||||
"""StrokeLine(self, Double x1, Double y1, Double x2, Double y2)"""
|
||||
return _gdi_.GraphicsContext_StrokeLine(*args, **kwargs)
|
||||
|
||||
def StrokeLines(*args):
|
||||
"""
|
||||
StrokeLines(self, size_t n, Point2D points)
|
||||
StrokeLines(self, size_t n, Point2D beginPoints, Point2D endPoints)
|
||||
"""
|
||||
return _gdi_.GraphicsContext_StrokeLines(*args)
|
||||
def StrokeLines(*args, **kwargs):
|
||||
"""StrokeLines(self, List points)"""
|
||||
return _gdi_.GraphicsContext_StrokeLines(*args, **kwargs)
|
||||
|
||||
def StrokeDisconnectedLines(*args, **kwargs):
|
||||
"""StrokeDisconnectedLines(self, PyObject beginPoints, PyObject endPoints)"""
|
||||
return _gdi_.GraphicsContext_StrokeDisconnectedLines(*args, **kwargs)
|
||||
|
||||
def DrawLines(*args, **kwargs):
|
||||
"""DrawLines(self, size_t n, Point2D points, int fillStyle=WINDING_RULE)"""
|
||||
"""DrawLines(self, size_t points, int fillStyle=WINDING_RULE)"""
|
||||
return _gdi_.GraphicsContext_DrawLines(*args, **kwargs)
|
||||
|
||||
def DrawRectangle(*args, **kwargs):
|
||||
@@ -5036,6 +5080,40 @@ class GCDC(DC):
|
||||
|
||||
_gdi_.GCDC_swigregister(GCDC)
|
||||
|
||||
class Overlay(object):
|
||||
"""Proxy of C++ Overlay class"""
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__(self) -> Overlay"""
|
||||
_gdi_.Overlay_swiginit(self,_gdi_.new_Overlay(*args, **kwargs))
|
||||
__swig_destroy__ = _gdi_.delete_Overlay
|
||||
__del__ = lambda self : None;
|
||||
def Reset(*args, **kwargs):
|
||||
"""Reset(self)"""
|
||||
return _gdi_.Overlay_Reset(*args, **kwargs)
|
||||
|
||||
_gdi_.Overlay_swigregister(Overlay)
|
||||
|
||||
class DCOverlay(object):
|
||||
"""Proxy of C++ DCOverlay class"""
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
__init__(self, Overlay overlay, WindowDC dc, int x, int y, int width,
|
||||
int height) -> DCOverlay
|
||||
__init__(self, Overlay overlay, WindowDC dc) -> DCOverlay
|
||||
"""
|
||||
_gdi_.DCOverlay_swiginit(self,_gdi_.new_DCOverlay(*args))
|
||||
__swig_destroy__ = _gdi_.delete_DCOverlay
|
||||
__del__ = lambda self : None;
|
||||
def Clear(*args, **kwargs):
|
||||
"""Clear(self)"""
|
||||
return _gdi_.DCOverlay_Clear(*args, **kwargs)
|
||||
|
||||
_gdi_.DCOverlay_swigregister(DCOverlay)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
IMAGELIST_DRAW_NORMAL = _gdi_.IMAGELIST_DRAW_NORMAL
|
||||
|
File diff suppressed because one or more lines are too long
@@ -821,9 +821,8 @@ class Caret(object):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
val = _misc_.Caret_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _misc_.Caret_Destroy(*args, **kwargs)
|
||||
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
@@ -1541,9 +1540,8 @@ class Log(object):
|
||||
TimeStamp = staticmethod(TimeStamp)
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
val = _misc_.Log_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _misc_.Log_Destroy(*args, **kwargs)
|
||||
|
||||
_misc_.Log_swigregister(Log)
|
||||
|
||||
@@ -2726,9 +2724,8 @@ class ArtProvider(object):
|
||||
GetSizeHint = staticmethod(GetSizeHint)
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
val = _misc_.ArtProvider_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _misc_.ArtProvider_Destroy(*args, **kwargs)
|
||||
|
||||
_misc_.ArtProvider_swigregister(ArtProvider)
|
||||
ART_TOOLBAR = cvar.ART_TOOLBAR
|
||||
@@ -3794,8 +3791,9 @@ class DateTime(object):
|
||||
"""IsValid(self) -> bool"""
|
||||
return _misc_.DateTime_IsValid(*args, **kwargs)
|
||||
|
||||
Ok = IsValid
|
||||
def __nonzero__(self): return self.Ok()
|
||||
IsOk = IsValid
|
||||
Ok = IsOk
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
def GetTicks(*args, **kwargs):
|
||||
"""GetTicks(self) -> time_t"""
|
||||
return _misc_.DateTime_GetTicks(*args, **kwargs)
|
||||
@@ -6229,5 +6227,413 @@ def GetBatteryState(*args):
|
||||
return approximate battery state
|
||||
"""
|
||||
return _misc_.GetBatteryState(*args)
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class AboutDialogInfo(object):
|
||||
"""
|
||||
`wx.AboutDialogInfo contains information shown in the standard About
|
||||
dialog displayed by the `wx.AboutBox` function. This class contains
|
||||
the general information about the program, such as its name, version,
|
||||
copyright and so on, as well as lists of the program developers,
|
||||
documentation writers, artists and translators.
|
||||
|
||||
While all the main platforms have a native implementation of the about
|
||||
dialog, they are often more limited than the generic version provided
|
||||
by wxWidgets and so the generic version is used if
|
||||
`wx.AboutDialogInfo` has any fields not supported by the native
|
||||
version. Currently GTK+ version supports all the possible fields
|
||||
natively but MSW and Mac versions don't support URLs, licence text nor
|
||||
custom icons in the about dialog and if either of those is used,
|
||||
wxAboutBox() will automatically use the generic version so you should
|
||||
avoid specifying these fields to achieve more native look and feel.
|
||||
|
||||
"""
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self) -> AboutDialogInfo
|
||||
|
||||
`wx.AboutDialogInfo contains information shown in the standard About
|
||||
dialog displayed by the `wx.AboutBox` function. This class contains
|
||||
the general information about the program, such as its name, version,
|
||||
copyright and so on, as well as lists of the program developers,
|
||||
documentation writers, artists and translators.
|
||||
|
||||
While all the main platforms have a native implementation of the about
|
||||
dialog, they are often more limited than the generic version provided
|
||||
by wxWidgets and so the generic version is used if
|
||||
`wx.AboutDialogInfo` has any fields not supported by the native
|
||||
version. Currently GTK+ version supports all the possible fields
|
||||
natively but MSW and Mac versions don't support URLs, licence text nor
|
||||
custom icons in the about dialog and if either of those is used,
|
||||
wxAboutBox() will automatically use the generic version so you should
|
||||
avoid specifying these fields to achieve more native look and feel.
|
||||
|
||||
"""
|
||||
_misc_.AboutDialogInfo_swiginit(self,_misc_.new_AboutDialogInfo(*args, **kwargs))
|
||||
__swig_destroy__ = _misc_.delete_AboutDialogInfo
|
||||
__del__ = lambda self : None;
|
||||
def SetName(*args, **kwargs):
|
||||
"""
|
||||
SetName(self, String name)
|
||||
|
||||
Set the name of the program. If this method is not called, the string
|
||||
returned by `wx.App.GetAppName` will be shown in the dialog.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_SetName(*args, **kwargs)
|
||||
|
||||
def GetName(*args, **kwargs):
|
||||
"""
|
||||
GetName(self) -> String
|
||||
|
||||
Returns the program name.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_GetName(*args, **kwargs)
|
||||
|
||||
Name = property(GetName,SetName)
|
||||
def SetVersion(*args, **kwargs):
|
||||
"""
|
||||
SetVersion(self, String version)
|
||||
|
||||
Set the version of the program. The version is in free format,
|
||||
i.e. not necessarily in the x.y.z form but it shouldn't contain the
|
||||
"version" word.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_SetVersion(*args, **kwargs)
|
||||
|
||||
def HasVersion(*args, **kwargs):
|
||||
"""
|
||||
HasVersion(self) -> bool
|
||||
|
||||
Returns ``True`` if the version property has been set.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_HasVersion(*args, **kwargs)
|
||||
|
||||
def GetVersion(*args, **kwargs):
|
||||
"""
|
||||
GetVersion(self) -> String
|
||||
|
||||
Returns the version value.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_GetVersion(*args, **kwargs)
|
||||
|
||||
Version = property(GetVersion,SetVersion)
|
||||
def SetDescription(*args, **kwargs):
|
||||
"""
|
||||
SetDescription(self, String desc)
|
||||
|
||||
Set brief, but possibly multiline, description of the program.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_SetDescription(*args, **kwargs)
|
||||
|
||||
def HasDescription(*args, **kwargs):
|
||||
"""
|
||||
HasDescription(self) -> bool
|
||||
|
||||
Returns ``True`` if the description property has been set.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_HasDescription(*args, **kwargs)
|
||||
|
||||
def GetDescription(*args, **kwargs):
|
||||
"""
|
||||
GetDescription(self) -> String
|
||||
|
||||
Returns the description value.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_GetDescription(*args, **kwargs)
|
||||
|
||||
Description = property(GetDescription,SetDescription)
|
||||
def SetCopyright(*args, **kwargs):
|
||||
"""
|
||||
SetCopyright(self, String copyright)
|
||||
|
||||
Set the short string containing the program copyright
|
||||
information. Notice that any occurrences of "(C)" in ``copyright``
|
||||
will be replaced by the copyright symbol (circled C) automatically,
|
||||
which means that you can avoid using this symbol in the program source
|
||||
code which can be problematic.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_SetCopyright(*args, **kwargs)
|
||||
|
||||
def HasCopyright(*args, **kwargs):
|
||||
"""
|
||||
HasCopyright(self) -> bool
|
||||
|
||||
Returns ``True`` if the copyright property has been set.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_HasCopyright(*args, **kwargs)
|
||||
|
||||
def GetCopyright(*args, **kwargs):
|
||||
"""
|
||||
GetCopyright(self) -> String
|
||||
|
||||
Returns the copyright value.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_GetCopyright(*args, **kwargs)
|
||||
|
||||
Copyright = property(GetCopyright,SetCopyright)
|
||||
def SetLicence(*args, **kwargs):
|
||||
"""
|
||||
SetLicence(self, String licence)
|
||||
|
||||
Set the long, multiline string containing the text of the program
|
||||
licence.
|
||||
|
||||
Only GTK+ version supports showing the licence text in the native
|
||||
about dialog currently so the generic version will be used under all
|
||||
the other platforms if this method is called. To preserve the native
|
||||
look and feel it is advised that you do not call this method but
|
||||
provide a separate menu item in the "Help" menu for displaying the
|
||||
text of your program licence.
|
||||
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_SetLicence(*args, **kwargs)
|
||||
|
||||
def SetLicense(*args, **kwargs):
|
||||
"""
|
||||
SetLicense(self, String licence)
|
||||
|
||||
This is the same as `SetLicence`.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_SetLicense(*args, **kwargs)
|
||||
|
||||
def HasLicence(*args, **kwargs):
|
||||
"""
|
||||
HasLicence(self) -> bool
|
||||
|
||||
Returns ``True`` if the licence property has been set.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_HasLicence(*args, **kwargs)
|
||||
|
||||
def GetLicence(*args, **kwargs):
|
||||
"""
|
||||
GetLicence(self) -> String
|
||||
|
||||
Returns the licence value.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_GetLicence(*args, **kwargs)
|
||||
|
||||
Licence = property(GetLicence,SetLicence)
|
||||
License = Licence
|
||||
def SetIcon(*args, **kwargs):
|
||||
"""
|
||||
SetIcon(self, Icon icon)
|
||||
|
||||
Set the icon to be shown in the dialog. By default the icon of the
|
||||
main frame will be shown if the native about dialog supports custom
|
||||
icons. If it doesn't but a valid icon is specified using this method,
|
||||
the generic about dialog is used instead so you should avoid calling
|
||||
this function for maximally native look and feel.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_SetIcon(*args, **kwargs)
|
||||
|
||||
def HasIcon(*args, **kwargs):
|
||||
"""
|
||||
HasIcon(self) -> bool
|
||||
|
||||
Returns ``True`` if the icon property has been set.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_HasIcon(*args, **kwargs)
|
||||
|
||||
def GetIcon(*args, **kwargs):
|
||||
"""
|
||||
GetIcon(self) -> Icon
|
||||
|
||||
Return the current icon value.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_GetIcon(*args, **kwargs)
|
||||
|
||||
Icon = property(GetIcon,SetIcon)
|
||||
def _SetWebSite(*args, **kwargs):
|
||||
"""_SetWebSite(self, String url, String desc=wxEmptyString)"""
|
||||
return _misc_.AboutDialogInfo__SetWebSite(*args, **kwargs)
|
||||
|
||||
def _GetWebSiteURL(*args, **kwargs):
|
||||
"""_GetWebSiteURL(self) -> String"""
|
||||
return _misc_.AboutDialogInfo__GetWebSiteURL(*args, **kwargs)
|
||||
|
||||
def _GetWebSiteDescription(*args, **kwargs):
|
||||
"""_GetWebSiteDescription(self) -> String"""
|
||||
return _misc_.AboutDialogInfo__GetWebSiteDescription(*args, **kwargs)
|
||||
|
||||
def HasWebSite(*args, **kwargs):
|
||||
"""HasWebSite(self) -> bool"""
|
||||
return _misc_.AboutDialogInfo_HasWebSite(*args, **kwargs)
|
||||
|
||||
def SetWebSite(self, args):
|
||||
"""
|
||||
SetWebSite(self, URL, [Description])
|
||||
|
||||
Set the web site property. The ``args`` parameter can
|
||||
either be a single string for the URL, to a 2-tuple of
|
||||
(URL, Description) strings.
|
||||
"""
|
||||
if type(args) in [str, unicode]:
|
||||
self._SetWebSite(args)
|
||||
else:
|
||||
self._SetWebSite(args[0], args[1])
|
||||
|
||||
def GetWebSite(self):
|
||||
"""
|
||||
GetWebSite(self) --> (URL, Description)
|
||||
"""
|
||||
return (self._GetWebSiteURL(), self._GetWebSiteDescription())
|
||||
|
||||
WebSite = property(GetWebSite,SetWebSite)
|
||||
def SetDevelopers(*args, **kwargs):
|
||||
"""
|
||||
SetDevelopers(self, list developers)
|
||||
|
||||
Set the list of the developers of the program.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_SetDevelopers(*args, **kwargs)
|
||||
|
||||
def AddDeveloper(*args, **kwargs):
|
||||
"""
|
||||
AddDeveloper(self, String developer)
|
||||
|
||||
Add a string to the list of developers.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_AddDeveloper(*args, **kwargs)
|
||||
|
||||
def HasDevelopers(*args, **kwargs):
|
||||
"""
|
||||
HasDevelopers(self) -> bool
|
||||
|
||||
Returns ``True if any developers have been set.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_HasDevelopers(*args, **kwargs)
|
||||
|
||||
def GetDevelopers(*args, **kwargs):
|
||||
"""
|
||||
GetDevelopers(self) --> list
|
||||
|
||||
Returns the list of developers.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_GetDevelopers(*args, **kwargs)
|
||||
|
||||
Developers = property(GetDevelopers,SetDevelopers)
|
||||
def SetDocWriters(*args, **kwargs):
|
||||
"""
|
||||
SetDocWriters(self, list docwriters)
|
||||
|
||||
Set the list of the documentation writers.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_SetDocWriters(*args, **kwargs)
|
||||
|
||||
def AddDocWriter(*args, **kwargs):
|
||||
"""
|
||||
AddDocWriter(self, String docwriter)
|
||||
|
||||
Add a string to the list of documentation writers.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_AddDocWriter(*args, **kwargs)
|
||||
|
||||
def HasDocWriters(*args, **kwargs):
|
||||
"""
|
||||
HasDocWriters(self) -> bool
|
||||
|
||||
Returns ``True if any documentation writers have been set.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_HasDocWriters(*args, **kwargs)
|
||||
|
||||
def GetDocWriters(*args, **kwargs):
|
||||
"""
|
||||
GetDocWriters(self) --> list
|
||||
|
||||
Returns the list of documentation writers.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_GetDocWriters(*args, **kwargs)
|
||||
|
||||
DocWriters = property(GetDocWriters,SetDocWriters)
|
||||
def SetArtists(*args, **kwargs):
|
||||
"""
|
||||
SetArtists(self, list artists)
|
||||
|
||||
Set the list of artists for the program.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_SetArtists(*args, **kwargs)
|
||||
|
||||
def AddArtist(*args, **kwargs):
|
||||
"""
|
||||
AddArtist(self, String artist)
|
||||
|
||||
Add a string to the list of artists.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_AddArtist(*args, **kwargs)
|
||||
|
||||
def HasArtists(*args, **kwargs):
|
||||
"""
|
||||
HasArtists(self) -> bool
|
||||
|
||||
Returns ``True`` if any artists have been set.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_HasArtists(*args, **kwargs)
|
||||
|
||||
def GetArtists(*args, **kwargs):
|
||||
"""
|
||||
GetArtists(self) --> list
|
||||
|
||||
Returns the list od artists.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_GetArtists(*args, **kwargs)
|
||||
|
||||
Artists = property(GetArtists,SetArtists)
|
||||
def SetTranslators(*args, **kwargs):
|
||||
"""
|
||||
SetTranslators(self, list translators)
|
||||
|
||||
Sets the list of program translators.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_SetTranslators(*args, **kwargs)
|
||||
|
||||
def AddTranslator(*args, **kwargs):
|
||||
"""
|
||||
AddTranslator(self, String translator)
|
||||
|
||||
Add a string to the list of translators.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_AddTranslator(*args, **kwargs)
|
||||
|
||||
def HasTranslators(*args, **kwargs):
|
||||
"""
|
||||
HasTranslators(self) -> bool
|
||||
|
||||
Returns ``True`` if any translators have been set.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_HasTranslators(*args, **kwargs)
|
||||
|
||||
def GetTranslators(*args, **kwargs):
|
||||
"""
|
||||
GetTranslators(self) --> list
|
||||
|
||||
Returns the list of program translators.
|
||||
"""
|
||||
return _misc_.AboutDialogInfo_GetTranslators(*args, **kwargs)
|
||||
|
||||
Translators = property(GetTranslators,SetTranslators)
|
||||
def IsSimple(*args, **kwargs):
|
||||
"""IsSimple(self) -> bool"""
|
||||
return _misc_.AboutDialogInfo_IsSimple(*args, **kwargs)
|
||||
|
||||
def GetDescriptionAndCredits(*args, **kwargs):
|
||||
"""GetDescriptionAndCredits(self) -> String"""
|
||||
return _misc_.AboutDialogInfo_GetDescriptionAndCredits(*args, **kwargs)
|
||||
|
||||
_misc_.AboutDialogInfo_swigregister(AboutDialogInfo)
|
||||
|
||||
|
||||
def AboutBox(*args, **kwargs):
|
||||
"""
|
||||
AboutBox(AboutDialogInfo info)
|
||||
|
||||
This function shows the standard about dialog containing the
|
||||
information specified in ``info``. If the current platform has a
|
||||
native about dialog which is capable of showing all the fields in
|
||||
``info``, the native dialog is used, otherwise the function falls back
|
||||
to the generic wxWidgets version of the dialog.
|
||||
"""
|
||||
return _misc_.AboutBox(*args, **kwargs)
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -679,9 +679,16 @@ class Dialog(TopLevelWindow):
|
||||
"""CreateTextSizer(self, String message) -> Sizer"""
|
||||
return _windows_.Dialog_CreateTextSizer(*args, **kwargs)
|
||||
|
||||
def CreateButtonSizer(*args, **kwargs):
|
||||
"""CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
|
||||
return _windows_.Dialog_CreateButtonSizer(*args, **kwargs)
|
||||
def _CreateButtonSizer(*args, **kwargs):
|
||||
"""_CreateButtonSizer(self, long flags) -> Sizer"""
|
||||
return _windows_.Dialog__CreateButtonSizer(*args, **kwargs)
|
||||
|
||||
def CreateButtonSizer(self, flags, *ignored):
|
||||
return self._CreateButtonSizer(flags)
|
||||
|
||||
def CreateSeparatedButtonSizer(*args, **kwargs):
|
||||
"""CreateSeparatedButtonSizer(self, long flags) -> Sizer"""
|
||||
return _windows_.Dialog_CreateSeparatedButtonSizer(*args, **kwargs)
|
||||
|
||||
def CreateStdDialogButtonSizer(*args, **kwargs):
|
||||
"""CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
|
||||
@@ -2071,9 +2078,8 @@ class TaskBarIcon(_core.EvtHandler):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
val = _windows_.TaskBarIcon_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _windows_.TaskBarIcon_Destroy(*args, **kwargs)
|
||||
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
@@ -3832,10 +3838,11 @@ class PrintData(_core.Object):
|
||||
"""GetOrientation(self) -> int"""
|
||||
return _windows_.PrintData_GetOrientation(*args, **kwargs)
|
||||
|
||||
def Ok(*args, **kwargs):
|
||||
"""Ok(self) -> bool"""
|
||||
return _windows_.PrintData_Ok(*args, **kwargs)
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _windows_.PrintData_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
def GetPrinterName(*args, **kwargs):
|
||||
"""GetPrinterName(self) -> String"""
|
||||
return _windows_.PrintData_GetPrinterName(*args, **kwargs)
|
||||
@@ -3920,7 +3927,7 @@ class PrintData(_core.Object):
|
||||
"""SetFilename(self, String filename)"""
|
||||
return _windows_.PrintData_SetFilename(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
def GetPrivData(*args, **kwargs):
|
||||
"""GetPrivData(self) -> PyObject"""
|
||||
return _windows_.PrintData_GetPrivData(*args, **kwargs)
|
||||
@@ -4035,10 +4042,11 @@ class PageSetupDialogData(_core.Object):
|
||||
"""GetPrintData(self) -> PrintData"""
|
||||
return _windows_.PageSetupDialogData_GetPrintData(*args, **kwargs)
|
||||
|
||||
def Ok(*args, **kwargs):
|
||||
"""Ok(self) -> bool"""
|
||||
return _windows_.PageSetupDialogData_Ok(*args, **kwargs)
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _windows_.PageSetupDialogData_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
def SetDefaultInfo(*args, **kwargs):
|
||||
"""SetDefaultInfo(self, bool flag)"""
|
||||
return _windows_.PageSetupDialogData_SetDefaultInfo(*args, **kwargs)
|
||||
@@ -4083,7 +4091,7 @@ class PageSetupDialogData(_core.Object):
|
||||
"""CalculatePaperSizeFromId(self)"""
|
||||
return _windows_.PageSetupDialogData_CalculatePaperSizeFromId(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
DefaultInfo = property(GetDefaultInfo,SetDefaultInfo,doc="See `GetDefaultInfo` and `SetDefaultInfo`")
|
||||
DefaultMinMargins = property(GetDefaultMinMargins,SetDefaultMinMargins,doc="See `GetDefaultMinMargins` and `SetDefaultMinMargins`")
|
||||
MarginBottomRight = property(GetMarginBottomRight,SetMarginBottomRight,doc="See `GetMarginBottomRight` and `SetMarginBottomRight`")
|
||||
@@ -4238,10 +4246,11 @@ class PrintDialogData(_core.Object):
|
||||
"""GetEnableHelp(self) -> bool"""
|
||||
return _windows_.PrintDialogData_GetEnableHelp(*args, **kwargs)
|
||||
|
||||
def Ok(*args, **kwargs):
|
||||
"""Ok(self) -> bool"""
|
||||
return _windows_.PrintDialogData_Ok(*args, **kwargs)
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _windows_.PrintDialogData_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
def GetPrintData(*args, **kwargs):
|
||||
"""GetPrintData(self) -> PrintData"""
|
||||
return _windows_.PrintDialogData_GetPrintData(*args, **kwargs)
|
||||
@@ -4250,7 +4259,7 @@ class PrintDialogData(_core.Object):
|
||||
"""SetPrintData(self, PrintData printData)"""
|
||||
return _windows_.PrintDialogData_SetPrintData(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
AllPages = property(GetAllPages,SetAllPages,doc="See `GetAllPages` and `SetAllPages`")
|
||||
Collate = property(GetCollate,SetCollate,doc="See `GetCollate` and `SetCollate`")
|
||||
FromPage = property(GetFromPage,SetFromPage,doc="See `GetFromPage` and `SetFromPage`")
|
||||
@@ -4676,10 +4685,11 @@ class PrintPreview(_core.Object):
|
||||
"""GetMinPage(self) -> int"""
|
||||
return _windows_.PrintPreview_GetMinPage(*args, **kwargs)
|
||||
|
||||
def Ok(*args, **kwargs):
|
||||
"""Ok(self) -> bool"""
|
||||
return _windows_.PrintPreview_Ok(*args, **kwargs)
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _windows_.PrintPreview_IsOk(*args, **kwargs)
|
||||
|
||||
Ok = IsOk
|
||||
def SetOk(*args, **kwargs):
|
||||
"""SetOk(self, bool ok)"""
|
||||
return _windows_.PrintPreview_SetOk(*args, **kwargs)
|
||||
@@ -4692,7 +4702,7 @@ class PrintPreview(_core.Object):
|
||||
"""DetermineScaling(self)"""
|
||||
return _windows_.PrintPreview_DetermineScaling(*args, **kwargs)
|
||||
|
||||
def __nonzero__(self): return self.Ok()
|
||||
def __nonzero__(self): return self.IsOk()
|
||||
Canvas = property(GetCanvas,SetCanvas,doc="See `GetCanvas` and `SetCanvas`")
|
||||
CurrentPage = property(GetCurrentPage,SetCurrentPage,doc="See `GetCurrentPage` and `SetCurrentPage`")
|
||||
Frame = property(GetFrame,SetFrame,doc="See `GetFrame` and `SetFrame`")
|
||||
|
@@ -7813,57 +7813,76 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
SWIGINTERN PyObject *_wrap_Dialog__CreateButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxDialog *arg1 = (wxDialog *) 0 ;
|
||||
long arg2 ;
|
||||
bool arg3 = (bool) false ;
|
||||
int arg4 = (int) 0 ;
|
||||
wxSizer *result = 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
long val2 ;
|
||||
int ecode2 = 0 ;
|
||||
bool val3 ;
|
||||
int ecode3 = 0 ;
|
||||
int val4 ;
|
||||
int ecode4 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
PyObject * obj3 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "flags",(char *) "separated",(char *) "distance", NULL
|
||||
(char *) "self",(char *) "flags", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog__CreateButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog__CreateButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxDialog * >(argp1);
|
||||
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
||||
if (!SWIG_IsOK(ecode2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "2"" of type '" "long""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog__CreateButtonSizer" "', expected argument " "2"" of type '" "long""'");
|
||||
}
|
||||
arg2 = static_cast< long >(val2);
|
||||
if (obj2) {
|
||||
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
||||
if (!SWIG_IsOK(ecode3)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "3"" of type '" "bool""'");
|
||||
}
|
||||
arg3 = static_cast< bool >(val3);
|
||||
}
|
||||
if (obj3) {
|
||||
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
||||
if (!SWIG_IsOK(ecode4)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "4"" of type '" "int""'");
|
||||
}
|
||||
arg4 = static_cast< int >(val4);
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxSizer *)(arg1)->CreateButtonSizer(arg2,arg3,arg4);
|
||||
result = (wxSizer *)(arg1)->CreateButtonSizer(arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Dialog_CreateSeparatedButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxDialog *arg1 = (wxDialog *) 0 ;
|
||||
long arg2 ;
|
||||
wxSizer *result = 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
long val2 ;
|
||||
int ecode2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "flags", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateSeparatedButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateSeparatedButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxDialog * >(argp1);
|
||||
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
||||
if (!SWIG_IsOK(ecode2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateSeparatedButtonSizer" "', expected argument " "2"" of type '" "long""'");
|
||||
}
|
||||
arg2 = static_cast< long >(val2);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxSizer *)(arg1)->CreateSeparatedButtonSizer(arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
@@ -23653,7 +23672,7 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_PrintData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
SWIGINTERN PyObject *_wrap_PrintData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxPrintData *arg1 = (wxPrintData *) 0 ;
|
||||
bool result;
|
||||
@@ -23665,12 +23684,12 @@ SWIGINTERN PyObject *_wrap_PrintData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_Ok" "', expected argument " "1"" of type '" "wxPrintData *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_IsOk" "', expected argument " "1"" of type '" "wxPrintData *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxPrintData * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)(arg1)->Ok();
|
||||
result = (bool)(arg1)->IsOk();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
@@ -25227,7 +25246,7 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_PageSetupDialogData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
SWIGINTERN PyObject *_wrap_PageSetupDialogData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ;
|
||||
bool result;
|
||||
@@ -25239,12 +25258,12 @@ SWIGINTERN PyObject *_wrap_PageSetupDialogData_Ok(PyObject *SWIGUNUSEDPARM(self)
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_Ok" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_IsOk" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)(arg1)->Ok();
|
||||
result = (bool)(arg1)->IsOk();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
@@ -26836,7 +26855,7 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_PrintDialogData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
SWIGINTERN PyObject *_wrap_PrintDialogData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ;
|
||||
bool result;
|
||||
@@ -26848,12 +26867,12 @@ SWIGINTERN PyObject *_wrap_PrintDialogData_Ok(PyObject *SWIGUNUSEDPARM(self), Py
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_Ok" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_IsOk" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxPrintDialogData * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)((wxPrintDialogData const *)arg1)->Ok();
|
||||
result = (bool)((wxPrintDialogData const *)arg1)->IsOk();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
@@ -29923,7 +29942,7 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_PrintPreview_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
SWIGINTERN PyObject *_wrap_PrintPreview_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxPrintPreview *arg1 = (wxPrintPreview *) 0 ;
|
||||
bool result;
|
||||
@@ -29935,12 +29954,12 @@ SWIGINTERN PyObject *_wrap_PrintPreview_Ok(PyObject *SWIGUNUSEDPARM(self), PyObj
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_Ok" "', expected argument " "1"" of type '" "wxPrintPreview *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_IsOk" "', expected argument " "1"" of type '" "wxPrintPreview *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxPrintPreview * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)(arg1)->Ok();
|
||||
result = (bool)(arg1)->IsOk();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
@@ -30876,7 +30895,8 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Dialog_SetEscapeId", (PyCFunction) _wrap_Dialog_SetEscapeId, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Dialog_GetEscapeId", (PyCFunction)_wrap_Dialog_GetEscapeId, METH_O, NULL},
|
||||
{ (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Dialog__CreateButtonSizer", (PyCFunction) _wrap_Dialog__CreateButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Dialog_CreateSeparatedButtonSizer", (PyCFunction) _wrap_Dialog_CreateSeparatedButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Dialog_CreateStdDialogButtonSizer", (PyCFunction) _wrap_Dialog_CreateStdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Dialog_IsModal", (PyCFunction)_wrap_Dialog_IsModal, METH_O, NULL},
|
||||
{ (char *)"Dialog_ShowModal", (PyCFunction)_wrap_Dialog_ShowModal, METH_O, NULL},
|
||||
@@ -31315,7 +31335,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"PrintData_GetNoCopies", (PyCFunction)_wrap_PrintData_GetNoCopies, METH_O, NULL},
|
||||
{ (char *)"PrintData_GetCollate", (PyCFunction)_wrap_PrintData_GetCollate, METH_O, NULL},
|
||||
{ (char *)"PrintData_GetOrientation", (PyCFunction)_wrap_PrintData_GetOrientation, METH_O, NULL},
|
||||
{ (char *)"PrintData_Ok", (PyCFunction)_wrap_PrintData_Ok, METH_O, NULL},
|
||||
{ (char *)"PrintData_IsOk", (PyCFunction)_wrap_PrintData_IsOk, METH_O, NULL},
|
||||
{ (char *)"PrintData_GetPrinterName", (PyCFunction)_wrap_PrintData_GetPrinterName, METH_O, NULL},
|
||||
{ (char *)"PrintData_GetColour", (PyCFunction)_wrap_PrintData_GetColour, METH_O, NULL},
|
||||
{ (char *)"PrintData_GetDuplex", (PyCFunction)_wrap_PrintData_GetDuplex, METH_O, NULL},
|
||||
@@ -31362,7 +31382,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"PageSetupDialogData_GetPaperId", (PyCFunction)_wrap_PageSetupDialogData_GetPaperId, METH_O, NULL},
|
||||
{ (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction)_wrap_PageSetupDialogData_GetPaperSize, METH_O, NULL},
|
||||
{ (char *)"PageSetupDialogData_GetPrintData", (PyCFunction)_wrap_PageSetupDialogData_GetPrintData, METH_O, NULL},
|
||||
{ (char *)"PageSetupDialogData_Ok", (PyCFunction)_wrap_PageSetupDialogData_Ok, METH_O, NULL},
|
||||
{ (char *)"PageSetupDialogData_IsOk", (PyCFunction)_wrap_PageSetupDialogData_IsOk, METH_O, NULL},
|
||||
{ (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -31411,7 +31431,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"PrintDialogData_GetEnableSelection", (PyCFunction)_wrap_PrintDialogData_GetEnableSelection, METH_O, NULL},
|
||||
{ (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction)_wrap_PrintDialogData_GetEnablePageNumbers, METH_O, NULL},
|
||||
{ (char *)"PrintDialogData_GetEnableHelp", (PyCFunction)_wrap_PrintDialogData_GetEnableHelp, METH_O, NULL},
|
||||
{ (char *)"PrintDialogData_Ok", (PyCFunction)_wrap_PrintDialogData_Ok, METH_O, NULL},
|
||||
{ (char *)"PrintDialogData_IsOk", (PyCFunction)_wrap_PrintDialogData_IsOk, METH_O, NULL},
|
||||
{ (char *)"PrintDialogData_GetPrintData", (PyCFunction)_wrap_PrintDialogData_GetPrintData, METH_O, NULL},
|
||||
{ (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS, NULL},
|
||||
@@ -31502,7 +31522,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"PrintPreview_GetZoom", (PyCFunction)_wrap_PrintPreview_GetZoom, METH_O, NULL},
|
||||
{ (char *)"PrintPreview_GetMaxPage", (PyCFunction)_wrap_PrintPreview_GetMaxPage, METH_O, NULL},
|
||||
{ (char *)"PrintPreview_GetMinPage", (PyCFunction)_wrap_PrintPreview_GetMinPage, METH_O, NULL},
|
||||
{ (char *)"PrintPreview_Ok", (PyCFunction)_wrap_PrintPreview_Ok, METH_O, NULL},
|
||||
{ (char *)"PrintPreview_IsOk", (PyCFunction)_wrap_PrintPreview_IsOk, METH_O, NULL},
|
||||
{ (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"PrintPreview_DetermineScaling", (PyCFunction)_wrap_PrintPreview_DetermineScaling, METH_O, NULL},
|
||||
|
234
wxPython/src/mac/animate.py
Normal file
234
wxPython/src/mac/animate.py
Normal file
@@ -0,0 +1,234 @@
|
||||
# This file was created automatically by SWIG 1.3.29.
|
||||
# Don't modify this file, modify the SWIG interface instead.
|
||||
|
||||
"""
|
||||
Simple animation player classes, including `GIFAnimationCtrl` for displaying
|
||||
animated GIF files
|
||||
|
||||
"""
|
||||
|
||||
import _animate
|
||||
import new
|
||||
new_instancemethod = new.instancemethod
|
||||
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
|
||||
if (name == "thisown"): return self.this.own(value)
|
||||
if (name == "this"):
|
||||
if type(value).__name__ == 'PySwigObject':
|
||||
self.__dict__[name] = value
|
||||
return
|
||||
method = class_type.__swig_setmethods__.get(name,None)
|
||||
if method: return method(self,value)
|
||||
if (not static) or hasattr(self,name):
|
||||
self.__dict__[name] = value
|
||||
else:
|
||||
raise AttributeError("You cannot add attributes to %s" % self)
|
||||
|
||||
def _swig_setattr(self,class_type,name,value):
|
||||
return _swig_setattr_nondynamic(self,class_type,name,value,0)
|
||||
|
||||
def _swig_getattr(self,class_type,name):
|
||||
if (name == "thisown"): return self.this.own()
|
||||
method = class_type.__swig_getmethods__.get(name,None)
|
||||
if method: return method(self)
|
||||
raise AttributeError,name
|
||||
|
||||
def _swig_repr(self):
|
||||
try: strthis = "proxy of " + self.this.__repr__()
|
||||
except: strthis = ""
|
||||
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
||||
|
||||
import types
|
||||
try:
|
||||
_object = types.ObjectType
|
||||
_newclass = 1
|
||||
except AttributeError:
|
||||
class _object : pass
|
||||
_newclass = 0
|
||||
del types
|
||||
|
||||
|
||||
def _swig_setattr_nondynamic_method(set):
|
||||
def set_attr(self,name,value):
|
||||
if (name == "thisown"): return self.this.own(value)
|
||||
if hasattr(self,name) or (name == "this"):
|
||||
set(self,name,value)
|
||||
else:
|
||||
raise AttributeError("You cannot add attributes to %s" % self)
|
||||
return set_attr
|
||||
|
||||
|
||||
import _core
|
||||
import wx
|
||||
__docfilter__ = wx._core.__DocFilter(globals())
|
||||
ANIM_UNSPECIFIED = _animate.ANIM_UNSPECIFIED
|
||||
ANIM_DONOTREMOVE = _animate.ANIM_DONOTREMOVE
|
||||
ANIM_TOBACKGROUND = _animate.ANIM_TOBACKGROUND
|
||||
ANIM_TOPREVIOUS = _animate.ANIM_TOPREVIOUS
|
||||
ANIMATION_TYPE_INVALID = _animate.ANIMATION_TYPE_INVALID
|
||||
ANIMATION_TYPE_GIF = _animate.ANIMATION_TYPE_GIF
|
||||
ANIMATION_TYPE_ANI = _animate.ANIMATION_TYPE_ANI
|
||||
ANIMATION_TYPE_ANY = _animate.ANIMATION_TYPE_ANY
|
||||
class AnimationBase(_core.Object):
|
||||
"""Proxy of C++ AnimationBase class"""
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
||||
def __init__(self): raise AttributeError, "No constructor defined"
|
||||
__repr__ = _swig_repr
|
||||
__swig_destroy__ = _animate.delete_AnimationBase
|
||||
__del__ = lambda self : None;
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
return _animate.AnimationBase_IsOk(*args, **kwargs)
|
||||
|
||||
def GetDelay(*args, **kwargs):
|
||||
"""GetDelay(self, size_t i) -> int"""
|
||||
return _animate.AnimationBase_GetDelay(*args, **kwargs)
|
||||
|
||||
def GetFrameCount(*args, **kwargs):
|
||||
"""GetFrameCount(self) -> size_t"""
|
||||
return _animate.AnimationBase_GetFrameCount(*args, **kwargs)
|
||||
|
||||
def GetFrame(*args, **kwargs):
|
||||
"""GetFrame(self, size_t i) -> Image"""
|
||||
return _animate.AnimationBase_GetFrame(*args, **kwargs)
|
||||
|
||||
def GetSize(*args, **kwargs):
|
||||
"""GetSize(self) -> Size"""
|
||||
return _animate.AnimationBase_GetSize(*args, **kwargs)
|
||||
|
||||
def LoadFile(*args, **kwargs):
|
||||
"""LoadFile(self, String name, int type=ANIMATION_TYPE_ANY) -> bool"""
|
||||
return _animate.AnimationBase_LoadFile(*args, **kwargs)
|
||||
|
||||
def Load(*args, **kwargs):
|
||||
"""Load(self, InputStream stream, int type=ANIMATION_TYPE_ANY) -> bool"""
|
||||
return _animate.AnimationBase_Load(*args, **kwargs)
|
||||
|
||||
_animate.AnimationBase_swigregister(AnimationBase)
|
||||
cvar = _animate.cvar
|
||||
AnimationCtrlNameStr = cvar.AnimationCtrlNameStr
|
||||
|
||||
class Animation(AnimationBase):
|
||||
"""Proxy of C++ Animation class"""
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
__init__(self) -> Animation
|
||||
__init__(self, String name, int type=ANIMATION_TYPE_ANY) -> Animation
|
||||
"""
|
||||
_animate.Animation_swiginit(self,_animate.new_Animation(*args))
|
||||
__swig_destroy__ = _animate.delete_Animation
|
||||
__del__ = lambda self : None;
|
||||
def GetFramePosition(*args, **kwargs):
|
||||
"""GetFramePosition(self, size_t frame) -> Point"""
|
||||
return _animate.Animation_GetFramePosition(*args, **kwargs)
|
||||
|
||||
def GetDisposalMethod(*args, **kwargs):
|
||||
"""GetDisposalMethod(self, size_t frame) -> int"""
|
||||
return _animate.Animation_GetDisposalMethod(*args, **kwargs)
|
||||
|
||||
def GetBackgroundColour(*args, **kwargs):
|
||||
"""GetBackgroundColour(self) -> Colour"""
|
||||
return _animate.Animation_GetBackgroundColour(*args, **kwargs)
|
||||
|
||||
_animate.Animation_swigregister(Animation)
|
||||
|
||||
AC_NO_AUTORESIZE = _animate.AC_NO_AUTORESIZE
|
||||
AC_DEFAULT_STYLE = _animate.AC_DEFAULT_STYLE
|
||||
AN_FIT_ANIMATION = _animate.AN_FIT_ANIMATION
|
||||
class AnimationCtrlBase(_core.Control):
|
||||
"""Proxy of C++ AnimationCtrlBase class"""
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
||||
def __init__(self): raise AttributeError, "No constructor defined"
|
||||
__repr__ = _swig_repr
|
||||
def LoadFile(*args, **kwargs):
|
||||
"""LoadFile(self, String filename, int type=ANIMATION_TYPE_ANY) -> bool"""
|
||||
return _animate.AnimationCtrlBase_LoadFile(*args, **kwargs)
|
||||
|
||||
def SetAnimation(*args, **kwargs):
|
||||
"""SetAnimation(self, Animation anim)"""
|
||||
return _animate.AnimationCtrlBase_SetAnimation(*args, **kwargs)
|
||||
|
||||
def GetAnimation(*args, **kwargs):
|
||||
"""GetAnimation(self) -> Animation"""
|
||||
return _animate.AnimationCtrlBase_GetAnimation(*args, **kwargs)
|
||||
|
||||
Animation = property(GetAnimation,SetAnimation)
|
||||
def Play(*args, **kwargs):
|
||||
"""Play(self) -> bool"""
|
||||
return _animate.AnimationCtrlBase_Play(*args, **kwargs)
|
||||
|
||||
def Stop(*args, **kwargs):
|
||||
"""Stop(self)"""
|
||||
return _animate.AnimationCtrlBase_Stop(*args, **kwargs)
|
||||
|
||||
def IsPlaying(*args, **kwargs):
|
||||
"""IsPlaying(self) -> bool"""
|
||||
return _animate.AnimationCtrlBase_IsPlaying(*args, **kwargs)
|
||||
|
||||
_animate.AnimationCtrlBase_swigregister(AnimationCtrlBase)
|
||||
NullAnimation = cvar.NullAnimation
|
||||
|
||||
class AnimationCtrl(AnimationCtrlBase):
|
||||
"""Proxy of C++ AnimationCtrl class"""
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, Window parent, int id=-1, Animation anim=NullAnimation,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=AC_DEFAULT_STYLE, String name=AnimationCtrlNameStr) -> AnimationCtrl
|
||||
"""
|
||||
_animate.AnimationCtrl_swiginit(self,_animate.new_AnimationCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id, Animation anim=NullAnimation,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=AC_DEFAULT_STYLE, String name=AnimationCtrlNameStr) -> bool
|
||||
"""
|
||||
return _animate.AnimationCtrl_Create(*args, **kwargs)
|
||||
|
||||
def SetUseWindowBackgroundColour(*args, **kwargs):
|
||||
"""SetUseWindowBackgroundColour(self, bool useWinBackground=True)"""
|
||||
return _animate.AnimationCtrl_SetUseWindowBackgroundColour(*args, **kwargs)
|
||||
|
||||
def IsUsingWindowBackgroundColour(*args, **kwargs):
|
||||
"""IsUsingWindowBackgroundColour(self) -> bool"""
|
||||
return _animate.AnimationCtrl_IsUsingWindowBackgroundColour(*args, **kwargs)
|
||||
|
||||
def DrawCurrentFrame(*args, **kwargs):
|
||||
"""DrawCurrentFrame(self, DC dc)"""
|
||||
return _animate.AnimationCtrl_DrawCurrentFrame(*args, **kwargs)
|
||||
|
||||
def GetBackingStore(*args, **kwargs):
|
||||
"""GetBackingStore(self) -> Bitmap"""
|
||||
return _animate.AnimationCtrl_GetBackingStore(*args, **kwargs)
|
||||
|
||||
_animate.AnimationCtrl_swigregister(AnimationCtrl)
|
||||
|
||||
def PreAnimationCtrl(*args, **kwargs):
|
||||
"""PreAnimationCtrl() -> AnimationCtrl"""
|
||||
val = _animate.new_PreAnimationCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
class GIFAnimationCtrl(AnimationCtrl):
|
||||
"""
|
||||
Backwards compatibility class for AnimationCtrl.
|
||||
"""
|
||||
def __init__(self, parent, id=-1, filename="",
|
||||
pos=wx.DefaultPosition, size=wx.DefaultSize,
|
||||
style=AC_DEFAULT_STYLE,
|
||||
name="gifAnimation"):
|
||||
AnimationCtrl.__init__(self, parent, id, NullAnimation, pos, size, style, name)
|
||||
self.LoadFile(filename)
|
||||
|
||||
def GetPlayer(self):
|
||||
return self
|
||||
|
||||
def UseBackgroundColour(self, useBackground=True):
|
||||
self.SetUseWindowBackgroundColour(useBackground)
|
||||
|
||||
|
||||
|
5247
wxPython/src/mac/animate_wrap.cpp
Normal file
5247
wxPython/src/mac/animate_wrap.cpp
Normal file
File diff suppressed because one or more lines are too long
@@ -322,9 +322,8 @@ class GridCellEditor(GridCellWorker):
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
val = _grid.GridCellEditor_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _grid.GridCellEditor_Destroy(*args, **kwargs)
|
||||
|
||||
CellAttr = property(GetCellAttr,SetCellAttr,doc="See `GetCellAttr` and `SetCellAttr`")
|
||||
Control = property(GetControl,SetControl,doc="See `GetControl` and `SetControl`")
|
||||
@@ -900,9 +899,8 @@ class PyGridTableBase(GridTableBase):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
val = _grid.PyGridTableBase_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
args[0].this.own(False)
|
||||
return _grid.PyGridTableBase_Destroy(*args, **kwargs)
|
||||
|
||||
def base_GetTypeName(*args, **kw):
|
||||
return PyGridTableBase.GetTypeName(*args, **kw)
|
||||
|
@@ -81,6 +81,11 @@ RICHTEXT_HITTEST_AFTER = _richtext.RICHTEXT_HITTEST_AFTER
|
||||
RICHTEXT_HITTEST_ON = _richtext.RICHTEXT_HITTEST_ON
|
||||
RICHTEXT_FORMATTED = _richtext.RICHTEXT_FORMATTED
|
||||
RICHTEXT_UNFORMATTED = _richtext.RICHTEXT_UNFORMATTED
|
||||
RICHTEXT_SETSTYLE_NONE = _richtext.RICHTEXT_SETSTYLE_NONE
|
||||
RICHTEXT_SETSTYLE_WITH_UNDO = _richtext.RICHTEXT_SETSTYLE_WITH_UNDO
|
||||
RICHTEXT_SETSTYLE_OPTIMIZE = _richtext.RICHTEXT_SETSTYLE_OPTIMIZE
|
||||
RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY = _richtext.RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY
|
||||
RICHTEXT_SETSTYLE_CHARACTERS_ONLY = _richtext.RICHTEXT_SETSTYLE_CHARACTERS_ONLY
|
||||
RICHTEXT_INSERT_NONE = _richtext.RICHTEXT_INSERT_NONE
|
||||
RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE = _richtext.RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE
|
||||
TEXT_ATTR_TEXT_COLOUR = _richtext.TEXT_ATTR_TEXT_COLOUR
|
||||
@@ -367,6 +372,10 @@ class RichTextAttr(object):
|
||||
"""SetBulletSymbol(self, wxChar symbol)"""
|
||||
return _richtext.RichTextAttr_SetBulletSymbol(*args, **kwargs)
|
||||
|
||||
def SetBulletFont(*args, **kwargs):
|
||||
"""SetBulletFont(self, String bulletFont)"""
|
||||
return _richtext.RichTextAttr_SetBulletFont(*args, **kwargs)
|
||||
|
||||
def GetTextColour(*args, **kwargs):
|
||||
"""GetTextColour(self) -> Colour"""
|
||||
return _richtext.RichTextAttr_GetTextColour(*args, **kwargs)
|
||||
@@ -451,6 +460,10 @@ class RichTextAttr(object):
|
||||
"""GetBulletSymbol(self) -> wxChar"""
|
||||
return _richtext.RichTextAttr_GetBulletSymbol(*args, **kwargs)
|
||||
|
||||
def GetBulletFont(*args, **kwargs):
|
||||
"""GetBulletFont(self) -> String"""
|
||||
return _richtext.RichTextAttr_GetBulletFont(*args, **kwargs)
|
||||
|
||||
def HasTextColour(*args, **kwargs):
|
||||
"""HasTextColour(self) -> bool"""
|
||||
return _richtext.RichTextAttr_HasTextColour(*args, **kwargs)
|
||||
@@ -549,6 +562,7 @@ class RichTextAttr(object):
|
||||
|
||||
Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`")
|
||||
BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`")
|
||||
BulletFont = property(GetBulletFont,SetBulletFont,doc="See `GetBulletFont` and `SetBulletFont`")
|
||||
BulletNumber = property(GetBulletNumber,SetBulletNumber,doc="See `GetBulletNumber` and `SetBulletNumber`")
|
||||
BulletStyle = property(GetBulletStyle,SetBulletStyle,doc="See `GetBulletStyle` and `SetBulletStyle`")
|
||||
BulletSymbol = property(GetBulletSymbol,SetBulletSymbol,doc="See `GetBulletSymbol` and `SetBulletSymbol`")
|
||||
@@ -758,6 +772,16 @@ class RichTextCtrl(_windows.ScrolledWindow):
|
||||
"""
|
||||
return _richtext.RichTextCtrl_SetStyle(*args, **kwargs)
|
||||
|
||||
def SetStyleEx(*args, **kwargs):
|
||||
"""
|
||||
SetStyleEx(self, RichTextRange range, RichTextAttr style, int flags=RICHTEXT_SETSTYLE_WITH_UNDO) -> bool
|
||||
|
||||
Extended style setting operation with flags including:
|
||||
RICHTEXT_SETSTYLE_WITH_UNDO, RICHTEXT_SETSTYLE_OPTIMIZE,
|
||||
RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY, RICHTEXT_SETSTYLE_CHARACTERS_ONLY
|
||||
"""
|
||||
return _richtext.RichTextCtrl_SetStyleEx(*args, **kwargs)
|
||||
|
||||
def GetStyle(*args, **kwargs):
|
||||
"""
|
||||
GetStyle(self, long position, RichTextAttr style) -> bool
|
||||
|
@@ -4566,6 +4566,51 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
|
||||
wxString *arg2 = 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
bool temp2 = false ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "bulletFont", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletFont",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletFont" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
|
||||
{
|
||||
arg2 = wxString_in_helper(obj1);
|
||||
if (arg2 == NULL) SWIG_fail;
|
||||
temp2 = true;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetBulletFont((wxString const &)*arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
{
|
||||
if (temp2)
|
||||
delete arg2;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp2)
|
||||
delete arg2;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_RichTextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
|
||||
@@ -4681,13 +4726,7 @@ SWIGINTERN PyObject *_wrap_RichTextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self),
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = PyList_New(0);
|
||||
size_t idx;
|
||||
for (idx = 0; idx < result->GetCount(); idx += 1) {
|
||||
PyObject* val = PyInt_FromLong( result->Item(idx) );
|
||||
PyList_Append(resultobj, val);
|
||||
Py_DECREF(val);
|
||||
}
|
||||
resultobj = wxArrayInt2PyList_helper(*result);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -5200,6 +5239,43 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
|
||||
wxString *result = 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
PyObject *swig_obj[1] ;
|
||||
|
||||
if (!args) SWIG_fail;
|
||||
swig_obj[0] = args;
|
||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
{
|
||||
wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBulletFont();
|
||||
result = (wxString *) &_result_ref;
|
||||
}
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
|
||||
#else
|
||||
resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
|
||||
#endif
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_RichTextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
|
||||
@@ -7237,6 +7313,68 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
|
||||
wxRichTextRange *arg2 = 0 ;
|
||||
wxRichTextAttr *arg3 = 0 ;
|
||||
int arg4 = (int) wxRICHTEXT_SETSTYLE_WITH_UNDO ;
|
||||
bool result;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
wxRichTextRange temp2 ;
|
||||
void *argp3 = 0 ;
|
||||
int res3 = 0 ;
|
||||
int val4 ;
|
||||
int ecode4 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
PyObject * obj3 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "range",(char *) "style",(char *) "flags", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:RichTextCtrl_SetStyleEx",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
|
||||
if (!SWIG_IsOK(res3)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
|
||||
}
|
||||
if (!argp3) {
|
||||
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
|
||||
}
|
||||
arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
|
||||
if (obj3) {
|
||||
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
||||
if (!SWIG_IsOK(ecode4)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "4"" of type '" "int""'");
|
||||
}
|
||||
arg4 = static_cast< int >(val4);
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)(arg1)->SetStyleEx((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3,arg4);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
|
||||
@@ -11778,6 +11916,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"RichTextAttr_SetBulletStyle", (PyCFunction) _wrap_RichTextAttr_SetBulletStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"RichTextAttr_SetBulletNumber", (PyCFunction) _wrap_RichTextAttr_SetBulletNumber, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"RichTextAttr_SetBulletSymbol", (PyCFunction) _wrap_RichTextAttr_SetBulletSymbol, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"RichTextAttr_SetBulletFont", (PyCFunction) _wrap_RichTextAttr_SetBulletFont, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"RichTextAttr_GetTextColour", (PyCFunction)_wrap_RichTextAttr_GetTextColour, METH_O, NULL},
|
||||
{ (char *)"RichTextAttr_GetBackgroundColour", (PyCFunction)_wrap_RichTextAttr_GetBackgroundColour, METH_O, NULL},
|
||||
{ (char *)"RichTextAttr_GetAlignment", (PyCFunction)_wrap_RichTextAttr_GetAlignment, METH_O, NULL},
|
||||
@@ -11799,6 +11938,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"RichTextAttr_GetBulletStyle", (PyCFunction)_wrap_RichTextAttr_GetBulletStyle, METH_O, NULL},
|
||||
{ (char *)"RichTextAttr_GetBulletNumber", (PyCFunction)_wrap_RichTextAttr_GetBulletNumber, METH_O, NULL},
|
||||
{ (char *)"RichTextAttr_GetBulletSymbol", (PyCFunction)_wrap_RichTextAttr_GetBulletSymbol, METH_O, NULL},
|
||||
{ (char *)"RichTextAttr_GetBulletFont", (PyCFunction)_wrap_RichTextAttr_GetBulletFont, METH_O, NULL},
|
||||
{ (char *)"RichTextAttr_HasTextColour", (PyCFunction)_wrap_RichTextAttr_HasTextColour, METH_O, NULL},
|
||||
{ (char *)"RichTextAttr_HasBackgroundColour", (PyCFunction)_wrap_RichTextAttr_HasBackgroundColour, METH_O, NULL},
|
||||
{ (char *)"RichTextAttr_HasAlignment", (PyCFunction)_wrap_RichTextAttr_HasAlignment, METH_O, NULL},
|
||||
@@ -11855,6 +11995,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"RichTextCtrl_WriteText", (PyCFunction) _wrap_RichTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"RichTextCtrl_AppendText", (PyCFunction) _wrap_RichTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"RichTextCtrl_SetStyle", (PyCFunction) _wrap_RichTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"RichTextCtrl_SetStyleEx", (PyCFunction) _wrap_RichTextCtrl_SetStyleEx, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"RichTextCtrl_GetStyle", (PyCFunction) _wrap_RichTextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"RichTextCtrl_GetUncombinedStyle", (PyCFunction) _wrap_RichTextCtrl_GetUncombinedStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"RichTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_RichTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -14102,6 +14243,11 @@ SWIGEXPORT void SWIG_init(void) {
|
||||
SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_ON",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_ON)));
|
||||
SWIG_Python_SetConstant(d, "RICHTEXT_FORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FORMATTED)));
|
||||
SWIG_Python_SetConstant(d, "RICHTEXT_UNFORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_UNFORMATTED)));
|
||||
SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_NONE)));
|
||||
SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_WITH_UNDO",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_WITH_UNDO)));
|
||||
SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_OPTIMIZE",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_OPTIMIZE)));
|
||||
SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_PARAGRAPHS_ONLY)));
|
||||
SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_CHARACTERS_ONLY",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_CHARACTERS_ONLY)));
|
||||
SWIG_Python_SetConstant(d, "RICHTEXT_INSERT_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_INSERT_NONE)));
|
||||
SWIG_Python_SetConstant(d, "RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE",SWIG_From_int(static_cast< int >(wxRICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE)));
|
||||
SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
|
||||
|
Reference in New Issue
Block a user