mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-19 04:09:46 +08:00
reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1122,6 +1122,11 @@ def StaticLine_GetClassDefaultAttributes(*args, **kwargs):
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
ST_NO_AUTORESIZE = _controls_.ST_NO_AUTORESIZE
|
||||
ST_MARKUP = _controls_.ST_MARKUP
|
||||
ST_ELLIPSIZE_START = _controls_.ST_ELLIPSIZE_START
|
||||
ST_ELLIPSIZE_MIDDLE = _controls_.ST_ELLIPSIZE_MIDDLE
|
||||
ST_ELLIPSIZE_END = _controls_.ST_ELLIPSIZE_END
|
||||
class StaticText(_core.Control):
|
||||
"""Proxy of C++ StaticText class"""
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
||||
@@ -1154,6 +1159,32 @@ class StaticText(_core.Control):
|
||||
"""
|
||||
return _controls_.StaticText_Wrap(*args, **kwargs)
|
||||
|
||||
def IsEllipsized(*args, **kwargs):
|
||||
"""IsEllipsized(self) -> bool"""
|
||||
return _controls_.StaticText_IsEllipsized(*args, **kwargs)
|
||||
|
||||
def RemoveMarkup(*args, **kwargs):
|
||||
"""
|
||||
RemoveMarkup(String str) -> String
|
||||
|
||||
Removes the markup accepted by wx.StaticText when wx.ST_MARKUP is
|
||||
used, and then returns the cleaned string.
|
||||
|
||||
"""
|
||||
return _controls_.StaticText_RemoveMarkup(*args, **kwargs)
|
||||
|
||||
RemoveMarkup = staticmethod(RemoveMarkup)
|
||||
def EscapeMarkup(*args, **kwargs):
|
||||
"""
|
||||
EscapeMarkup(String str) -> String
|
||||
|
||||
Escapes the alls special symbols (<>"'&) present inside the given
|
||||
string using the corresponding entities (< > " '
|
||||
&)
|
||||
"""
|
||||
return _controls_.StaticText_EscapeMarkup(*args, **kwargs)
|
||||
|
||||
EscapeMarkup = staticmethod(EscapeMarkup)
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -1179,6 +1210,26 @@ def PreStaticText(*args, **kwargs):
|
||||
val = _controls_.new_PreStaticText(*args, **kwargs)
|
||||
return val
|
||||
|
||||
def StaticText_RemoveMarkup(*args, **kwargs):
|
||||
"""
|
||||
StaticText_RemoveMarkup(String str) -> String
|
||||
|
||||
Removes the markup accepted by wx.StaticText when wx.ST_MARKUP is
|
||||
used, and then returns the cleaned string.
|
||||
|
||||
"""
|
||||
return _controls_.StaticText_RemoveMarkup(*args, **kwargs)
|
||||
|
||||
def StaticText_EscapeMarkup(*args, **kwargs):
|
||||
"""
|
||||
StaticText_EscapeMarkup(String str) -> String
|
||||
|
||||
Escapes the alls special symbols (<>"'&) present inside the given
|
||||
string using the corresponding entities (< > " '
|
||||
&)
|
||||
"""
|
||||
return _controls_.StaticText_EscapeMarkup(*args, **kwargs)
|
||||
|
||||
def StaticText_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
@@ -8395,6 +8395,122 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_StaticText_IsEllipsized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxStaticText *arg1 = (wxStaticText *) 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_wxStaticText, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_IsEllipsized" "', expected argument " "1"" of type '" "wxStaticText const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxStaticText * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)((wxStaticText const *)arg1)->IsEllipsized();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_StaticText_RemoveMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxString *arg1 = 0 ;
|
||||
wxString result;
|
||||
bool temp1 = false ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "str", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_RemoveMarkup",kwnames,&obj0)) SWIG_fail;
|
||||
{
|
||||
arg1 = wxString_in_helper(obj0);
|
||||
if (arg1 == NULL) SWIG_fail;
|
||||
temp1 = true;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = wxStaticText::RemoveMarkup((wxString const &)*arg1);
|
||||
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
|
||||
}
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_StaticText_EscapeMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxString *arg1 = 0 ;
|
||||
wxString result;
|
||||
bool temp1 = false ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "str", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_EscapeMarkup",kwnames,&obj0)) SWIG_fail;
|
||||
{
|
||||
arg1 = wxString_in_helper(obj0);
|
||||
if (arg1 == NULL) SWIG_fail;
|
||||
temp1 = true;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = wxStaticText::EscapeMarkup((wxString const &)*arg1);
|
||||
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
|
||||
}
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
|
||||
@@ -47126,6 +47242,9 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
|
||||
{ (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_IsEllipsized", (PyCFunction)_wrap_StaticText_IsEllipsized, METH_O, NULL},
|
||||
{ (char *)"StaticText_RemoveMarkup", (PyCFunction) _wrap_StaticText_RemoveMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_EscapeMarkup", (PyCFunction) _wrap_StaticText_EscapeMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
|
||||
@@ -50590,6 +50709,11 @@ SWIGEXPORT void SWIG_init(void) {
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
|
||||
SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
|
||||
SWIG_Python_SetConstant(d, "ST_MARKUP",SWIG_From_int(static_cast< int >(wxST_MARKUP)));
|
||||
SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_START",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_START)));
|
||||
SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_MIDDLE",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_MIDDLE)));
|
||||
SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_END",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_END)));
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
|
||||
SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
|
||||
|
||||
+74
-24
@@ -131,9 +131,6 @@ SB_HORIZONTAL = _core_.SB_HORIZONTAL
|
||||
SB_VERTICAL = _core_.SB_VERTICAL
|
||||
RB_USE_CHECKBOX = _core_.RB_USE_CHECKBOX
|
||||
ST_SIZEGRIP = _core_.ST_SIZEGRIP
|
||||
ST_NO_AUTORESIZE = _core_.ST_NO_AUTORESIZE
|
||||
ST_DOTS_MIDDLE = _core_.ST_DOTS_MIDDLE
|
||||
ST_DOTS_END = _core_.ST_DOTS_END
|
||||
FLOOD_SURFACE = _core_.FLOOD_SURFACE
|
||||
FLOOD_BORDER = _core_.FLOOD_BORDER
|
||||
ODDEVEN_RULE = _core_.ODDEVEN_RULE
|
||||
@@ -9094,12 +9091,20 @@ class Window(EvtHandler):
|
||||
"""
|
||||
return _core_.Window_CanAcceptFocusFromKeyboard(*args, **kwargs)
|
||||
|
||||
def NavigateIn(*args, **kwargs):
|
||||
"""
|
||||
NavigateIn(self, int flags=NavigationKeyEvent.IsForward) -> bool
|
||||
|
||||
Navigates inside this window.
|
||||
"""
|
||||
return _core_.Window_NavigateIn(*args, **kwargs)
|
||||
|
||||
def Navigate(*args, **kwargs):
|
||||
"""
|
||||
Navigate(self, int flags=NavigationKeyEvent.IsForward) -> bool
|
||||
|
||||
Does keyboard navigation from this window to another, by sending a
|
||||
`wx.NavigationKeyEvent`.
|
||||
Does keyboard navigation starting from this window to another. This is
|
||||
equivalient to self.GetParent().NavigateIn().
|
||||
"""
|
||||
return _core_.Window_Navigate(*args, **kwargs)
|
||||
|
||||
@@ -11385,6 +11390,15 @@ class Control(Window):
|
||||
"""
|
||||
return _core_.Control_Command(*args, **kwargs)
|
||||
|
||||
def RemoveMnemonics(*args, **kwargs):
|
||||
"""
|
||||
RemoveMnemonics(String str) -> String
|
||||
|
||||
removes the mnemonics characters
|
||||
"""
|
||||
return _core_.Control_RemoveMnemonics(*args, **kwargs)
|
||||
|
||||
RemoveMnemonics = staticmethod(RemoveMnemonics)
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -11417,6 +11431,14 @@ def PreControl(*args, **kwargs):
|
||||
val = _core_.new_PreControl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
def Control_RemoveMnemonics(*args, **kwargs):
|
||||
"""
|
||||
Control_RemoveMnemonics(String str) -> String
|
||||
|
||||
removes the mnemonics characters
|
||||
"""
|
||||
return _core_.Control_RemoveMnemonics(*args, **kwargs)
|
||||
|
||||
def Control_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -12072,14 +12094,6 @@ class SizerItem(Object):
|
||||
"""
|
||||
return _core_.SizerItem_GetWindow(*args, **kwargs)
|
||||
|
||||
def SetWindow(*args, **kwargs):
|
||||
"""
|
||||
SetWindow(self, Window window)
|
||||
|
||||
Set the window to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_SetWindow(*args, **kwargs)
|
||||
|
||||
def GetSizer(*args, **kwargs):
|
||||
"""
|
||||
GetSizer(self) -> Sizer
|
||||
@@ -12088,14 +12102,6 @@ class SizerItem(Object):
|
||||
"""
|
||||
return _core_.SizerItem_GetSizer(*args, **kwargs)
|
||||
|
||||
def SetSizer(*args, **kwargs):
|
||||
"""
|
||||
SetSizer(self, Sizer sizer)
|
||||
|
||||
Set the subsizer to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_SetSizer(*args, **kwargs)
|
||||
|
||||
def GetSpacer(*args, **kwargs):
|
||||
"""
|
||||
GetSpacer(self) -> Size
|
||||
@@ -12104,6 +12110,22 @@ class SizerItem(Object):
|
||||
"""
|
||||
return _core_.SizerItem_GetSpacer(*args, **kwargs)
|
||||
|
||||
def SetWindow(*args, **kwargs):
|
||||
"""
|
||||
SetWindow(self, Window window)
|
||||
|
||||
Set the window to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_SetWindow(*args, **kwargs)
|
||||
|
||||
def SetSizer(*args, **kwargs):
|
||||
"""
|
||||
SetSizer(self, Sizer sizer)
|
||||
|
||||
Set the subsizer to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_SetSizer(*args, **kwargs)
|
||||
|
||||
def SetSpacer(*args, **kwargs):
|
||||
"""
|
||||
SetSpacer(self, Size size)
|
||||
@@ -12112,6 +12134,34 @@ class SizerItem(Object):
|
||||
"""
|
||||
return _core_.SizerItem_SetSpacer(*args, **kwargs)
|
||||
|
||||
SetWindow = wx._deprecated(SetWindow, "Use `AssignWindow` instead.")
|
||||
SetSizer = wx._deprecated(SetSizer, "Use `AssignSizer` instead.")
|
||||
SetSpacer = wx._deprecated(SetSpacer, "Use `AssignSpacer` instead.")
|
||||
|
||||
def AssignWindow(*args, **kwargs):
|
||||
"""
|
||||
AssignWindow(self, Window window)
|
||||
|
||||
Set the window to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_AssignWindow(*args, **kwargs)
|
||||
|
||||
def AssignSizer(*args, **kwargs):
|
||||
"""
|
||||
AssignSizer(self, Sizer sizer)
|
||||
|
||||
Set the subsizer to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_AssignSizer(*args, **kwargs)
|
||||
|
||||
def AssignSpacer(*args, **kwargs):
|
||||
"""
|
||||
AssignSpacer(self, Size size)
|
||||
|
||||
Set the size of the spacer to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_AssignSpacer(*args, **kwargs)
|
||||
|
||||
def Show(*args, **kwargs):
|
||||
"""
|
||||
Show(self, bool show)
|
||||
@@ -12164,10 +12214,10 @@ class SizerItem(Object):
|
||||
Ratio = property(GetRatio,SetRatio,doc="See `GetRatio` and `SetRatio`")
|
||||
Rect = property(GetRect,doc="See `GetRect`")
|
||||
Size = property(GetSize,doc="See `GetSize`")
|
||||
Sizer = property(GetSizer,SetSizer,doc="See `GetSizer` and `SetSizer`")
|
||||
Spacer = property(GetSpacer,SetSpacer,doc="See `GetSpacer` and `SetSpacer`")
|
||||
Sizer = property(GetSizer,AssignSizer,doc="See `GetSizer` and `AssignSizer`")
|
||||
Spacer = property(GetSpacer,AssignSpacer,doc="See `GetSpacer` and `AssignSpacer`")
|
||||
UserData = property(GetUserData,SetUserData,doc="See `GetUserData` and `SetUserData`")
|
||||
Window = property(GetWindow,SetWindow,doc="See `GetWindow` and `SetWindow`")
|
||||
Window = property(GetWindow,AssignWindow,doc="See `GetWindow` and `AssignWindow`")
|
||||
_core_.SizerItem_swigregister(SizerItem)
|
||||
|
||||
def SizerItemWindow(*args, **kwargs):
|
||||
|
||||
+263
-63
@@ -36464,6 +36464,49 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Window_NavigateIn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
int arg2 = (int) wxNavigationKeyEvent::IsForward ;
|
||||
bool result;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int val2 ;
|
||||
int ecode2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "flags", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_NavigateIn",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_NavigateIn" "', expected argument " "1"" of type '" "wxWindow *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||
if (obj1) {
|
||||
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
||||
if (!SWIG_IsOK(ecode2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_NavigateIn" "', expected argument " "2"" of type '" "int""'");
|
||||
}
|
||||
arg2 = static_cast< int >(val2);
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)(arg1)->NavigateIn(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_Window_Navigate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@@ -47906,6 +47949,49 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Control_RemoveMnemonics(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxString *arg1 = 0 ;
|
||||
wxString result;
|
||||
bool temp1 = false ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "str", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_RemoveMnemonics",kwnames,&obj0)) SWIG_fail;
|
||||
{
|
||||
arg1 = wxString_in_helper(obj0);
|
||||
if (arg1 == NULL) SWIG_fail;
|
||||
temp1 = true;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = wxControl::RemoveMnemonics((wxString const &)*arg1);
|
||||
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
|
||||
}
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
|
||||
@@ -50457,6 +50543,64 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_GetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSizer *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_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxSizer *)(arg1)->GetSizer();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_GetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSize 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_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (arg1)->GetSpacer();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_SetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
@@ -50495,36 +50639,6 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_GetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSizer *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_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxSizer *)(arg1)->GetSizer();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_SetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
@@ -50561,34 +50675,6 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_GetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSize 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_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (arg1)->GetSpacer();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_SetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
@@ -50625,6 +50711,118 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_AssignWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxWindow *arg2 = (wxWindow *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
void *argp2 = 0 ;
|
||||
int res2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "window", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_AssignWindow",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_AssignWindow" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizerItem_AssignWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->AssignWindow(arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_AssignSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSizer *arg2 = (wxSizer *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
void *argp2 = 0 ;
|
||||
int res2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "sizer", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_AssignSizer",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_AssignSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizerItem_AssignSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< wxSizer * >(argp2);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->AssignSizer(arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_AssignSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSize *arg2 = 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
wxSize temp2 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "size", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_AssignSpacer",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_AssignSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->AssignSpacer((wxSize const &)*arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
@@ -58679,6 +58877,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Window_CanAcceptFocus", (PyCFunction)_wrap_Window_CanAcceptFocus, METH_O, NULL},
|
||||
{ (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction)_wrap_Window_AcceptsFocusFromKeyboard, METH_O, NULL},
|
||||
{ (char *)"Window_CanAcceptFocusFromKeyboard", (PyCFunction)_wrap_Window_CanAcceptFocusFromKeyboard, METH_O, NULL},
|
||||
{ (char *)"Window_NavigateIn", (PyCFunction) _wrap_Window_NavigateIn, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -58970,6 +59169,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Control_GetAlignment", (PyCFunction)_wrap_Control_GetAlignment, METH_O, NULL},
|
||||
{ (char *)"Control_GetLabelText", (PyCFunction)_wrap_Control_GetLabelText, METH_O, NULL},
|
||||
{ (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Control_RemoveMnemonics", (PyCFunction) _wrap_Control_RemoveMnemonics, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"Control_swiginit", Control_swiginit, METH_VARARGS, NULL},
|
||||
@@ -59045,11 +59245,14 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_GetBorder", (PyCFunction)_wrap_SizerItem_GetBorder, METH_O, NULL},
|
||||
{ (char *)"SizerItem_GetWindow", (PyCFunction)_wrap_SizerItem_GetWindow, METH_O, NULL},
|
||||
{ (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_GetSizer", (PyCFunction)_wrap_SizerItem_GetSizer, METH_O, NULL},
|
||||
{ (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_GetSpacer", (PyCFunction)_wrap_SizerItem_GetSpacer, METH_O, NULL},
|
||||
{ (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_AssignWindow", (PyCFunction) _wrap_SizerItem_AssignWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_AssignSizer", (PyCFunction) _wrap_SizerItem_AssignSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_AssignSpacer", (PyCFunction) _wrap_SizerItem_AssignSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_IsShown", (PyCFunction)_wrap_SizerItem_IsShown, METH_O, NULL},
|
||||
{ (char *)"SizerItem_GetPosition", (PyCFunction)_wrap_SizerItem_GetPosition, METH_O, NULL},
|
||||
@@ -60904,9 +61107,6 @@ SWIGEXPORT void SWIG_init(void) {
|
||||
SWIG_Python_SetConstant(d, "SB_VERTICAL",SWIG_From_int(static_cast< int >(wxSB_VERTICAL)));
|
||||
SWIG_Python_SetConstant(d, "RB_USE_CHECKBOX",SWIG_From_int(static_cast< int >(wxRB_USE_CHECKBOX)));
|
||||
SWIG_Python_SetConstant(d, "ST_SIZEGRIP",SWIG_From_int(static_cast< int >(wxST_SIZEGRIP)));
|
||||
SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
|
||||
SWIG_Python_SetConstant(d, "ST_DOTS_MIDDLE",SWIG_From_int(static_cast< int >(wxST_DOTS_MIDDLE)));
|
||||
SWIG_Python_SetConstant(d, "ST_DOTS_END",SWIG_From_int(static_cast< int >(wxST_DOTS_END)));
|
||||
SWIG_Python_SetConstant(d, "FLOOD_SURFACE",SWIG_From_int(static_cast< int >(wxFLOOD_SURFACE)));
|
||||
SWIG_Python_SetConstant(d, "FLOOD_BORDER",SWIG_From_int(static_cast< int >(wxFLOOD_BORDER)));
|
||||
SWIG_Python_SetConstant(d, "ODDEVEN_RULE",SWIG_From_int(static_cast< int >(wxODDEVEN_RULE)));
|
||||
|
||||
@@ -2634,9 +2634,8 @@ class Locale(object):
|
||||
__del__ = lambda self : None;
|
||||
def Init1(*args, **kwargs):
|
||||
"""
|
||||
Init1(self, String szName, String szShort=EmptyString, String szLocale=EmptyString,
|
||||
bool bLoadDefault=True,
|
||||
bool bConvertEncoding=False) -> bool
|
||||
Init1(self, String name, String shortName=EmptyString, String locale=EmptyString,
|
||||
bool bLoadDefault=True, bool bConvertEncoding=False) -> bool
|
||||
"""
|
||||
return _gdi_.Locale_Init1(*args, **kwargs)
|
||||
|
||||
@@ -2693,7 +2692,7 @@ class Locale(object):
|
||||
|
||||
AddCatalogLookupPathPrefix = staticmethod(AddCatalogLookupPathPrefix)
|
||||
def AddCatalog(*args, **kwargs):
|
||||
"""AddCatalog(self, String szDomain) -> bool"""
|
||||
"""AddCatalog(self, String domain) -> bool"""
|
||||
return _gdi_.Locale_AddCatalog(*args, **kwargs)
|
||||
|
||||
def IsAvailable(*args, **kwargs):
|
||||
@@ -2702,7 +2701,7 @@ class Locale(object):
|
||||
|
||||
IsAvailable = staticmethod(IsAvailable)
|
||||
def IsLoaded(*args, **kwargs):
|
||||
"""IsLoaded(self, String szDomain) -> bool"""
|
||||
"""IsLoaded(self, String domain) -> bool"""
|
||||
return _gdi_.Locale_IsLoaded(*args, **kwargs)
|
||||
|
||||
def GetLanguageInfo(*args, **kwargs):
|
||||
@@ -2726,7 +2725,7 @@ class Locale(object):
|
||||
|
||||
AddLanguage = staticmethod(AddLanguage)
|
||||
def GetString(*args, **kwargs):
|
||||
"""GetString(self, String szOrigString, String szDomain=EmptyString) -> String"""
|
||||
"""GetString(self, String origString, String domain=EmptyString) -> String"""
|
||||
return _gdi_.Locale_GetString(*args, **kwargs)
|
||||
|
||||
def GetName(*args, **kwargs):
|
||||
@@ -2793,14 +2792,11 @@ class PyLocale(Locale):
|
||||
return _gdi_.PyLocale__setCallbackInfo(*args, **kwargs)
|
||||
|
||||
def GetSingularString(*args, **kwargs):
|
||||
"""GetSingularString(self, wxChar szOrigString, wxChar szDomain=None) -> wxChar"""
|
||||
"""GetSingularString(self, String origString, String domain=EmptyString) -> String"""
|
||||
return _gdi_.PyLocale_GetSingularString(*args, **kwargs)
|
||||
|
||||
def GetPluralString(*args, **kwargs):
|
||||
"""
|
||||
GetPluralString(self, wxChar szOrigString, wxChar szOrigString2, size_t n,
|
||||
wxChar szDomain=None) -> wxChar
|
||||
"""
|
||||
"""GetPluralString(self, String origString, String origString2, size_t n, String domain=EmptyString) -> String"""
|
||||
return _gdi_.PyLocale_GetPluralString(*args, **kwargs)
|
||||
|
||||
_gdi_.PyLocale_swigregister(PyLocale)
|
||||
|
||||
+306
-253
File diff suppressed because it is too large
Load Diff
@@ -5661,12 +5661,23 @@ class Clipboard(_core.Object):
|
||||
"""
|
||||
UsePrimarySelection(self, bool primary=True)
|
||||
|
||||
On platforms supporting it (the X11 based platforms), selects the
|
||||
so called PRIMARY SELECTION as the clipboard as opposed to the
|
||||
normal clipboard, if primary is True.
|
||||
On platforms supporting it (the X11 based platforms), selects the so
|
||||
called PRIMARY SELECTION as the clipboard as opposed to the normal
|
||||
clipboard, if primary is True. On other platforms all clipboard
|
||||
operations fail when using the primary selection. This allows code
|
||||
supporting the primary selection to be written without ill effects on
|
||||
the other platforms.
|
||||
"""
|
||||
return _misc_.Clipboard_UsePrimarySelection(*args, **kwargs)
|
||||
|
||||
def IsUsingPrimarySelection(*args, **kwargs):
|
||||
"""
|
||||
IsUsingPrimarySelection(self) -> bool
|
||||
|
||||
Return true if we're using primary selection
|
||||
"""
|
||||
return _misc_.Clipboard_IsUsingPrimarySelection(*args, **kwargs)
|
||||
|
||||
def Get(*args, **kwargs):
|
||||
"""
|
||||
Get() -> Clipboard
|
||||
|
||||
@@ -35651,6 +35651,36 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Clipboard_IsUsingPrimarySelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxClipboard *arg1 = (wxClipboard *) 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_wxClipboard, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_IsUsingPrimarySelection" "', expected argument " "1"" of type '" "wxClipboard const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxClipboard * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)((wxClipboard const *)arg1)->IsUsingPrimarySelection();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Clipboard_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxClipboard *result = 0 ;
|
||||
@@ -39990,6 +40020,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Clipboard_Clear", (PyCFunction)_wrap_Clipboard_Clear, METH_O, NULL},
|
||||
{ (char *)"Clipboard_Flush", (PyCFunction)_wrap_Clipboard_Flush, METH_O, NULL},
|
||||
{ (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Clipboard_IsUsingPrimarySelection", (PyCFunction)_wrap_Clipboard_IsUsingPrimarySelection, METH_O, NULL},
|
||||
{ (char *)"Clipboard_Get", (PyCFunction)_wrap_Clipboard_Get, METH_NOARGS, NULL},
|
||||
{ (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"Clipboard_swiginit", Clipboard_swiginit, METH_VARARGS, NULL},
|
||||
|
||||
@@ -2373,11 +2373,11 @@ FD_CHANGE_DIR = _windows_.FD_CHANGE_DIR
|
||||
FD_PREVIEW = _windows_.FD_PREVIEW
|
||||
FD_DEFAULT_STYLE = _windows_.FD_DEFAULT_STYLE
|
||||
# deprecated names
|
||||
OPEN = FD_OPEN,
|
||||
SAVE = FD_SAVE,
|
||||
OVERWRITE_PROMPT = FD_OVERWRITE_PROMPT,
|
||||
FILE_MUST_EXIST = FD_FILE_MUST_EXIST,
|
||||
MULTIPLE = FD_MULTIPLE,
|
||||
OPEN = FD_OPEN
|
||||
SAVE = FD_SAVE
|
||||
OVERWRITE_PROMPT = FD_OVERWRITE_PROMPT
|
||||
FILE_MUST_EXIST = FD_FILE_MUST_EXIST
|
||||
MULTIPLE = FD_MULTIPLE
|
||||
CHANGE_DIR = FD_CHANGE_DIR
|
||||
|
||||
class FileDialog(Dialog):
|
||||
|
||||
@@ -1116,6 +1116,11 @@ def StaticLine_GetClassDefaultAttributes(*args, **kwargs):
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
ST_NO_AUTORESIZE = _controls_.ST_NO_AUTORESIZE
|
||||
ST_MARKUP = _controls_.ST_MARKUP
|
||||
ST_ELLIPSIZE_START = _controls_.ST_ELLIPSIZE_START
|
||||
ST_ELLIPSIZE_MIDDLE = _controls_.ST_ELLIPSIZE_MIDDLE
|
||||
ST_ELLIPSIZE_END = _controls_.ST_ELLIPSIZE_END
|
||||
class StaticText(_core.Control):
|
||||
"""Proxy of C++ StaticText class"""
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
||||
@@ -1148,6 +1153,32 @@ class StaticText(_core.Control):
|
||||
"""
|
||||
return _controls_.StaticText_Wrap(*args, **kwargs)
|
||||
|
||||
def IsEllipsized(*args, **kwargs):
|
||||
"""IsEllipsized(self) -> bool"""
|
||||
return _controls_.StaticText_IsEllipsized(*args, **kwargs)
|
||||
|
||||
def RemoveMarkup(*args, **kwargs):
|
||||
"""
|
||||
RemoveMarkup(String str) -> String
|
||||
|
||||
Removes the markup accepted by wx.StaticText when wx.ST_MARKUP is
|
||||
used, and then returns the cleaned string.
|
||||
|
||||
"""
|
||||
return _controls_.StaticText_RemoveMarkup(*args, **kwargs)
|
||||
|
||||
RemoveMarkup = staticmethod(RemoveMarkup)
|
||||
def EscapeMarkup(*args, **kwargs):
|
||||
"""
|
||||
EscapeMarkup(String str) -> String
|
||||
|
||||
Escapes the alls special symbols (<>"'&) present inside the given
|
||||
string using the corresponding entities (< > " '
|
||||
&)
|
||||
"""
|
||||
return _controls_.StaticText_EscapeMarkup(*args, **kwargs)
|
||||
|
||||
EscapeMarkup = staticmethod(EscapeMarkup)
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -1173,6 +1204,26 @@ def PreStaticText(*args, **kwargs):
|
||||
val = _controls_.new_PreStaticText(*args, **kwargs)
|
||||
return val
|
||||
|
||||
def StaticText_RemoveMarkup(*args, **kwargs):
|
||||
"""
|
||||
StaticText_RemoveMarkup(String str) -> String
|
||||
|
||||
Removes the markup accepted by wx.StaticText when wx.ST_MARKUP is
|
||||
used, and then returns the cleaned string.
|
||||
|
||||
"""
|
||||
return _controls_.StaticText_RemoveMarkup(*args, **kwargs)
|
||||
|
||||
def StaticText_EscapeMarkup(*args, **kwargs):
|
||||
"""
|
||||
StaticText_EscapeMarkup(String str) -> String
|
||||
|
||||
Escapes the alls special symbols (<>"'&) present inside the given
|
||||
string using the corresponding entities (< > " '
|
||||
&)
|
||||
"""
|
||||
return _controls_.StaticText_EscapeMarkup(*args, **kwargs)
|
||||
|
||||
def StaticText_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
@@ -8350,6 +8350,122 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_StaticText_IsEllipsized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxStaticText *arg1 = (wxStaticText *) 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_wxStaticText, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_IsEllipsized" "', expected argument " "1"" of type '" "wxStaticText const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxStaticText * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)((wxStaticText const *)arg1)->IsEllipsized();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_StaticText_RemoveMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxString *arg1 = 0 ;
|
||||
wxString result;
|
||||
bool temp1 = false ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "str", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_RemoveMarkup",kwnames,&obj0)) SWIG_fail;
|
||||
{
|
||||
arg1 = wxString_in_helper(obj0);
|
||||
if (arg1 == NULL) SWIG_fail;
|
||||
temp1 = true;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = wxStaticText::RemoveMarkup((wxString const &)*arg1);
|
||||
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
|
||||
}
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_StaticText_EscapeMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxString *arg1 = 0 ;
|
||||
wxString result;
|
||||
bool temp1 = false ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "str", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_EscapeMarkup",kwnames,&obj0)) SWIG_fail;
|
||||
{
|
||||
arg1 = wxString_in_helper(obj0);
|
||||
if (arg1 == NULL) SWIG_fail;
|
||||
temp1 = true;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = wxStaticText::EscapeMarkup((wxString const &)*arg1);
|
||||
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
|
||||
}
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
|
||||
@@ -47052,6 +47168,9 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
|
||||
{ (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_IsEllipsized", (PyCFunction)_wrap_StaticText_IsEllipsized, METH_O, NULL},
|
||||
{ (char *)"StaticText_RemoveMarkup", (PyCFunction) _wrap_StaticText_RemoveMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_EscapeMarkup", (PyCFunction) _wrap_StaticText_EscapeMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
|
||||
@@ -50515,6 +50634,11 @@ SWIGEXPORT void SWIG_init(void) {
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
|
||||
SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
|
||||
SWIG_Python_SetConstant(d, "ST_MARKUP",SWIG_From_int(static_cast< int >(wxST_MARKUP)));
|
||||
SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_START",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_START)));
|
||||
SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_MIDDLE",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_MIDDLE)));
|
||||
SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_END",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_END)));
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
|
||||
SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
|
||||
|
||||
+64
-22
@@ -131,9 +131,6 @@ SB_HORIZONTAL = _core_.SB_HORIZONTAL
|
||||
SB_VERTICAL = _core_.SB_VERTICAL
|
||||
RB_USE_CHECKBOX = _core_.RB_USE_CHECKBOX
|
||||
ST_SIZEGRIP = _core_.ST_SIZEGRIP
|
||||
ST_NO_AUTORESIZE = _core_.ST_NO_AUTORESIZE
|
||||
ST_DOTS_MIDDLE = _core_.ST_DOTS_MIDDLE
|
||||
ST_DOTS_END = _core_.ST_DOTS_END
|
||||
FLOOD_SURFACE = _core_.FLOOD_SURFACE
|
||||
FLOOD_BORDER = _core_.FLOOD_BORDER
|
||||
ODDEVEN_RULE = _core_.ODDEVEN_RULE
|
||||
@@ -11393,6 +11390,15 @@ class Control(Window):
|
||||
"""
|
||||
return _core_.Control_Command(*args, **kwargs)
|
||||
|
||||
def RemoveMnemonics(*args, **kwargs):
|
||||
"""
|
||||
RemoveMnemonics(String str) -> String
|
||||
|
||||
removes the mnemonics characters
|
||||
"""
|
||||
return _core_.Control_RemoveMnemonics(*args, **kwargs)
|
||||
|
||||
RemoveMnemonics = staticmethod(RemoveMnemonics)
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -11425,6 +11431,14 @@ def PreControl(*args, **kwargs):
|
||||
val = _core_.new_PreControl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
def Control_RemoveMnemonics(*args, **kwargs):
|
||||
"""
|
||||
Control_RemoveMnemonics(String str) -> String
|
||||
|
||||
removes the mnemonics characters
|
||||
"""
|
||||
return _core_.Control_RemoveMnemonics(*args, **kwargs)
|
||||
|
||||
def Control_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -12080,14 +12094,6 @@ class SizerItem(Object):
|
||||
"""
|
||||
return _core_.SizerItem_GetWindow(*args, **kwargs)
|
||||
|
||||
def SetWindow(*args, **kwargs):
|
||||
"""
|
||||
SetWindow(self, Window window)
|
||||
|
||||
Set the window to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_SetWindow(*args, **kwargs)
|
||||
|
||||
def GetSizer(*args, **kwargs):
|
||||
"""
|
||||
GetSizer(self) -> Sizer
|
||||
@@ -12096,14 +12102,6 @@ class SizerItem(Object):
|
||||
"""
|
||||
return _core_.SizerItem_GetSizer(*args, **kwargs)
|
||||
|
||||
def SetSizer(*args, **kwargs):
|
||||
"""
|
||||
SetSizer(self, Sizer sizer)
|
||||
|
||||
Set the subsizer to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_SetSizer(*args, **kwargs)
|
||||
|
||||
def GetSpacer(*args, **kwargs):
|
||||
"""
|
||||
GetSpacer(self) -> Size
|
||||
@@ -12112,6 +12110,22 @@ class SizerItem(Object):
|
||||
"""
|
||||
return _core_.SizerItem_GetSpacer(*args, **kwargs)
|
||||
|
||||
def SetWindow(*args, **kwargs):
|
||||
"""
|
||||
SetWindow(self, Window window)
|
||||
|
||||
Set the window to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_SetWindow(*args, **kwargs)
|
||||
|
||||
def SetSizer(*args, **kwargs):
|
||||
"""
|
||||
SetSizer(self, Sizer sizer)
|
||||
|
||||
Set the subsizer to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_SetSizer(*args, **kwargs)
|
||||
|
||||
def SetSpacer(*args, **kwargs):
|
||||
"""
|
||||
SetSpacer(self, Size size)
|
||||
@@ -12120,6 +12134,34 @@ class SizerItem(Object):
|
||||
"""
|
||||
return _core_.SizerItem_SetSpacer(*args, **kwargs)
|
||||
|
||||
SetWindow = wx._deprecated(SetWindow, "Use `AssignWindow` instead.")
|
||||
SetSizer = wx._deprecated(SetSizer, "Use `AssignSizer` instead.")
|
||||
SetSpacer = wx._deprecated(SetSpacer, "Use `AssignSpacer` instead.")
|
||||
|
||||
def AssignWindow(*args, **kwargs):
|
||||
"""
|
||||
AssignWindow(self, Window window)
|
||||
|
||||
Set the window to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_AssignWindow(*args, **kwargs)
|
||||
|
||||
def AssignSizer(*args, **kwargs):
|
||||
"""
|
||||
AssignSizer(self, Sizer sizer)
|
||||
|
||||
Set the subsizer to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_AssignSizer(*args, **kwargs)
|
||||
|
||||
def AssignSpacer(*args, **kwargs):
|
||||
"""
|
||||
AssignSpacer(self, Size size)
|
||||
|
||||
Set the size of the spacer to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_AssignSpacer(*args, **kwargs)
|
||||
|
||||
def Show(*args, **kwargs):
|
||||
"""
|
||||
Show(self, bool show)
|
||||
@@ -12172,10 +12214,10 @@ class SizerItem(Object):
|
||||
Ratio = property(GetRatio,SetRatio,doc="See `GetRatio` and `SetRatio`")
|
||||
Rect = property(GetRect,doc="See `GetRect`")
|
||||
Size = property(GetSize,doc="See `GetSize`")
|
||||
Sizer = property(GetSizer,SetSizer,doc="See `GetSizer` and `SetSizer`")
|
||||
Spacer = property(GetSpacer,SetSpacer,doc="See `GetSpacer` and `SetSpacer`")
|
||||
Sizer = property(GetSizer,AssignSizer,doc="See `GetSizer` and `AssignSizer`")
|
||||
Spacer = property(GetSpacer,AssignSpacer,doc="See `GetSpacer` and `AssignSpacer`")
|
||||
UserData = property(GetUserData,SetUserData,doc="See `GetUserData` and `SetUserData`")
|
||||
Window = property(GetWindow,SetWindow,doc="See `GetWindow` and `SetWindow`")
|
||||
Window = property(GetWindow,AssignWindow,doc="See `GetWindow` and `AssignWindow`")
|
||||
_core_.SizerItem_swigregister(SizerItem)
|
||||
|
||||
def SizerItemWindow(*args, **kwargs):
|
||||
|
||||
+219
-63
@@ -47948,6 +47948,49 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Control_RemoveMnemonics(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxString *arg1 = 0 ;
|
||||
wxString result;
|
||||
bool temp1 = false ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "str", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_RemoveMnemonics",kwnames,&obj0)) SWIG_fail;
|
||||
{
|
||||
arg1 = wxString_in_helper(obj0);
|
||||
if (arg1 == NULL) SWIG_fail;
|
||||
temp1 = true;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = wxControl::RemoveMnemonics((wxString const &)*arg1);
|
||||
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
|
||||
}
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
|
||||
@@ -50499,6 +50542,64 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_GetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSizer *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_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxSizer *)(arg1)->GetSizer();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_GetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSize 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_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (arg1)->GetSpacer();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_SetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
@@ -50537,36 +50638,6 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_GetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSizer *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_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxSizer *)(arg1)->GetSizer();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_SetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
@@ -50603,34 +50674,6 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_GetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSize 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_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (arg1)->GetSpacer();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_SetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
@@ -50667,6 +50710,118 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_AssignWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxWindow *arg2 = (wxWindow *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
void *argp2 = 0 ;
|
||||
int res2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "window", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_AssignWindow",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_AssignWindow" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizerItem_AssignWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->AssignWindow(arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_AssignSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSizer *arg2 = (wxSizer *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
void *argp2 = 0 ;
|
||||
int res2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "sizer", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_AssignSizer",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_AssignSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizerItem_AssignSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< wxSizer * >(argp2);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->AssignSizer(arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_AssignSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSize *arg2 = 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
wxSize temp2 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "size", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_AssignSpacer",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_AssignSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->AssignSpacer((wxSize const &)*arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
@@ -59013,6 +59168,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Control_GetAlignment", (PyCFunction)_wrap_Control_GetAlignment, METH_O, NULL},
|
||||
{ (char *)"Control_GetLabelText", (PyCFunction)_wrap_Control_GetLabelText, METH_O, NULL},
|
||||
{ (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Control_RemoveMnemonics", (PyCFunction) _wrap_Control_RemoveMnemonics, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"Control_swiginit", Control_swiginit, METH_VARARGS, NULL},
|
||||
@@ -59088,11 +59244,14 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_GetBorder", (PyCFunction)_wrap_SizerItem_GetBorder, METH_O, NULL},
|
||||
{ (char *)"SizerItem_GetWindow", (PyCFunction)_wrap_SizerItem_GetWindow, METH_O, NULL},
|
||||
{ (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_GetSizer", (PyCFunction)_wrap_SizerItem_GetSizer, METH_O, NULL},
|
||||
{ (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_GetSpacer", (PyCFunction)_wrap_SizerItem_GetSpacer, METH_O, NULL},
|
||||
{ (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_AssignWindow", (PyCFunction) _wrap_SizerItem_AssignWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_AssignSizer", (PyCFunction) _wrap_SizerItem_AssignSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_AssignSpacer", (PyCFunction) _wrap_SizerItem_AssignSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_IsShown", (PyCFunction)_wrap_SizerItem_IsShown, METH_O, NULL},
|
||||
{ (char *)"SizerItem_GetPosition", (PyCFunction)_wrap_SizerItem_GetPosition, METH_O, NULL},
|
||||
@@ -60947,9 +61106,6 @@ SWIGEXPORT void SWIG_init(void) {
|
||||
SWIG_Python_SetConstant(d, "SB_VERTICAL",SWIG_From_int(static_cast< int >(wxSB_VERTICAL)));
|
||||
SWIG_Python_SetConstant(d, "RB_USE_CHECKBOX",SWIG_From_int(static_cast< int >(wxRB_USE_CHECKBOX)));
|
||||
SWIG_Python_SetConstant(d, "ST_SIZEGRIP",SWIG_From_int(static_cast< int >(wxST_SIZEGRIP)));
|
||||
SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
|
||||
SWIG_Python_SetConstant(d, "ST_DOTS_MIDDLE",SWIG_From_int(static_cast< int >(wxST_DOTS_MIDDLE)));
|
||||
SWIG_Python_SetConstant(d, "ST_DOTS_END",SWIG_From_int(static_cast< int >(wxST_DOTS_END)));
|
||||
SWIG_Python_SetConstant(d, "FLOOD_SURFACE",SWIG_From_int(static_cast< int >(wxFLOOD_SURFACE)));
|
||||
SWIG_Python_SetConstant(d, "FLOOD_BORDER",SWIG_From_int(static_cast< int >(wxFLOOD_BORDER)));
|
||||
SWIG_Python_SetConstant(d, "ODDEVEN_RULE",SWIG_From_int(static_cast< int >(wxODDEVEN_RULE)));
|
||||
|
||||
@@ -5669,12 +5669,23 @@ class Clipboard(_core.Object):
|
||||
"""
|
||||
UsePrimarySelection(self, bool primary=True)
|
||||
|
||||
On platforms supporting it (the X11 based platforms), selects the
|
||||
so called PRIMARY SELECTION as the clipboard as opposed to the
|
||||
normal clipboard, if primary is True.
|
||||
On platforms supporting it (the X11 based platforms), selects the so
|
||||
called PRIMARY SELECTION as the clipboard as opposed to the normal
|
||||
clipboard, if primary is True. On other platforms all clipboard
|
||||
operations fail when using the primary selection. This allows code
|
||||
supporting the primary selection to be written without ill effects on
|
||||
the other platforms.
|
||||
"""
|
||||
return _misc_.Clipboard_UsePrimarySelection(*args, **kwargs)
|
||||
|
||||
def IsUsingPrimarySelection(*args, **kwargs):
|
||||
"""
|
||||
IsUsingPrimarySelection(self) -> bool
|
||||
|
||||
Return true if we're using primary selection
|
||||
"""
|
||||
return _misc_.Clipboard_IsUsingPrimarySelection(*args, **kwargs)
|
||||
|
||||
def Get(*args, **kwargs):
|
||||
"""
|
||||
Get() -> Clipboard
|
||||
|
||||
@@ -35712,6 +35712,36 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Clipboard_IsUsingPrimarySelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxClipboard *arg1 = (wxClipboard *) 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_wxClipboard, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_IsUsingPrimarySelection" "', expected argument " "1"" of type '" "wxClipboard const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxClipboard * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)((wxClipboard const *)arg1)->IsUsingPrimarySelection();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Clipboard_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxClipboard *result = 0 ;
|
||||
@@ -40053,6 +40083,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Clipboard_Clear", (PyCFunction)_wrap_Clipboard_Clear, METH_O, NULL},
|
||||
{ (char *)"Clipboard_Flush", (PyCFunction)_wrap_Clipboard_Flush, METH_O, NULL},
|
||||
{ (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Clipboard_IsUsingPrimarySelection", (PyCFunction)_wrap_Clipboard_IsUsingPrimarySelection, METH_O, NULL},
|
||||
{ (char *)"Clipboard_Get", (PyCFunction)_wrap_Clipboard_Get, METH_NOARGS, NULL},
|
||||
{ (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"Clipboard_swiginit", Clipboard_swiginit, METH_VARARGS, NULL},
|
||||
|
||||
@@ -2353,11 +2353,11 @@ FD_CHANGE_DIR = _windows_.FD_CHANGE_DIR
|
||||
FD_PREVIEW = _windows_.FD_PREVIEW
|
||||
FD_DEFAULT_STYLE = _windows_.FD_DEFAULT_STYLE
|
||||
# deprecated names
|
||||
OPEN = FD_OPEN,
|
||||
SAVE = FD_SAVE,
|
||||
OVERWRITE_PROMPT = FD_OVERWRITE_PROMPT,
|
||||
FILE_MUST_EXIST = FD_FILE_MUST_EXIST,
|
||||
MULTIPLE = FD_MULTIPLE,
|
||||
OPEN = FD_OPEN
|
||||
SAVE = FD_SAVE
|
||||
OVERWRITE_PROMPT = FD_OVERWRITE_PROMPT
|
||||
FILE_MUST_EXIST = FD_FILE_MUST_EXIST
|
||||
MULTIPLE = FD_MULTIPLE
|
||||
CHANGE_DIR = FD_CHANGE_DIR
|
||||
|
||||
class FileDialog(Dialog):
|
||||
|
||||
@@ -1122,6 +1122,11 @@ def StaticLine_GetClassDefaultAttributes(*args, **kwargs):
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
ST_NO_AUTORESIZE = _controls_.ST_NO_AUTORESIZE
|
||||
ST_MARKUP = _controls_.ST_MARKUP
|
||||
ST_ELLIPSIZE_START = _controls_.ST_ELLIPSIZE_START
|
||||
ST_ELLIPSIZE_MIDDLE = _controls_.ST_ELLIPSIZE_MIDDLE
|
||||
ST_ELLIPSIZE_END = _controls_.ST_ELLIPSIZE_END
|
||||
class StaticText(_core.Control):
|
||||
"""Proxy of C++ StaticText class"""
|
||||
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
||||
@@ -1154,6 +1159,32 @@ class StaticText(_core.Control):
|
||||
"""
|
||||
return _controls_.StaticText_Wrap(*args, **kwargs)
|
||||
|
||||
def IsEllipsized(*args, **kwargs):
|
||||
"""IsEllipsized(self) -> bool"""
|
||||
return _controls_.StaticText_IsEllipsized(*args, **kwargs)
|
||||
|
||||
def RemoveMarkup(*args, **kwargs):
|
||||
"""
|
||||
RemoveMarkup(String str) -> String
|
||||
|
||||
Removes the markup accepted by wx.StaticText when wx.ST_MARKUP is
|
||||
used, and then returns the cleaned string.
|
||||
|
||||
"""
|
||||
return _controls_.StaticText_RemoveMarkup(*args, **kwargs)
|
||||
|
||||
RemoveMarkup = staticmethod(RemoveMarkup)
|
||||
def EscapeMarkup(*args, **kwargs):
|
||||
"""
|
||||
EscapeMarkup(String str) -> String
|
||||
|
||||
Escapes the alls special symbols (<>"'&) present inside the given
|
||||
string using the corresponding entities (< > " '
|
||||
&)
|
||||
"""
|
||||
return _controls_.StaticText_EscapeMarkup(*args, **kwargs)
|
||||
|
||||
EscapeMarkup = staticmethod(EscapeMarkup)
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -1179,6 +1210,26 @@ def PreStaticText(*args, **kwargs):
|
||||
val = _controls_.new_PreStaticText(*args, **kwargs)
|
||||
return val
|
||||
|
||||
def StaticText_RemoveMarkup(*args, **kwargs):
|
||||
"""
|
||||
StaticText_RemoveMarkup(String str) -> String
|
||||
|
||||
Removes the markup accepted by wx.StaticText when wx.ST_MARKUP is
|
||||
used, and then returns the cleaned string.
|
||||
|
||||
"""
|
||||
return _controls_.StaticText_RemoveMarkup(*args, **kwargs)
|
||||
|
||||
def StaticText_EscapeMarkup(*args, **kwargs):
|
||||
"""
|
||||
StaticText_EscapeMarkup(String str) -> String
|
||||
|
||||
Escapes the alls special symbols (<>"'&) present inside the given
|
||||
string using the corresponding entities (< > " '
|
||||
&)
|
||||
"""
|
||||
return _controls_.StaticText_EscapeMarkup(*args, **kwargs)
|
||||
|
||||
def StaticText_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
@@ -8395,6 +8395,122 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_StaticText_IsEllipsized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxStaticText *arg1 = (wxStaticText *) 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_wxStaticText, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_IsEllipsized" "', expected argument " "1"" of type '" "wxStaticText const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxStaticText * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)((wxStaticText const *)arg1)->IsEllipsized();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_StaticText_RemoveMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxString *arg1 = 0 ;
|
||||
wxString result;
|
||||
bool temp1 = false ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "str", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_RemoveMarkup",kwnames,&obj0)) SWIG_fail;
|
||||
{
|
||||
arg1 = wxString_in_helper(obj0);
|
||||
if (arg1 == NULL) SWIG_fail;
|
||||
temp1 = true;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = wxStaticText::RemoveMarkup((wxString const &)*arg1);
|
||||
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
|
||||
}
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_StaticText_EscapeMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxString *arg1 = 0 ;
|
||||
wxString result;
|
||||
bool temp1 = false ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "str", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_EscapeMarkup",kwnames,&obj0)) SWIG_fail;
|
||||
{
|
||||
arg1 = wxString_in_helper(obj0);
|
||||
if (arg1 == NULL) SWIG_fail;
|
||||
temp1 = true;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = wxStaticText::EscapeMarkup((wxString const &)*arg1);
|
||||
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
|
||||
}
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
|
||||
@@ -47338,6 +47454,9 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
|
||||
{ (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_IsEllipsized", (PyCFunction)_wrap_StaticText_IsEllipsized, METH_O, NULL},
|
||||
{ (char *)"StaticText_RemoveMarkup", (PyCFunction) _wrap_StaticText_RemoveMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_EscapeMarkup", (PyCFunction) _wrap_StaticText_EscapeMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
|
||||
@@ -50813,6 +50932,11 @@ SWIGEXPORT void SWIG_init(void) {
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
|
||||
SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
|
||||
SWIG_Python_SetConstant(d, "ST_MARKUP",SWIG_From_int(static_cast< int >(wxST_MARKUP)));
|
||||
SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_START",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_START)));
|
||||
SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_MIDDLE",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_MIDDLE)));
|
||||
SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_END",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_END)));
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
|
||||
SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
|
||||
SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
|
||||
|
||||
+64
-22
@@ -131,9 +131,6 @@ SB_HORIZONTAL = _core_.SB_HORIZONTAL
|
||||
SB_VERTICAL = _core_.SB_VERTICAL
|
||||
RB_USE_CHECKBOX = _core_.RB_USE_CHECKBOX
|
||||
ST_SIZEGRIP = _core_.ST_SIZEGRIP
|
||||
ST_NO_AUTORESIZE = _core_.ST_NO_AUTORESIZE
|
||||
ST_DOTS_MIDDLE = _core_.ST_DOTS_MIDDLE
|
||||
ST_DOTS_END = _core_.ST_DOTS_END
|
||||
FLOOD_SURFACE = _core_.FLOOD_SURFACE
|
||||
FLOOD_BORDER = _core_.FLOOD_BORDER
|
||||
ODDEVEN_RULE = _core_.ODDEVEN_RULE
|
||||
@@ -11397,6 +11394,15 @@ class Control(Window):
|
||||
"""
|
||||
return _core_.Control_Command(*args, **kwargs)
|
||||
|
||||
def RemoveMnemonics(*args, **kwargs):
|
||||
"""
|
||||
RemoveMnemonics(String str) -> String
|
||||
|
||||
removes the mnemonics characters
|
||||
"""
|
||||
return _core_.Control_RemoveMnemonics(*args, **kwargs)
|
||||
|
||||
RemoveMnemonics = staticmethod(RemoveMnemonics)
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -11429,6 +11435,14 @@ def PreControl(*args, **kwargs):
|
||||
val = _core_.new_PreControl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
def Control_RemoveMnemonics(*args, **kwargs):
|
||||
"""
|
||||
Control_RemoveMnemonics(String str) -> String
|
||||
|
||||
removes the mnemonics characters
|
||||
"""
|
||||
return _core_.Control_RemoveMnemonics(*args, **kwargs)
|
||||
|
||||
def Control_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@@ -12084,14 +12098,6 @@ class SizerItem(Object):
|
||||
"""
|
||||
return _core_.SizerItem_GetWindow(*args, **kwargs)
|
||||
|
||||
def SetWindow(*args, **kwargs):
|
||||
"""
|
||||
SetWindow(self, Window window)
|
||||
|
||||
Set the window to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_SetWindow(*args, **kwargs)
|
||||
|
||||
def GetSizer(*args, **kwargs):
|
||||
"""
|
||||
GetSizer(self) -> Sizer
|
||||
@@ -12100,14 +12106,6 @@ class SizerItem(Object):
|
||||
"""
|
||||
return _core_.SizerItem_GetSizer(*args, **kwargs)
|
||||
|
||||
def SetSizer(*args, **kwargs):
|
||||
"""
|
||||
SetSizer(self, Sizer sizer)
|
||||
|
||||
Set the subsizer to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_SetSizer(*args, **kwargs)
|
||||
|
||||
def GetSpacer(*args, **kwargs):
|
||||
"""
|
||||
GetSpacer(self) -> Size
|
||||
@@ -12116,6 +12114,22 @@ class SizerItem(Object):
|
||||
"""
|
||||
return _core_.SizerItem_GetSpacer(*args, **kwargs)
|
||||
|
||||
def SetWindow(*args, **kwargs):
|
||||
"""
|
||||
SetWindow(self, Window window)
|
||||
|
||||
Set the window to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_SetWindow(*args, **kwargs)
|
||||
|
||||
def SetSizer(*args, **kwargs):
|
||||
"""
|
||||
SetSizer(self, Sizer sizer)
|
||||
|
||||
Set the subsizer to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_SetSizer(*args, **kwargs)
|
||||
|
||||
def SetSpacer(*args, **kwargs):
|
||||
"""
|
||||
SetSpacer(self, Size size)
|
||||
@@ -12124,6 +12138,34 @@ class SizerItem(Object):
|
||||
"""
|
||||
return _core_.SizerItem_SetSpacer(*args, **kwargs)
|
||||
|
||||
SetWindow = wx._deprecated(SetWindow, "Use `AssignWindow` instead.")
|
||||
SetSizer = wx._deprecated(SetSizer, "Use `AssignSizer` instead.")
|
||||
SetSpacer = wx._deprecated(SetSpacer, "Use `AssignSpacer` instead.")
|
||||
|
||||
def AssignWindow(*args, **kwargs):
|
||||
"""
|
||||
AssignWindow(self, Window window)
|
||||
|
||||
Set the window to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_AssignWindow(*args, **kwargs)
|
||||
|
||||
def AssignSizer(*args, **kwargs):
|
||||
"""
|
||||
AssignSizer(self, Sizer sizer)
|
||||
|
||||
Set the subsizer to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_AssignSizer(*args, **kwargs)
|
||||
|
||||
def AssignSpacer(*args, **kwargs):
|
||||
"""
|
||||
AssignSpacer(self, Size size)
|
||||
|
||||
Set the size of the spacer to be managed by this sizer item.
|
||||
"""
|
||||
return _core_.SizerItem_AssignSpacer(*args, **kwargs)
|
||||
|
||||
def Show(*args, **kwargs):
|
||||
"""
|
||||
Show(self, bool show)
|
||||
@@ -12176,10 +12218,10 @@ class SizerItem(Object):
|
||||
Ratio = property(GetRatio,SetRatio,doc="See `GetRatio` and `SetRatio`")
|
||||
Rect = property(GetRect,doc="See `GetRect`")
|
||||
Size = property(GetSize,doc="See `GetSize`")
|
||||
Sizer = property(GetSizer,SetSizer,doc="See `GetSizer` and `SetSizer`")
|
||||
Spacer = property(GetSpacer,SetSpacer,doc="See `GetSpacer` and `SetSpacer`")
|
||||
Sizer = property(GetSizer,AssignSizer,doc="See `GetSizer` and `AssignSizer`")
|
||||
Spacer = property(GetSpacer,AssignSpacer,doc="See `GetSpacer` and `AssignSpacer`")
|
||||
UserData = property(GetUserData,SetUserData,doc="See `GetUserData` and `SetUserData`")
|
||||
Window = property(GetWindow,SetWindow,doc="See `GetWindow` and `SetWindow`")
|
||||
Window = property(GetWindow,AssignWindow,doc="See `GetWindow` and `AssignWindow`")
|
||||
_core_.SizerItem_swigregister(SizerItem)
|
||||
|
||||
def SizerItemWindow(*args, **kwargs):
|
||||
|
||||
+219
-63
@@ -47974,6 +47974,49 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Control_RemoveMnemonics(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxString *arg1 = 0 ;
|
||||
wxString result;
|
||||
bool temp1 = false ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "str", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_RemoveMnemonics",kwnames,&obj0)) SWIG_fail;
|
||||
{
|
||||
arg1 = wxString_in_helper(obj0);
|
||||
if (arg1 == NULL) SWIG_fail;
|
||||
temp1 = true;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = wxControl::RemoveMnemonics((wxString const &)*arg1);
|
||||
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
|
||||
}
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
|
||||
@@ -50525,6 +50568,64 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_GetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSizer *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_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxSizer *)(arg1)->GetSizer();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_GetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSize 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_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (arg1)->GetSpacer();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_SetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
@@ -50563,36 +50664,6 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_GetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSizer *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_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxSizer *)(arg1)->GetSizer();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_SetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
@@ -50629,34 +50700,6 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_GetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSize 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_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (arg1)->GetSpacer();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_SetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
@@ -50693,6 +50736,118 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_AssignWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxWindow *arg2 = (wxWindow *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
void *argp2 = 0 ;
|
||||
int res2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "window", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_AssignWindow",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_AssignWindow" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizerItem_AssignWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->AssignWindow(arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_AssignSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSizer *arg2 = (wxSizer *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
void *argp2 = 0 ;
|
||||
int res2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "sizer", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_AssignSizer",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_AssignSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizerItem_AssignSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< wxSizer * >(argp2);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->AssignSizer(arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_AssignSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
wxSize *arg2 = 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
wxSize temp2 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "size", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_AssignSpacer",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_AssignSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->AssignSpacer((wxSize const &)*arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SizerItem_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
||||
@@ -59040,6 +59195,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Control_GetAlignment", (PyCFunction)_wrap_Control_GetAlignment, METH_O, NULL},
|
||||
{ (char *)"Control_GetLabelText", (PyCFunction)_wrap_Control_GetLabelText, METH_O, NULL},
|
||||
{ (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Control_RemoveMnemonics", (PyCFunction) _wrap_Control_RemoveMnemonics, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"Control_swiginit", Control_swiginit, METH_VARARGS, NULL},
|
||||
@@ -59115,11 +59271,14 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_GetBorder", (PyCFunction)_wrap_SizerItem_GetBorder, METH_O, NULL},
|
||||
{ (char *)"SizerItem_GetWindow", (PyCFunction)_wrap_SizerItem_GetWindow, METH_O, NULL},
|
||||
{ (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_GetSizer", (PyCFunction)_wrap_SizerItem_GetSizer, METH_O, NULL},
|
||||
{ (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_GetSpacer", (PyCFunction)_wrap_SizerItem_GetSpacer, METH_O, NULL},
|
||||
{ (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_AssignWindow", (PyCFunction) _wrap_SizerItem_AssignWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_AssignSizer", (PyCFunction) _wrap_SizerItem_AssignSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_AssignSpacer", (PyCFunction) _wrap_SizerItem_AssignSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"SizerItem_IsShown", (PyCFunction)_wrap_SizerItem_IsShown, METH_O, NULL},
|
||||
{ (char *)"SizerItem_GetPosition", (PyCFunction)_wrap_SizerItem_GetPosition, METH_O, NULL},
|
||||
@@ -60974,9 +61133,6 @@ SWIGEXPORT void SWIG_init(void) {
|
||||
SWIG_Python_SetConstant(d, "SB_VERTICAL",SWIG_From_int(static_cast< int >(wxSB_VERTICAL)));
|
||||
SWIG_Python_SetConstant(d, "RB_USE_CHECKBOX",SWIG_From_int(static_cast< int >(wxRB_USE_CHECKBOX)));
|
||||
SWIG_Python_SetConstant(d, "ST_SIZEGRIP",SWIG_From_int(static_cast< int >(wxST_SIZEGRIP)));
|
||||
SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
|
||||
SWIG_Python_SetConstant(d, "ST_DOTS_MIDDLE",SWIG_From_int(static_cast< int >(wxST_DOTS_MIDDLE)));
|
||||
SWIG_Python_SetConstant(d, "ST_DOTS_END",SWIG_From_int(static_cast< int >(wxST_DOTS_END)));
|
||||
SWIG_Python_SetConstant(d, "FLOOD_SURFACE",SWIG_From_int(static_cast< int >(wxFLOOD_SURFACE)));
|
||||
SWIG_Python_SetConstant(d, "FLOOD_BORDER",SWIG_From_int(static_cast< int >(wxFLOOD_BORDER)));
|
||||
SWIG_Python_SetConstant(d, "ODDEVEN_RULE",SWIG_From_int(static_cast< int >(wxODDEVEN_RULE)));
|
||||
|
||||
@@ -5669,12 +5669,23 @@ class Clipboard(_core.Object):
|
||||
"""
|
||||
UsePrimarySelection(self, bool primary=True)
|
||||
|
||||
On platforms supporting it (the X11 based platforms), selects the
|
||||
so called PRIMARY SELECTION as the clipboard as opposed to the
|
||||
normal clipboard, if primary is True.
|
||||
On platforms supporting it (the X11 based platforms), selects the so
|
||||
called PRIMARY SELECTION as the clipboard as opposed to the normal
|
||||
clipboard, if primary is True. On other platforms all clipboard
|
||||
operations fail when using the primary selection. This allows code
|
||||
supporting the primary selection to be written without ill effects on
|
||||
the other platforms.
|
||||
"""
|
||||
return _misc_.Clipboard_UsePrimarySelection(*args, **kwargs)
|
||||
|
||||
def IsUsingPrimarySelection(*args, **kwargs):
|
||||
"""
|
||||
IsUsingPrimarySelection(self) -> bool
|
||||
|
||||
Return true if we're using primary selection
|
||||
"""
|
||||
return _misc_.Clipboard_IsUsingPrimarySelection(*args, **kwargs)
|
||||
|
||||
def Get(*args, **kwargs):
|
||||
"""
|
||||
Get() -> Clipboard
|
||||
|
||||
@@ -35712,6 +35712,36 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Clipboard_IsUsingPrimarySelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxClipboard *arg1 = (wxClipboard *) 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_wxClipboard, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clipboard_IsUsingPrimarySelection" "', expected argument " "1"" of type '" "wxClipboard const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxClipboard * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)((wxClipboard const *)arg1)->IsUsingPrimarySelection();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Clipboard_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxClipboard *result = 0 ;
|
||||
@@ -40053,6 +40083,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Clipboard_Clear", (PyCFunction)_wrap_Clipboard_Clear, METH_O, NULL},
|
||||
{ (char *)"Clipboard_Flush", (PyCFunction)_wrap_Clipboard_Flush, METH_O, NULL},
|
||||
{ (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Clipboard_IsUsingPrimarySelection", (PyCFunction)_wrap_Clipboard_IsUsingPrimarySelection, METH_O, NULL},
|
||||
{ (char *)"Clipboard_Get", (PyCFunction)_wrap_Clipboard_Get, METH_NOARGS, NULL},
|
||||
{ (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"Clipboard_swiginit", Clipboard_swiginit, METH_VARARGS, NULL},
|
||||
|
||||
@@ -2381,11 +2381,11 @@ FD_CHANGE_DIR = _windows_.FD_CHANGE_DIR
|
||||
FD_PREVIEW = _windows_.FD_PREVIEW
|
||||
FD_DEFAULT_STYLE = _windows_.FD_DEFAULT_STYLE
|
||||
# deprecated names
|
||||
OPEN = FD_OPEN,
|
||||
SAVE = FD_SAVE,
|
||||
OVERWRITE_PROMPT = FD_OVERWRITE_PROMPT,
|
||||
FILE_MUST_EXIST = FD_FILE_MUST_EXIST,
|
||||
MULTIPLE = FD_MULTIPLE,
|
||||
OPEN = FD_OPEN
|
||||
SAVE = FD_SAVE
|
||||
OVERWRITE_PROMPT = FD_OVERWRITE_PROMPT
|
||||
FILE_MUST_EXIST = FD_FILE_MUST_EXIST
|
||||
MULTIPLE = FD_MULTIPLE
|
||||
CHANGE_DIR = FD_CHANGE_DIR
|
||||
|
||||
class FileDialog(Dialog):
|
||||
|
||||
Reference in New Issue
Block a user