import _controls
import wx
__docfilter__ = wx._core.__DocFilter(globals())
-wxEVT_DYNAMIC_SASH_SPLIT = _gizmos.wxEVT_DYNAMIC_SASH_SPLIT
-wxEVT_DYNAMIC_SASH_UNIFY = _gizmos.wxEVT_DYNAMIC_SASH_UNIFY
DS_MANAGE_SCROLLBARS = _gizmos.DS_MANAGE_SCROLLBARS
DS_DRAG_CORNER = _gizmos.DS_DRAG_CORNER
+wxEVT_DYNAMIC_SASH_SPLIT = _gizmos.wxEVT_DYNAMIC_SASH_SPLIT
+wxEVT_DYNAMIC_SASH_UNIFY = _gizmos.wxEVT_DYNAMIC_SASH_UNIFY
class DynamicSashSplitEvent(_core.CommandEvent):
"""Proxy of C++ DynamicSashSplitEvent class"""
def __repr__(self):
SWIG_addvarlink(SWIG_globals,(char*)"DynamicSashNameStr",_wrap_DynamicSashNameStr_get, _wrap_DynamicSashNameStr_set);
SWIG_addvarlink(SWIG_globals,(char*)"EditableListBoxNameStr",_wrap_EditableListBoxNameStr_get, _wrap_EditableListBoxNameStr_set);
SWIG_addvarlink(SWIG_globals,(char*)"TreeListCtrlNameStr",_wrap_TreeListCtrlNameStr_get, _wrap_TreeListCtrlNameStr_set);
- {
- PyDict_SetItemString(d,"wxEVT_DYNAMIC_SASH_SPLIT", SWIG_From_int((int)(wxEVT_DYNAMIC_SASH_SPLIT)));
- }
- {
- PyDict_SetItemString(d,"wxEVT_DYNAMIC_SASH_UNIFY", SWIG_From_int((int)(wxEVT_DYNAMIC_SASH_UNIFY)));
- }
{
PyDict_SetItemString(d,"DS_MANAGE_SCROLLBARS", SWIG_From_int((int)(wxDS_MANAGE_SCROLLBARS)));
}
{
PyDict_SetItemString(d,"DS_DRAG_CORNER", SWIG_From_int((int)(wxDS_DRAG_CORNER)));
}
+ PyDict_SetItemString(d, "wxEVT_DYNAMIC_SASH_SPLIT", PyInt_FromLong(wxEVT_DYNAMIC_SASH_SPLIT));
+ PyDict_SetItemString(d, "wxEVT_DYNAMIC_SASH_UNIFY", PyInt_FromLong(wxEVT_DYNAMIC_SASH_UNIFY));
{
PyDict_SetItemString(d,"EL_ALLOW_NEW", SWIG_From_int((int)(wxEL_ALLOW_NEW)));
}
import _controls
import wx
__docfilter__ = wx._core.__DocFilter(globals())
-wxEVT_DYNAMIC_SASH_SPLIT = _gizmos.wxEVT_DYNAMIC_SASH_SPLIT
-wxEVT_DYNAMIC_SASH_UNIFY = _gizmos.wxEVT_DYNAMIC_SASH_UNIFY
DS_MANAGE_SCROLLBARS = _gizmos.DS_MANAGE_SCROLLBARS
DS_DRAG_CORNER = _gizmos.DS_DRAG_CORNER
+wxEVT_DYNAMIC_SASH_SPLIT = _gizmos.wxEVT_DYNAMIC_SASH_SPLIT
+wxEVT_DYNAMIC_SASH_UNIFY = _gizmos.wxEVT_DYNAMIC_SASH_UNIFY
class DynamicSashSplitEvent(_core.CommandEvent):
"""Proxy of C++ DynamicSashSplitEvent class"""
def __repr__(self):
SWIG_addvarlink(SWIG_globals,(char*)"DynamicSashNameStr",_wrap_DynamicSashNameStr_get, _wrap_DynamicSashNameStr_set);
SWIG_addvarlink(SWIG_globals,(char*)"EditableListBoxNameStr",_wrap_EditableListBoxNameStr_get, _wrap_EditableListBoxNameStr_set);
SWIG_addvarlink(SWIG_globals,(char*)"TreeListCtrlNameStr",_wrap_TreeListCtrlNameStr_get, _wrap_TreeListCtrlNameStr_set);
- {
- PyDict_SetItemString(d,"wxEVT_DYNAMIC_SASH_SPLIT", SWIG_From_int((int)(wxEVT_DYNAMIC_SASH_SPLIT)));
- }
- {
- PyDict_SetItemString(d,"wxEVT_DYNAMIC_SASH_UNIFY", SWIG_From_int((int)(wxEVT_DYNAMIC_SASH_UNIFY)));
- }
{
PyDict_SetItemString(d,"DS_MANAGE_SCROLLBARS", SWIG_From_int((int)(wxDS_MANAGE_SCROLLBARS)));
}
{
PyDict_SetItemString(d,"DS_DRAG_CORNER", SWIG_From_int((int)(wxDS_DRAG_CORNER)));
}
+ PyDict_SetItemString(d, "wxEVT_DYNAMIC_SASH_SPLIT", PyInt_FromLong(wxEVT_DYNAMIC_SASH_SPLIT));
+ PyDict_SetItemString(d, "wxEVT_DYNAMIC_SASH_UNIFY", PyInt_FromLong(wxEVT_DYNAMIC_SASH_UNIFY));
{
PyDict_SetItemString(d,"EL_ALLOW_NEW", SWIG_From_int((int)(wxEL_ALLOW_NEW)));
}
# different on different platforms. For example, please see
# http://www.alanwood.net/demos/charsetdiffs.html for differences
# between the common latin/roman encodings.
-import locale
-import codecs
-try:
- default = locale.getdefaultlocale()[1]
- codecs.lookup(default)
-except (ValueError, LookupError):
- default = _sys.getdefaultencoding()
+
+default = _sys.getdefaultencoding()
+if default == 'ascii':
+ import locale
+ import codecs
+ try:
+ default = locale.getdefaultlocale()[1]
+ codecs.lookup(default)
+ except (ValueError, LookupError):
+ default = _sys.getdefaultencoding()
+ del locale
+ del codecs
if default:
wx.SetDefaultPyEncoding(default)
del default
-del locale
-del codecs
#----------------------------------------------------------------------------
return _misc_.SystemOptions_HasOption(*args, **kwargs)
HasOption = staticmethod(HasOption)
+ def IsFalse(*args, **kwargs):
+ """IsFalse(String name) -> bool"""
+ return _misc_.SystemOptions_IsFalse(*args, **kwargs)
+
+ IsFalse = staticmethod(IsFalse)
class SystemOptionsPtr(SystemOptions):
def __init__(self, this):
"""SystemOptions_HasOption(String name) -> bool"""
return _misc_.SystemOptions_HasOption(*args, **kwargs)
+def SystemOptions_IsFalse(*args, **kwargs):
+ """SystemOptions_IsFalse(String name) -> bool"""
+ return _misc_.SystemOptions_IsFalse(*args, **kwargs)
+
#---------------------------------------------------------------------------
}
+static PyObject *_wrap_SystemOptions_IsFalse(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxString *arg1 = 0 ;
+ bool result;
+ bool temp1 = false ;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "name", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_IsFalse",kwnames,&obj0)) goto fail;
+ {
+ arg1 = wxString_in_helper(obj0);
+ if (arg1 == NULL) SWIG_fail;
+ temp1 = true;
+ }
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (bool)wxSystemOptions::IsFalse((wxString const &)*arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
+ {
+ if (temp1)
+ delete arg1;
+ }
+ return resultobj;
+ fail:
+ {
+ if (temp1)
+ delete arg1;
+ }
+ return NULL;
+}
+
+
static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
PyObject *obj;
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
{ (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL},
+ { (char *)"SystemOptions_IsFalse", (PyCFunction) _wrap_SystemOptions_IsFalse, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL},
{ (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL},
return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs)
def Tile(*args, **kwargs):
- """Tile(self)"""
+ """Tile(self, int orient=HORIZONTAL)"""
return _windows_.MDIParentFrame_Tile(*args, **kwargs)
static PyObject *_wrap_MDIParentFrame_Tile(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ;
+ wxOrientation arg2 = (wxOrientation) wxHORIZONTAL ;
PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
char *kwnames[] = {
- (char *) "self", NULL
+ (char *) "self",(char *) "orient", NULL
};
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MDIParentFrame_Tile",kwnames,&obj0,&obj1)) goto fail;
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_EXCEPTION | 0);
if (SWIG_arg_fail(1)) SWIG_fail;
+ if (obj1) {
+ {
+ arg2 = (wxOrientation)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->Tile();
+ (arg1)->Tile((wxOrientation )arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
# different on different platforms. For example, please see
# http://www.alanwood.net/demos/charsetdiffs.html for differences
# between the common latin/roman encodings.
-import locale
-import codecs
-try:
- default = locale.getdefaultlocale()[1]
- codecs.lookup(default)
-except (ValueError, LookupError):
- default = _sys.getdefaultencoding()
+
+default = _sys.getdefaultencoding()
+if default == 'ascii':
+ import locale
+ import codecs
+ try:
+ default = locale.getdefaultlocale()[1]
+ codecs.lookup(default)
+ except (ValueError, LookupError):
+ default = _sys.getdefaultencoding()
+ del locale
+ del codecs
if default:
wx.SetDefaultPyEncoding(default)
del default
-del locale
-del codecs
#----------------------------------------------------------------------------
return _misc_.SystemOptions_HasOption(*args, **kwargs)
HasOption = staticmethod(HasOption)
+ def IsFalse(*args, **kwargs):
+ """IsFalse(String name) -> bool"""
+ return _misc_.SystemOptions_IsFalse(*args, **kwargs)
+
+ IsFalse = staticmethod(IsFalse)
class SystemOptionsPtr(SystemOptions):
def __init__(self, this):
"""SystemOptions_HasOption(String name) -> bool"""
return _misc_.SystemOptions_HasOption(*args, **kwargs)
+def SystemOptions_IsFalse(*args, **kwargs):
+ """SystemOptions_IsFalse(String name) -> bool"""
+ return _misc_.SystemOptions_IsFalse(*args, **kwargs)
+
#---------------------------------------------------------------------------
}
+static PyObject *_wrap_SystemOptions_IsFalse(PyObject *, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxString *arg1 = 0 ;
+ bool result;
+ bool temp1 = false ;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "name", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_IsFalse",kwnames,&obj0)) goto fail;
+ {
+ arg1 = wxString_in_helper(obj0);
+ if (arg1 == NULL) SWIG_fail;
+ temp1 = true;
+ }
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (bool)wxSystemOptions::IsFalse((wxString const &)*arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
+ {
+ if (temp1)
+ delete arg1;
+ }
+ return resultobj;
+ fail:
+ {
+ if (temp1)
+ delete arg1;
+ }
+ return NULL;
+}
+
+
static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
PyObject *obj;
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
{ (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL},
+ { (char *)"SystemOptions_IsFalse", (PyCFunction) _wrap_SystemOptions_IsFalse, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL},
{ (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL},
return _windows_.MDIParentFrame_SetToolBar(*args, **kwargs)
def Tile(*args, **kwargs):
- """Tile(self)"""
+ """Tile(self, int orient=HORIZONTAL)"""
return _windows_.MDIParentFrame_Tile(*args, **kwargs)
static PyObject *_wrap_MDIParentFrame_Tile(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ;
+ wxOrientation arg2 = (wxOrientation) wxHORIZONTAL ;
PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
char *kwnames[] = {
- (char *) "self", NULL
+ (char *) "self",(char *) "orient", NULL
};
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MDIParentFrame_Tile",kwnames,&obj0,&obj1)) goto fail;
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_EXCEPTION | 0);
if (SWIG_arg_fail(1)) SWIG_fail;
+ if (obj1) {
+ {
+ arg2 = (wxOrientation)(SWIG_As_int(obj1));
+ if (SWIG_arg_fail(2)) SWIG_fail;
+ }
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->Tile();
+ (arg1)->Tile((wxOrientation )arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
wxSystemOptions_GetOption = wx._misc.SystemOptions_GetOption
wxSystemOptions_GetOptionInt = wx._misc.SystemOptions_GetOptionInt
wxSystemOptions_HasOption = wx._misc.SystemOptions_HasOption
+wxSystemOptions_IsFalse = wx._misc.SystemOptions_IsFalse
wxFileSelectorPromptStr = wx._misc.FileSelectorPromptStr
wxFileSelectorDefaultWildcardStr = wx._misc.FileSelectorDefaultWildcardStr
wxDirSelectorPromptStr = wx._misc.DirSelectorPromptStr
wxDynamicSashNameStr = wx.gizmos.DynamicSashNameStr
wxEditableListBoxNameStr = wx.gizmos.EditableListBoxNameStr
wxTreeListCtrlNameStr = wx.gizmos.TreeListCtrlNameStr
-wxEVT_DYNAMIC_SASH_SPLIT = wx.gizmos.wxEVT_DYNAMIC_SASH_SPLIT
-wxEVT_DYNAMIC_SASH_UNIFY = wx.gizmos.wxEVT_DYNAMIC_SASH_UNIFY
wxDS_MANAGE_SCROLLBARS = wx.gizmos.DS_MANAGE_SCROLLBARS
wxDS_DRAG_CORNER = wx.gizmos.DS_DRAG_CORNER
+wxEVT_DYNAMIC_SASH_SPLIT = wx.gizmos.wxEVT_DYNAMIC_SASH_SPLIT
+wxEVT_DYNAMIC_SASH_UNIFY = wx.gizmos.wxEVT_DYNAMIC_SASH_UNIFY
wxDynamicSashSplitEvent = wx.gizmos.DynamicSashSplitEvent
wxDynamicSashSplitEventPtr = wx.gizmos.DynamicSashSplitEventPtr
wxDynamicSashUnifyEvent = wx.gizmos.DynamicSashUnifyEvent