reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e384095a6c
commit
51b83b3756
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -171,7 +171,6 @@
|
||||
%rename(StopWatch) wxStopWatch;
|
||||
%rename(FileHistory) wxFileHistory;
|
||||
%rename(SingleInstanceChecker) wxSingleInstanceChecker;
|
||||
%rename(DrawWindowOnDC) wxDrawWindowOnDC;
|
||||
%rename(TipProvider) wxTipProvider;
|
||||
%rename(PyTipProvider) wxPyTipProvider;
|
||||
%rename(ShowTip) wxShowTip;
|
||||
|
@ -1888,7 +1888,7 @@ class TextCtrl(_core.Control):
|
||||
|
||||
def HitTest(*args, **kwargs):
|
||||
"""
|
||||
HitTest(Point pt) -> (result, row, col)
|
||||
HitTest(Point pt) -> (result, col, row)
|
||||
|
||||
Find the row, col coresponding to the character at the point given in
|
||||
pixels. NB: pt is in device coords but is not adjusted for the client
|
||||
@ -3030,7 +3030,7 @@ class BookCtrlBasePtr(BookCtrlBase):
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = BookCtrlBase
|
||||
_controls_.BookCtrlBase_swigregister(BookCtrlBasePtr)
|
||||
NOTEBOOK_NAME = cvar.NOTEBOOK_NAME
|
||||
NotebookNameStr = cvar.NotebookNameStr
|
||||
|
||||
def BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
@ -3105,7 +3105,7 @@ class Notebook(BookCtrlBase):
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
|
||||
Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
|
||||
"""
|
||||
newobj = _controls_.new_Notebook(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
@ -3116,7 +3116,7 @@ class Notebook(BookCtrlBase):
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> bool
|
||||
Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
|
||||
"""
|
||||
return _controls_.Notebook_Create(*args, **kwargs)
|
||||
|
||||
|
@ -1772,7 +1772,7 @@ public:
|
||||
};
|
||||
#endif
|
||||
|
||||
static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
|
||||
static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
|
||||
|
||||
SWIGINTERNSHORT PyObject*
|
||||
SWIG_From_unsigned_SS_long(unsigned long value)
|
||||
@ -2193,6 +2193,8 @@ public:
|
||||
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
|
||||
DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -2226,6 +2228,8 @@ IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
|
||||
IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
|
||||
IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
|
||||
|
||||
|
||||
|
||||
static void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
|
||||
@ -16153,20 +16157,20 @@ static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
|
||||
Py_INCREF(obj);
|
||||
return Py_BuildValue((char *)"");
|
||||
}
|
||||
static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
|
||||
static int _wrap_NotebookNameStr_set(PyObject *) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable NotebookNameStr is read-only.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_NOTEBOOK_NAME_get(void) {
|
||||
static PyObject *_wrap_NotebookNameStr_get(void) {
|
||||
PyObject *pyobj;
|
||||
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
|
||||
pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
|
||||
#else
|
||||
pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
|
||||
pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
|
||||
#endif
|
||||
}
|
||||
return pyobj;
|
||||
@ -17135,7 +17139,7 @@ static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs
|
||||
wxSize const &arg4_defvalue = wxDefaultSize ;
|
||||
wxSize *arg4 = (wxSize *) &arg4_defvalue ;
|
||||
long arg5 = (long) 0 ;
|
||||
wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
|
||||
wxString const &arg6_defvalue = wxPyNotebookNameStr ;
|
||||
wxString *arg6 = (wxString *) &arg6_defvalue ;
|
||||
wxNotebook *result;
|
||||
wxPoint temp3 ;
|
||||
@ -17241,7 +17245,7 @@ static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwa
|
||||
wxSize const &arg5_defvalue = wxDefaultSize ;
|
||||
wxSize *arg5 = (wxSize *) &arg5_defvalue ;
|
||||
long arg6 = (long) 0 ;
|
||||
wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
|
||||
wxString const &arg7_defvalue = wxPyNotebookNameStr ;
|
||||
wxString *arg7 = (wxString *) &arg7_defvalue ;
|
||||
bool result;
|
||||
wxPoint temp4 ;
|
||||
@ -37038,7 +37042,7 @@ SWIGEXPORT(void) SWIG_init(void) {
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
|
||||
PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"NotebookNameStr",_wrap_NotebookNameStr_get, _wrap_NotebookNameStr_set);
|
||||
{
|
||||
PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)(wxNB_FIXEDWIDTH)));
|
||||
}
|
||||
|
@ -3276,7 +3276,18 @@ class Event(Object):
|
||||
return _core_.Event_IsCommandEvent(*args, **kwargs)
|
||||
|
||||
def Skip(*args, **kwargs):
|
||||
"""Skip(self, bool skip=True)"""
|
||||
"""
|
||||
Skip(self, bool skip=True)
|
||||
|
||||
Called by an event handler, it controls whether additional event
|
||||
handlers bound to this event will be called after the current event
|
||||
handler returns. Skip(false) (the default setting) will prevent
|
||||
additional event handlers from being called and control will be
|
||||
returned to the sender of the event immediately after the current
|
||||
handler has finished. Skip(True) will cause the event processing
|
||||
system to continue searching for a handler function for this event.
|
||||
|
||||
"""
|
||||
return _core_.Event_Skip(*args, **kwargs)
|
||||
|
||||
def GetSkipped(*args, **kwargs):
|
||||
@ -7341,6 +7352,21 @@ class Window(EvtHandler):
|
||||
"""
|
||||
return _core_.Window_GetBackgroundStyle(*args, **kwargs)
|
||||
|
||||
def HasTransparentBackground(*args, **kwargs):
|
||||
"""
|
||||
HasTransparentBackground(self) -> bool
|
||||
|
||||
Returns True if this window's background is transparent (as, for
|
||||
example, for `wx.StaticText`) and should show the parent window's
|
||||
background.
|
||||
|
||||
This method is mostly used internally by the library itself and you
|
||||
normally shouldn't have to call it. You may, however, have to override
|
||||
it in your custom control classes to ensure that background is painted
|
||||
correctly.
|
||||
"""
|
||||
return _core_.Window_HasTransparentBackground(*args, **kwargs)
|
||||
|
||||
def SetCursor(*args, **kwargs):
|
||||
"""
|
||||
SetCursor(self, Cursor cursor) -> bool
|
||||
@ -9618,7 +9644,7 @@ class Sizer(Object):
|
||||
|
||||
def GetChildren(*args, **kwargs):
|
||||
"""
|
||||
GetChildren(sefl) -> list
|
||||
GetChildren(self) -> list
|
||||
|
||||
Returns a list of all the `wx.SizerItem` objects managed by the sizer.
|
||||
"""
|
||||
@ -10149,6 +10175,18 @@ class StdDialogButtonSizer(BoxSizer):
|
||||
"""
|
||||
return _core_.StdDialogButtonSizer_Finalise(*args, **kwargs)
|
||||
|
||||
def SetAffirmativeButton(*args, **kwargs):
|
||||
"""SetAffirmativeButton(self, wxButton button)"""
|
||||
return _core_.StdDialogButtonSizer_SetAffirmativeButton(*args, **kwargs)
|
||||
|
||||
def SetNegativeButton(*args, **kwargs):
|
||||
"""SetNegativeButton(self, wxButton button)"""
|
||||
return _core_.StdDialogButtonSizer_SetNegativeButton(*args, **kwargs)
|
||||
|
||||
def SetCancelButton(*args, **kwargs):
|
||||
"""SetCancelButton(self, wxButton button)"""
|
||||
return _core_.StdDialogButtonSizer_SetCancelButton(*args, **kwargs)
|
||||
|
||||
def GetAffirmativeButton(*args, **kwargs):
|
||||
"""GetAffirmativeButton(self) -> wxButton"""
|
||||
return _core_.StdDialogButtonSizer_GetAffirmativeButton(*args, **kwargs)
|
||||
|
@ -29177,6 +29177,34 @@ static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyO
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_HasTransparentBackground(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
bool result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasTransparentBackground",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)(arg1)->HasTransparentBackground();
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@ -40109,6 +40137,93 @@ static PyObject *_wrap_StdDialogButtonSizer_Finalise(PyObject *, PyObject *args,
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_StdDialogButtonSizer_SetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
||||
wxButton *arg2 = (wxButton *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "button", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetAffirmativeButton",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetAffirmativeButton(arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_StdDialogButtonSizer_SetNegativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
||||
wxButton *arg2 = (wxButton *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "button", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetNegativeButton",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetNegativeButton(arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_StdDialogButtonSizer_SetCancelButton(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
||||
wxButton *arg2 = (wxButton *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "button", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetCancelButton",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetCancelButton(arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_StdDialogButtonSizer_GetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
||||
@ -44662,6 +44777,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_HasTransparentBackground", (PyCFunction) _wrap_Window_HasTransparentBackground, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@ -44977,6 +45093,9 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"new_StdDialogButtonSizer", (PyCFunction) _wrap_new_StdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_AddButton", (PyCFunction) _wrap_StdDialogButtonSizer_AddButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_Finalise", (PyCFunction) _wrap_StdDialogButtonSizer_Finalise, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_SetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_SetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_SetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_GetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_GetApplyButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetApplyButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_GetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
File diff suppressed because one or more lines are too long
@ -946,10 +946,6 @@ def PreSingleInstanceChecker(*args, **kwargs):
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
def DrawWindowOnDC(*args, **kwargs):
|
||||
"""DrawWindowOnDC(Window window, DC dc, int method)"""
|
||||
return _misc_.DrawWindowOnDC(*args, **kwargs)
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class TipProvider(object):
|
||||
|
File diff suppressed because one or more lines are too long
@ -1052,7 +1052,7 @@ class SplitterWindow(_core.Window):
|
||||
|
||||
Initializes the splitter window to have one pane. This should be
|
||||
called if you wish to initially view only a single pane in the
|
||||
splitter window.
|
||||
splitter window. The child window is shown if it is currently hidden.
|
||||
"""
|
||||
return _windows_.SplitterWindow_Initialize(*args, **kwargs)
|
||||
|
||||
@ -1060,7 +1060,8 @@ class SplitterWindow(_core.Window):
|
||||
"""
|
||||
SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
|
||||
|
||||
Initializes the left and right panes of the splitter window.
|
||||
Initializes the left and right panes of the splitter window. The
|
||||
child windows are shown if they are currently hidden.
|
||||
"""
|
||||
return _windows_.SplitterWindow_SplitVertically(*args, **kwargs)
|
||||
|
||||
@ -1068,7 +1069,8 @@ class SplitterWindow(_core.Window):
|
||||
"""
|
||||
SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
|
||||
|
||||
Initializes the top and bottom panes of the splitter window.
|
||||
Initializes the top and bottom panes of the splitter window. The
|
||||
child windows are shown if they are currently hidden.
|
||||
"""
|
||||
return _windows_.SplitterWindow_SplitHorizontally(*args, **kwargs)
|
||||
|
||||
@ -1319,7 +1321,7 @@ class SplitterEvent(_core.NotifyEvent):
|
||||
"""
|
||||
SetSashPosition(self, int pos)
|
||||
|
||||
This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
|
||||
This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
|
||||
and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
|
||||
events, sets the the new sash position. In the case of _CHANGING
|
||||
events, sets the new tracking bar position so visual feedback during
|
||||
|
@ -2141,6 +2141,8 @@ public:
|
||||
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
|
||||
DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -2173,7 +2175,8 @@ IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild);
|
||||
IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours);
|
||||
IMP_PYCALLBACK__COLOUR(wxPyWindow, wxWindow, ApplyParentThemeBackground);
|
||||
IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes);
|
||||
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground);
|
||||
|
||||
// C++ version of Python aware wxPanel
|
||||
class wxPyPanel : public wxPanel
|
||||
@ -2219,6 +2222,8 @@ public:
|
||||
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
|
||||
DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -2252,7 +2257,8 @@ IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours);
|
||||
IMP_PYCALLBACK__COLOUR(wxPyPanel, wxPanel, ApplyParentThemeBackground);
|
||||
IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes);
|
||||
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground);
|
||||
|
||||
// C++ version of Python aware wxScrolledWindow
|
||||
class wxPyScrolledWindow : public wxScrolledWindow
|
||||
{
|
||||
@ -2296,6 +2302,8 @@ public:
|
||||
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
|
||||
DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -2329,6 +2337,7 @@ IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritCol
|
||||
IMP_PYCALLBACK__COLOUR(wxPyScrolledWindow, wxScrolledWindow, ApplyParentThemeBackground);
|
||||
IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes);
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground);
|
||||
|
||||
|
||||
#include "wx/wxPython/printfw.h"
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -356,6 +356,9 @@ class HtmlWinParser(HtmlParser):
|
||||
"""SetActualColor(self, Colour clr)"""
|
||||
return _html.HtmlWinParser_SetActualColor(*args, **kwargs)
|
||||
|
||||
GetActualColour = GetActualColor
|
||||
SetActualColour = SetActualColor
|
||||
|
||||
def SetLink(*args, **kwargs):
|
||||
"""SetLink(self, String link)"""
|
||||
return _html.HtmlWinParser_SetLink(*args, **kwargs)
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1884,7 +1884,7 @@ class TextCtrl(_core.Control):
|
||||
|
||||
def HitTest(*args, **kwargs):
|
||||
"""
|
||||
HitTest(Point pt) -> (result, row, col)
|
||||
HitTest(Point pt) -> (result, col, row)
|
||||
|
||||
Find the row, col coresponding to the character at the point given in
|
||||
pixels. NB: pt is in device coords but is not adjusted for the client
|
||||
@ -3026,7 +3026,7 @@ class BookCtrlBasePtr(BookCtrlBase):
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = BookCtrlBase
|
||||
_controls_.BookCtrlBase_swigregister(BookCtrlBasePtr)
|
||||
NOTEBOOK_NAME = cvar.NOTEBOOK_NAME
|
||||
NotebookNameStr = cvar.NotebookNameStr
|
||||
|
||||
def BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
@ -3101,7 +3101,7 @@ class Notebook(BookCtrlBase):
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
|
||||
Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
|
||||
"""
|
||||
newobj = _controls_.new_Notebook(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
@ -3112,7 +3112,7 @@ class Notebook(BookCtrlBase):
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> bool
|
||||
Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
|
||||
"""
|
||||
return _controls_.Notebook_Create(*args, **kwargs)
|
||||
|
||||
|
@ -1769,7 +1769,7 @@ public:
|
||||
};
|
||||
#endif
|
||||
|
||||
static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
|
||||
static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
|
||||
|
||||
SWIGINTERNSHORT PyObject*
|
||||
SWIG_From_unsigned_SS_long(unsigned long value)
|
||||
@ -2190,6 +2190,8 @@ public:
|
||||
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
|
||||
DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -2223,6 +2225,8 @@ IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
|
||||
IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
|
||||
IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
|
||||
|
||||
|
||||
|
||||
static void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
|
||||
@ -16122,20 +16126,20 @@ static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
|
||||
Py_INCREF(obj);
|
||||
return Py_BuildValue((char *)"");
|
||||
}
|
||||
static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
|
||||
static int _wrap_NotebookNameStr_set(PyObject *) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable NotebookNameStr is read-only.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_NOTEBOOK_NAME_get(void) {
|
||||
static PyObject *_wrap_NotebookNameStr_get(void) {
|
||||
PyObject *pyobj;
|
||||
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
|
||||
pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
|
||||
#else
|
||||
pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
|
||||
pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
|
||||
#endif
|
||||
}
|
||||
return pyobj;
|
||||
@ -17104,7 +17108,7 @@ static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs
|
||||
wxSize const &arg4_defvalue = wxDefaultSize ;
|
||||
wxSize *arg4 = (wxSize *) &arg4_defvalue ;
|
||||
long arg5 = (long) 0 ;
|
||||
wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
|
||||
wxString const &arg6_defvalue = wxPyNotebookNameStr ;
|
||||
wxString *arg6 = (wxString *) &arg6_defvalue ;
|
||||
wxNotebook *result;
|
||||
wxPoint temp3 ;
|
||||
@ -17210,7 +17214,7 @@ static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwa
|
||||
wxSize const &arg5_defvalue = wxDefaultSize ;
|
||||
wxSize *arg5 = (wxSize *) &arg5_defvalue ;
|
||||
long arg6 = (long) 0 ;
|
||||
wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
|
||||
wxString const &arg7_defvalue = wxPyNotebookNameStr ;
|
||||
wxString *arg7 = (wxString *) &arg7_defvalue ;
|
||||
bool result;
|
||||
wxPoint temp4 ;
|
||||
@ -37006,7 +37010,7 @@ SWIGEXPORT(void) SWIG_init(void) {
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
|
||||
PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"NotebookNameStr",_wrap_NotebookNameStr_get, _wrap_NotebookNameStr_set);
|
||||
{
|
||||
PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)(wxNB_FIXEDWIDTH)));
|
||||
}
|
||||
|
@ -3276,7 +3276,18 @@ class Event(Object):
|
||||
return _core_.Event_IsCommandEvent(*args, **kwargs)
|
||||
|
||||
def Skip(*args, **kwargs):
|
||||
"""Skip(self, bool skip=True)"""
|
||||
"""
|
||||
Skip(self, bool skip=True)
|
||||
|
||||
Called by an event handler, it controls whether additional event
|
||||
handlers bound to this event will be called after the current event
|
||||
handler returns. Skip(false) (the default setting) will prevent
|
||||
additional event handlers from being called and control will be
|
||||
returned to the sender of the event immediately after the current
|
||||
handler has finished. Skip(True) will cause the event processing
|
||||
system to continue searching for a handler function for this event.
|
||||
|
||||
"""
|
||||
return _core_.Event_Skip(*args, **kwargs)
|
||||
|
||||
def GetSkipped(*args, **kwargs):
|
||||
@ -7341,6 +7352,21 @@ class Window(EvtHandler):
|
||||
"""
|
||||
return _core_.Window_GetBackgroundStyle(*args, **kwargs)
|
||||
|
||||
def HasTransparentBackground(*args, **kwargs):
|
||||
"""
|
||||
HasTransparentBackground(self) -> bool
|
||||
|
||||
Returns True if this window's background is transparent (as, for
|
||||
example, for `wx.StaticText`) and should show the parent window's
|
||||
background.
|
||||
|
||||
This method is mostly used internally by the library itself and you
|
||||
normally shouldn't have to call it. You may, however, have to override
|
||||
it in your custom control classes to ensure that background is painted
|
||||
correctly.
|
||||
"""
|
||||
return _core_.Window_HasTransparentBackground(*args, **kwargs)
|
||||
|
||||
def SetCursor(*args, **kwargs):
|
||||
"""
|
||||
SetCursor(self, Cursor cursor) -> bool
|
||||
@ -9618,7 +9644,7 @@ class Sizer(Object):
|
||||
|
||||
def GetChildren(*args, **kwargs):
|
||||
"""
|
||||
GetChildren(sefl) -> list
|
||||
GetChildren(self) -> list
|
||||
|
||||
Returns a list of all the `wx.SizerItem` objects managed by the sizer.
|
||||
"""
|
||||
@ -10149,6 +10175,18 @@ class StdDialogButtonSizer(BoxSizer):
|
||||
"""
|
||||
return _core_.StdDialogButtonSizer_Finalise(*args, **kwargs)
|
||||
|
||||
def SetAffirmativeButton(*args, **kwargs):
|
||||
"""SetAffirmativeButton(self, wxButton button)"""
|
||||
return _core_.StdDialogButtonSizer_SetAffirmativeButton(*args, **kwargs)
|
||||
|
||||
def SetNegativeButton(*args, **kwargs):
|
||||
"""SetNegativeButton(self, wxButton button)"""
|
||||
return _core_.StdDialogButtonSizer_SetNegativeButton(*args, **kwargs)
|
||||
|
||||
def SetCancelButton(*args, **kwargs):
|
||||
"""SetCancelButton(self, wxButton button)"""
|
||||
return _core_.StdDialogButtonSizer_SetCancelButton(*args, **kwargs)
|
||||
|
||||
def GetAffirmativeButton(*args, **kwargs):
|
||||
"""GetAffirmativeButton(self) -> wxButton"""
|
||||
return _core_.StdDialogButtonSizer_GetAffirmativeButton(*args, **kwargs)
|
||||
|
@ -29177,6 +29177,34 @@ static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyO
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_HasTransparentBackground(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
bool result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasTransparentBackground",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)(arg1)->HasTransparentBackground();
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@ -40109,6 +40137,93 @@ static PyObject *_wrap_StdDialogButtonSizer_Finalise(PyObject *, PyObject *args,
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_StdDialogButtonSizer_SetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
||||
wxButton *arg2 = (wxButton *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "button", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetAffirmativeButton",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetAffirmativeButton(arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_StdDialogButtonSizer_SetNegativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
||||
wxButton *arg2 = (wxButton *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "button", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetNegativeButton",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetNegativeButton(arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_StdDialogButtonSizer_SetCancelButton(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
||||
wxButton *arg2 = (wxButton *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "button", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetCancelButton",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetCancelButton(arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_StdDialogButtonSizer_GetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
||||
@ -44662,6 +44777,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_HasTransparentBackground", (PyCFunction) _wrap_Window_HasTransparentBackground, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@ -44977,6 +45093,9 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"new_StdDialogButtonSizer", (PyCFunction) _wrap_new_StdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_AddButton", (PyCFunction) _wrap_StdDialogButtonSizer_AddButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_Finalise", (PyCFunction) _wrap_StdDialogButtonSizer_Finalise, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_SetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_SetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_SetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_GetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_GetApplyButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetApplyButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_GetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
File diff suppressed because one or more lines are too long
@ -946,10 +946,6 @@ def PreSingleInstanceChecker(*args, **kwargs):
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
def DrawWindowOnDC(*args, **kwargs):
|
||||
"""DrawWindowOnDC(Window window, DC dc, int method)"""
|
||||
return _misc_.DrawWindowOnDC(*args, **kwargs)
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class TipProvider(object):
|
||||
|
File diff suppressed because one or more lines are too long
@ -1057,7 +1057,7 @@ class SplitterWindow(_core.Window):
|
||||
|
||||
Initializes the splitter window to have one pane. This should be
|
||||
called if you wish to initially view only a single pane in the
|
||||
splitter window.
|
||||
splitter window. The child window is shown if it is currently hidden.
|
||||
"""
|
||||
return _windows_.SplitterWindow_Initialize(*args, **kwargs)
|
||||
|
||||
@ -1065,7 +1065,8 @@ class SplitterWindow(_core.Window):
|
||||
"""
|
||||
SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
|
||||
|
||||
Initializes the left and right panes of the splitter window.
|
||||
Initializes the left and right panes of the splitter window. The
|
||||
child windows are shown if they are currently hidden.
|
||||
"""
|
||||
return _windows_.SplitterWindow_SplitVertically(*args, **kwargs)
|
||||
|
||||
@ -1073,7 +1074,8 @@ class SplitterWindow(_core.Window):
|
||||
"""
|
||||
SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
|
||||
|
||||
Initializes the top and bottom panes of the splitter window.
|
||||
Initializes the top and bottom panes of the splitter window. The
|
||||
child windows are shown if they are currently hidden.
|
||||
"""
|
||||
return _windows_.SplitterWindow_SplitHorizontally(*args, **kwargs)
|
||||
|
||||
@ -1324,7 +1326,7 @@ class SplitterEvent(_core.NotifyEvent):
|
||||
"""
|
||||
SetSashPosition(self, int pos)
|
||||
|
||||
This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
|
||||
This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
|
||||
and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
|
||||
events, sets the the new sash position. In the case of _CHANGING
|
||||
events, sets the new tracking bar position so visual feedback during
|
||||
|
@ -2134,6 +2134,8 @@ public:
|
||||
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
|
||||
DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -2166,7 +2168,8 @@ IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild);
|
||||
IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours);
|
||||
IMP_PYCALLBACK__COLOUR(wxPyWindow, wxWindow, ApplyParentThemeBackground);
|
||||
IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes);
|
||||
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground);
|
||||
|
||||
// C++ version of Python aware wxPanel
|
||||
class wxPyPanel : public wxPanel
|
||||
@ -2212,6 +2215,8 @@ public:
|
||||
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
|
||||
DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -2245,7 +2250,8 @@ IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours);
|
||||
IMP_PYCALLBACK__COLOUR(wxPyPanel, wxPanel, ApplyParentThemeBackground);
|
||||
IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes);
|
||||
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground);
|
||||
|
||||
// C++ version of Python aware wxScrolledWindow
|
||||
class wxPyScrolledWindow : public wxScrolledWindow
|
||||
{
|
||||
@ -2289,6 +2295,8 @@ public:
|
||||
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
|
||||
DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -2322,6 +2330,7 @@ IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritCol
|
||||
IMP_PYCALLBACK__COLOUR(wxPyScrolledWindow, wxScrolledWindow, ApplyParentThemeBackground);
|
||||
IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes);
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground);
|
||||
|
||||
|
||||
#include "wx/wxPython/printfw.h"
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -356,6 +356,9 @@ class HtmlWinParser(HtmlParser):
|
||||
"""SetActualColor(self, Colour clr)"""
|
||||
return _html.HtmlWinParser_SetActualColor(*args, **kwargs)
|
||||
|
||||
GetActualColour = GetActualColor
|
||||
SetActualColour = SetActualColor
|
||||
|
||||
def SetLink(*args, **kwargs):
|
||||
"""SetLink(self, String link)"""
|
||||
return _html.HtmlWinParser_SetLink(*args, **kwargs)
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1897,7 +1897,7 @@ class TextCtrl(_core.Control):
|
||||
|
||||
def HitTest(*args, **kwargs):
|
||||
"""
|
||||
HitTest(Point pt) -> (result, row, col)
|
||||
HitTest(Point pt) -> (result, col, row)
|
||||
|
||||
Find the row, col coresponding to the character at the point given in
|
||||
pixels. NB: pt is in device coords but is not adjusted for the client
|
||||
@ -3047,7 +3047,7 @@ class BookCtrlBasePtr(BookCtrlBase):
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = BookCtrlBase
|
||||
_controls_.BookCtrlBase_swigregister(BookCtrlBasePtr)
|
||||
NOTEBOOK_NAME = cvar.NOTEBOOK_NAME
|
||||
NotebookNameStr = cvar.NotebookNameStr
|
||||
|
||||
def BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
@ -3122,7 +3122,7 @@ class Notebook(BookCtrlBase):
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
|
||||
Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
|
||||
"""
|
||||
newobj = _controls_.new_Notebook(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
@ -3133,7 +3133,7 @@ class Notebook(BookCtrlBase):
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> bool
|
||||
Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
|
||||
"""
|
||||
return _controls_.Notebook_Create(*args, **kwargs)
|
||||
|
||||
|
@ -1769,7 +1769,7 @@ public:
|
||||
};
|
||||
#endif
|
||||
|
||||
static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
|
||||
static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
|
||||
|
||||
SWIGINTERNSHORT PyObject*
|
||||
SWIG_From_unsigned_SS_long(unsigned long value)
|
||||
@ -2190,6 +2190,8 @@ public:
|
||||
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
|
||||
DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -2223,6 +2225,8 @@ IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
|
||||
IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
|
||||
IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
|
||||
|
||||
|
||||
|
||||
static void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
|
||||
@ -16251,20 +16255,20 @@ static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
|
||||
Py_INCREF(obj);
|
||||
return Py_BuildValue((char *)"");
|
||||
}
|
||||
static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
|
||||
static int _wrap_NotebookNameStr_set(PyObject *) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable NotebookNameStr is read-only.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_NOTEBOOK_NAME_get(void) {
|
||||
static PyObject *_wrap_NotebookNameStr_get(void) {
|
||||
PyObject *pyobj;
|
||||
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
|
||||
pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
|
||||
#else
|
||||
pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
|
||||
pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
|
||||
#endif
|
||||
}
|
||||
return pyobj;
|
||||
@ -17233,7 +17237,7 @@ static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs
|
||||
wxSize const &arg4_defvalue = wxDefaultSize ;
|
||||
wxSize *arg4 = (wxSize *) &arg4_defvalue ;
|
||||
long arg5 = (long) 0 ;
|
||||
wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
|
||||
wxString const &arg6_defvalue = wxPyNotebookNameStr ;
|
||||
wxString *arg6 = (wxString *) &arg6_defvalue ;
|
||||
wxNotebook *result;
|
||||
wxPoint temp3 ;
|
||||
@ -17339,7 +17343,7 @@ static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwa
|
||||
wxSize const &arg5_defvalue = wxDefaultSize ;
|
||||
wxSize *arg5 = (wxSize *) &arg5_defvalue ;
|
||||
long arg6 = (long) 0 ;
|
||||
wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
|
||||
wxString const &arg7_defvalue = wxPyNotebookNameStr ;
|
||||
wxString *arg7 = (wxString *) &arg7_defvalue ;
|
||||
bool result;
|
||||
wxPoint temp4 ;
|
||||
@ -37341,7 +37345,7 @@ SWIGEXPORT(void) SWIG_init(void) {
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
|
||||
PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
|
||||
SWIG_addvarlink(SWIG_globals,(char*)"NotebookNameStr",_wrap_NotebookNameStr_get, _wrap_NotebookNameStr_set);
|
||||
{
|
||||
PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)(wxNB_FIXEDWIDTH)));
|
||||
}
|
||||
|
@ -3276,7 +3276,18 @@ class Event(Object):
|
||||
return _core_.Event_IsCommandEvent(*args, **kwargs)
|
||||
|
||||
def Skip(*args, **kwargs):
|
||||
"""Skip(self, bool skip=True)"""
|
||||
"""
|
||||
Skip(self, bool skip=True)
|
||||
|
||||
Called by an event handler, it controls whether additional event
|
||||
handlers bound to this event will be called after the current event
|
||||
handler returns. Skip(false) (the default setting) will prevent
|
||||
additional event handlers from being called and control will be
|
||||
returned to the sender of the event immediately after the current
|
||||
handler has finished. Skip(True) will cause the event processing
|
||||
system to continue searching for a handler function for this event.
|
||||
|
||||
"""
|
||||
return _core_.Event_Skip(*args, **kwargs)
|
||||
|
||||
def GetSkipped(*args, **kwargs):
|
||||
@ -7341,6 +7352,21 @@ class Window(EvtHandler):
|
||||
"""
|
||||
return _core_.Window_GetBackgroundStyle(*args, **kwargs)
|
||||
|
||||
def HasTransparentBackground(*args, **kwargs):
|
||||
"""
|
||||
HasTransparentBackground(self) -> bool
|
||||
|
||||
Returns True if this window's background is transparent (as, for
|
||||
example, for `wx.StaticText`) and should show the parent window's
|
||||
background.
|
||||
|
||||
This method is mostly used internally by the library itself and you
|
||||
normally shouldn't have to call it. You may, however, have to override
|
||||
it in your custom control classes to ensure that background is painted
|
||||
correctly.
|
||||
"""
|
||||
return _core_.Window_HasTransparentBackground(*args, **kwargs)
|
||||
|
||||
def SetCursor(*args, **kwargs):
|
||||
"""
|
||||
SetCursor(self, Cursor cursor) -> bool
|
||||
@ -9687,7 +9713,7 @@ class Sizer(Object):
|
||||
|
||||
def GetChildren(*args, **kwargs):
|
||||
"""
|
||||
GetChildren(sefl) -> list
|
||||
GetChildren(self) -> list
|
||||
|
||||
Returns a list of all the `wx.SizerItem` objects managed by the sizer.
|
||||
"""
|
||||
@ -10218,6 +10244,18 @@ class StdDialogButtonSizer(BoxSizer):
|
||||
"""
|
||||
return _core_.StdDialogButtonSizer_Finalise(*args, **kwargs)
|
||||
|
||||
def SetAffirmativeButton(*args, **kwargs):
|
||||
"""SetAffirmativeButton(self, wxButton button)"""
|
||||
return _core_.StdDialogButtonSizer_SetAffirmativeButton(*args, **kwargs)
|
||||
|
||||
def SetNegativeButton(*args, **kwargs):
|
||||
"""SetNegativeButton(self, wxButton button)"""
|
||||
return _core_.StdDialogButtonSizer_SetNegativeButton(*args, **kwargs)
|
||||
|
||||
def SetCancelButton(*args, **kwargs):
|
||||
"""SetCancelButton(self, wxButton button)"""
|
||||
return _core_.StdDialogButtonSizer_SetCancelButton(*args, **kwargs)
|
||||
|
||||
def GetAffirmativeButton(*args, **kwargs):
|
||||
"""GetAffirmativeButton(self) -> wxButton"""
|
||||
return _core_.StdDialogButtonSizer_GetAffirmativeButton(*args, **kwargs)
|
||||
|
@ -29175,6 +29175,34 @@ static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyO
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_HasTransparentBackground(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
bool result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasTransparentBackground",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)(arg1)->HasTransparentBackground();
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@ -40622,6 +40650,93 @@ static PyObject *_wrap_StdDialogButtonSizer_Finalise(PyObject *, PyObject *args,
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_StdDialogButtonSizer_SetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
||||
wxButton *arg2 = (wxButton *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "button", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetAffirmativeButton",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetAffirmativeButton(arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_StdDialogButtonSizer_SetNegativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
||||
wxButton *arg2 = (wxButton *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "button", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetNegativeButton",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetNegativeButton(arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_StdDialogButtonSizer_SetCancelButton(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
||||
wxButton *arg2 = (wxButton *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "button", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetCancelButton",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetCancelButton(arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_StdDialogButtonSizer_GetAffirmativeButton(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
||||
@ -45175,6 +45290,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_HasTransparentBackground", (PyCFunction) _wrap_Window_HasTransparentBackground, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@ -45506,6 +45622,9 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"new_StdDialogButtonSizer", (PyCFunction) _wrap_new_StdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_AddButton", (PyCFunction) _wrap_StdDialogButtonSizer_AddButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_Finalise", (PyCFunction) _wrap_StdDialogButtonSizer_Finalise, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_SetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_SetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_SetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_GetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_GetApplyButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetApplyButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StdDialogButtonSizer_GetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_GetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
File diff suppressed because one or more lines are too long
@ -946,10 +946,6 @@ def PreSingleInstanceChecker(*args, **kwargs):
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
|
||||
def DrawWindowOnDC(*args, **kwargs):
|
||||
"""DrawWindowOnDC(Window window, DC dc, int method)"""
|
||||
return _misc_.DrawWindowOnDC(*args, **kwargs)
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class TipProvider(object):
|
||||
|
File diff suppressed because one or more lines are too long
@ -1057,7 +1057,7 @@ class SplitterWindow(_core.Window):
|
||||
|
||||
Initializes the splitter window to have one pane. This should be
|
||||
called if you wish to initially view only a single pane in the
|
||||
splitter window.
|
||||
splitter window. The child window is shown if it is currently hidden.
|
||||
"""
|
||||
return _windows_.SplitterWindow_Initialize(*args, **kwargs)
|
||||
|
||||
@ -1065,7 +1065,8 @@ class SplitterWindow(_core.Window):
|
||||
"""
|
||||
SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
|
||||
|
||||
Initializes the left and right panes of the splitter window.
|
||||
Initializes the left and right panes of the splitter window. The
|
||||
child windows are shown if they are currently hidden.
|
||||
"""
|
||||
return _windows_.SplitterWindow_SplitVertically(*args, **kwargs)
|
||||
|
||||
@ -1073,7 +1074,8 @@ class SplitterWindow(_core.Window):
|
||||
"""
|
||||
SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
|
||||
|
||||
Initializes the top and bottom panes of the splitter window.
|
||||
Initializes the top and bottom panes of the splitter window. The
|
||||
child windows are shown if they are currently hidden.
|
||||
"""
|
||||
return _windows_.SplitterWindow_SplitHorizontally(*args, **kwargs)
|
||||
|
||||
@ -1324,7 +1326,7 @@ class SplitterEvent(_core.NotifyEvent):
|
||||
"""
|
||||
SetSashPosition(self, int pos)
|
||||
|
||||
This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
|
||||
This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
|
||||
and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
|
||||
events, sets the the new sash position. In the case of _CHANGING
|
||||
events, sets the new tracking bar position so visual feedback during
|
||||
|
@ -2141,6 +2141,8 @@ public:
|
||||
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
|
||||
DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -2173,7 +2175,8 @@ IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild);
|
||||
IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours);
|
||||
IMP_PYCALLBACK__COLOUR(wxPyWindow, wxWindow, ApplyParentThemeBackground);
|
||||
IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes);
|
||||
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground);
|
||||
|
||||
// C++ version of Python aware wxPanel
|
||||
class wxPyPanel : public wxPanel
|
||||
@ -2219,6 +2222,8 @@ public:
|
||||
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
|
||||
DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -2252,7 +2257,8 @@ IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours);
|
||||
IMP_PYCALLBACK__COLOUR(wxPyPanel, wxPanel, ApplyParentThemeBackground);
|
||||
IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes);
|
||||
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground);
|
||||
|
||||
// C++ version of Python aware wxScrolledWindow
|
||||
class wxPyScrolledWindow : public wxScrolledWindow
|
||||
{
|
||||
@ -2296,6 +2302,8 @@ public:
|
||||
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
|
||||
DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
|
||||
|
||||
DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
|
||||
|
||||
PYPRIVATE;
|
||||
};
|
||||
|
||||
@ -2329,6 +2337,7 @@ IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritCol
|
||||
IMP_PYCALLBACK__COLOUR(wxPyScrolledWindow, wxScrolledWindow, ApplyParentThemeBackground);
|
||||
IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes);
|
||||
|
||||
IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground);
|
||||
|
||||
|
||||
#include "wx/wxPython/printfw.h"
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -356,6 +356,9 @@ class HtmlWinParser(HtmlParser):
|
||||
"""SetActualColor(self, Colour clr)"""
|
||||
return _html.HtmlWinParser_SetActualColor(*args, **kwargs)
|
||||
|
||||
GetActualColour = GetActualColor
|
||||
SetActualColour = SetActualColor
|
||||
|
||||
def SetLink(*args, **kwargs):
|
||||
"""SetLink(self, String link)"""
|
||||
return _html.HtmlWinParser_SetLink(*args, **kwargs)
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -191,7 +191,7 @@ wxToggleButton = wx._controls.ToggleButton
|
||||
wxToggleButtonPtr = wx._controls.ToggleButtonPtr
|
||||
wxPreToggleButton = wx._controls.PreToggleButton
|
||||
wxToggleButton_GetClassDefaultAttributes = wx._controls.ToggleButton_GetClassDefaultAttributes
|
||||
wxNOTEBOOK_NAME = wx._controls.NOTEBOOK_NAME
|
||||
wxNotebookNameStr = wx._controls.NotebookNameStr
|
||||
wxBookCtrlBase = wx._controls.BookCtrlBase
|
||||
wxBookCtrlBasePtr = wx._controls.BookCtrlBasePtr
|
||||
wxBookCtrlBase_GetClassDefaultAttributes = wx._controls.BookCtrlBase_GetClassDefaultAttributes
|
||||
|
@ -216,7 +216,6 @@ wxFileHistoryPtr = wx._misc.FileHistoryPtr
|
||||
wxSingleInstanceChecker = wx._misc.SingleInstanceChecker
|
||||
wxSingleInstanceCheckerPtr = wx._misc.SingleInstanceCheckerPtr
|
||||
wxPreSingleInstanceChecker = wx._misc.PreSingleInstanceChecker
|
||||
wxDrawWindowOnDC = wx._misc.DrawWindowOnDC
|
||||
wxTipProvider = wx._misc.TipProvider
|
||||
wxTipProviderPtr = wx._misc.TipProviderPtr
|
||||
wxPyTipProvider = wx._misc.PyTipProvider
|
||||
|
Loading…
Reference in New Issue
Block a user