reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -6323,6 +6323,30 @@ class Window(EvtHandler):
|
||||
"""
|
||||
return _core_.Window_Navigate(*args, **kwargs)
|
||||
|
||||
def MoveAfterInTabOrder(*args, **kwargs):
|
||||
"""
|
||||
MoveAfterInTabOrder(self, Window win)
|
||||
|
||||
Moves this window in the tab navigation order after the specified
|
||||
sibling window. This means that when the user presses the TAB key on
|
||||
that other window, the focus switches to this window.
|
||||
|
||||
The default tab order is the same as creation order. This function
|
||||
and `MoveBeforeInTabOrder` allow to change it after creating all the
|
||||
windows.
|
||||
|
||||
"""
|
||||
return _core_.Window_MoveAfterInTabOrder(*args, **kwargs)
|
||||
|
||||
def MoveBeforeInTabOrder(*args, **kwargs):
|
||||
"""
|
||||
MoveBeforeInTabOrder(self, Window win)
|
||||
|
||||
Same as `MoveAfterInTabOrder` except that it inserts this window just
|
||||
before win instead of putting it right after it.
|
||||
"""
|
||||
return _core_.Window_MoveBeforeInTabOrder(*args, **kwargs)
|
||||
|
||||
def GetChildren(*args, **kwargs):
|
||||
"""
|
||||
GetChildren(self) -> PyObject
|
||||
|
@@ -24609,6 +24609,64 @@ static PyObject *_wrap_Window_Navigate(PyObject *self, PyObject *args, PyObject
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
wxWindow *arg2 = (wxWindow *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "win", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->MoveAfterInTabOrder(arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
wxWindow *arg2 = (wxWindow *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "win", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->MoveBeforeInTabOrder(arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@@ -40824,6 +40882,8 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@@ -295,9 +295,14 @@ def Sleep(*args, **kwargs):
|
||||
"""Sleep(int secs)"""
|
||||
return _misc_.Sleep(*args, **kwargs)
|
||||
|
||||
def Usleep(*args, **kwargs):
|
||||
"""Usleep(unsigned long milliseconds)"""
|
||||
return _misc_.Usleep(*args, **kwargs)
|
||||
def MilliSleep(*args, **kwargs):
|
||||
"""MilliSleep(unsigned long milliseconds)"""
|
||||
return _misc_.MilliSleep(*args, **kwargs)
|
||||
|
||||
def MicroSleep(*args, **kwargs):
|
||||
"""MicroSleep(unsigned long microseconds)"""
|
||||
return _misc_.MicroSleep(*args, **kwargs)
|
||||
Usleep = MilliSleep
|
||||
|
||||
def EnableTopLevelWindows(*args, **kwargs):
|
||||
"""EnableTopLevelWindows(bool enable)"""
|
||||
|
@@ -2537,7 +2537,7 @@ static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_MilliSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
unsigned long arg1 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
@@ -2545,12 +2545,37 @@ static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||
(char *) "milliseconds", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
|
||||
arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxUsleep(arg1);
|
||||
wxMilliSleep(arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_MicroSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
unsigned long arg1 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "microseconds", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
|
||||
arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxMicroSleep(arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
@@ -28218,7 +28243,8 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@@ -593,6 +593,9 @@ class Dialog(TopLevelWindow):
|
||||
return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
|
||||
def SendSizeEvent(self):
|
||||
self.ProcessEvent(wx.SizeEvent((-1,-1)))
|
||||
|
||||
|
||||
class DialogPtr(Dialog):
|
||||
def __init__(self, this):
|
||||
|
Reference in New Issue
Block a user